diff options
author | Rangi <remy.oukaour+rangi@gmail.com> | 2020-08-09 15:16:31 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi@gmail.com> | 2020-08-09 15:16:31 -0400 |
commit | 9c229cde440bc6f68343331ad7bc6e1a52a742f0 (patch) | |
tree | 3bc08aaca7e09ae9933a11dbdcdc545b90d5b343 /home/print_text.asm | |
parent | a75c6619fb933dc2d4c94b24394fb6fa9335b3b1 (diff) |
Clean up some code in home/
Diffstat (limited to 'home/print_text.asm')
-rw-r--r-- | home/print_text.asm | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/home/print_text.asm b/home/print_text.asm index f45a045..52f2489 100644 --- a/home/print_text.asm +++ b/home/print_text.asm @@ -2,7 +2,7 @@ include "constants.asm" SECTION "home/print_text.asm", ROM0 -PrintLetterDelay:: ; 33a3 (0:33a3) +PrintLetterDelay:: ld a, [wce5f] bit 4, a ret nz @@ -44,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 |