summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-05-30 22:05:14 -0500
committerBryan Bishop <kanzure@gmail.com>2012-05-30 22:05:14 -0500
commit75bddc1f132d56820b35725f6925d44d862a321f (patch)
tree2c8b60c658391841a641617e854120e697384f78
parent884ed3f97d602717d04eac514d74b0c9bb8cff86 (diff)
for some reason AddNTimes is copied twice
-rw-r--r--main.asm12
1 files changed, 11 insertions, 1 deletions
diff --git a/main.asm b/main.asm
index 8298a7e1f..555b77e30 100644
--- a/main.asm
+++ b/main.asm
@@ -220,7 +220,17 @@ IsInArray: ; 30e1
ret
; 0x30f4
-INCBIN "baserom.gbc",$30f4,$30fe - $30f4
+INCBIN "baserom.gbc",$30f4,$30f7 - $30f4
+
+AddNTimesCopied: ; 0x30f7
+ and a
+ ret z
+.loop
+ add hl, bc
+ dec a
+ jr nz, .loop
+ ret
+; 0x30fe
AddNTimes: ; 0x30fe
and a