summaryrefslogtreecommitdiff
path: root/home/print_text.asm
diff options
context:
space:
mode:
authorEldred Habert <eldredhabert0@gmail.com>2018-06-10 17:08:55 +0200
committerGitHub <noreply@github.com>2018-06-10 17:08:55 +0200
commitb0e8bae78e0972b13370ff6e31c80f18b67348fc (patch)
tree7d83ac3340a0535aa85269e7247008164f9b8d7d /home/print_text.asm
parent20f07292a54097dd3b704bc79bd50097c1d16502 (diff)
parentbfdaa1151902023fc69c97328cf12bdd88816185 (diff)
Merge pull request #18 from PikalaxALT/math_etc
More dism progress in ROM0
Diffstat (limited to 'home/print_text.asm')
-rw-r--r--home/print_text.asm21
1 files changed, 20 insertions, 1 deletions
diff --git a/home/print_text.asm b/home/print_text.asm
index e8b4eeb..0a17688 100644
--- a/home/print_text.asm
+++ b/home/print_text.asm
@@ -48,4 +48,23 @@ PrintLetterDelay:: ; 33a3 (0:33a3)
pop de
pop hl
ret
-; 0x33e3 \ No newline at end of file
+; 0x33e3
+
+CopyDataUntil:: ; 33e3
+; 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
+ ld a, [hli]
+ ld [de], a
+ inc de
+ ld a, h
+ cp b
+ jr nz, .asm_33e3
+ ld a, l
+ cp c
+ jr nz, .asm_33e3
+ ret