mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-21 23:12:16 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
20
home/delay.asm
Normal file
20
home/delay.asm
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
DelayFrame::
|
||||
; Wait for one frame
|
||||
ld a, 1
|
||||
ld [wVBlankOccurred], a
|
||||
|
||||
; Wait for the next VBlank, halting to conserve battery
|
||||
.halt
|
||||
halt
|
||||
nop
|
||||
ld a, [wVBlankOccurred]
|
||||
and a
|
||||
jr nz, .halt
|
||||
ret
|
||||
|
||||
DelayFrames::
|
||||
; Wait c frames
|
||||
call DelayFrame
|
||||
dec c
|
||||
jr nz, DelayFrames
|
||||
ret
|
||||
Loading…
Add table
Add a link
Reference in a new issue