diff --git a/gopher.asm b/gopher.asm index f267a8e..0a03de5 100644 --- a/gopher.asm +++ b/gopher.asm @@ -9,14 +9,14 @@ openPage: ex hl, de ld de, hist - ld bc, 147 + ld bc, 322 ldir ld hl, page_buffer xor a ld (hl), a ld de, page_buffer + 1 - ld bc, 32767 + ld bc, #ffff - page_buffer - 1 ldir pop bc pop de @@ -210,7 +210,7 @@ d_host defs 70 d_port db '70' defs 5 -hist ds 147 +hist ds 322 connectionOpen db 0 downloading_msg db 'Downloading...', 0 -connectionError db 'Cant open TCP connection', 0 \ No newline at end of file +connectionError db 'Cant open TCP connection', 0 diff --git a/main.asm b/main.asm index 54bfd00..933a310 100644 --- a/main.asm +++ b/main.asm @@ -25,13 +25,12 @@ connecting_wifi db 13, ' Connecting to WiFi', 13, 0 open_lbl db 'Opening connection to ', 0 path db '/' - defs 69 + defs 254 server db 'nihirash.net' defs 58 port db '70' defs 5 -data_buff defs 255 page_buffer incbin "index.pg" db 0 diff --git a/render.asm b/render.asm index 07313a7..fab629f 100644 --- a/render.asm +++ b/render.asm @@ -124,7 +124,7 @@ downPg: ld hl, hist ld de, path - ld bc, 147 + ld bc, 322 ldir ld hl, server_buffer @@ -481,7 +481,7 @@ type_unkn db "Unknown type ", 0 display $ -file_buffer defs 70 ; URI path +file_buffer defs 255 ; URI path server_buffer defs 70 ; Host name port_buffer defs 7 ; Port diff --git a/screen64.asm b/screen64.asm index e61cbe7..0243be0 100644 --- a/screen64.asm +++ b/screen64.asm @@ -70,6 +70,11 @@ printZ64: jr printZ64 printT64: + ld b, 63 +ptlp: + ld a, 0 + or b + ret z ld a, (hl) and a @@ -78,11 +83,14 @@ printT64: cp 09 ret z + push bc push hl call putC pop hl inc hl - jr printT64 + pop bc + dec b + jr ptlp printL64: ld a, (hl) @@ -411,4 +419,4 @@ col_screen_temp defw 0 half_tile_screen_temp defb 0 single_symbol_print defb 1 -single_symbol defb 0 \ No newline at end of file +single_symbol defb 0