pokegold/home/delay.asm
2016-06-16 11:13:09 -04:00

17 lines
173 B
NASM

DelayFrame:: ; 32e
ld a, $1
ld [$ceea], a
.asm_333
halt
ld a, [$ceea]
and a
jr nz, .asm_333
ret
DelayFrames:: ; 33c
.loop
call DelayFrame
dec c
jr nz, .loop
ret