diff options
Diffstat (limited to 'home/print_text.asm')
-rw-r--r-- | home/print_text.asm | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/home/print_text.asm b/home/print_text.asm index 61cc9e1..52f2489 100644 --- a/home/print_text.asm +++ b/home/print_text.asm @@ -1,12 +1,8 @@ include "constants.asm" -; if DEBUG SECTION "home/print_text.asm", ROM0 -; else -; SECTION "Print Letter Delay", ROM0[$3367] -; endc -PrintLetterDelay:: ; 33a3 (0:33a3) +PrintLetterDelay:: ld a, [wce5f] bit 4, a ret nz @@ -48,23 +44,22 @@ PrintLetterDelay:: ; 33a3 (0:33a3) pop de pop hl ret -; 0x33e3 -CopyDataUntil:: ; 33e3 +CopyDataUntil:: ; Copy [hl .. bc) to de. ; In other words, the source data is ; from hl up to but not including bc, ; and the destination is de. -.asm_33e3: ; 00:33e3 +.loop: ld a, [hli] ld [de], a inc de ld a, h cp b - jr nz, .asm_33e3 + jr nz, .loop ld a, l cp c - jr nz, .asm_33e3 - ret
\ No newline at end of file + jr nz, .loop + ret |