summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-05-31 01:01:22 -0500
committerBryan Bishop <kanzure@gmail.com>2012-05-31 01:01:22 -0500
commitb21600f1ed80d8b9a3cd0dca13583ff5a10e7e7b (patch)
tree66802ebd367863d6656223e03d417b0e1f0d96aa /main.asm
parent7281681bcdc7eb851b7bfdefe76f3e4be507ea32 (diff)
copy in DelayFrames from pokered
Diffstat (limited to 'main.asm')
-rw-r--r--main.asm10
1 files changed, 9 insertions, 1 deletions
diff --git a/main.asm b/main.asm
index 52ae27f82..d9c2fff3c 100644
--- a/main.asm
+++ b/main.asm
@@ -24,7 +24,15 @@ DelayFrame: ; 0x45a
ret
; 0x468
-INCBIN "baserom.gbc",$468,$52f - $468
+DelayFrames: ; 0x468
+; wait n frames, where n is the value in c
+ call DelayFrame
+ dec c
+ jr nz, DelayFrames
+ ret
+; 0x46f
+
+INCBIN "baserom.gbc",$46f,$52f - $46f
IncGradGBPalTable_01: ; 0x52f
db %11111111 ;BG Pal