mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-04-03 18:11:42 +13:00
Merge pull request #239 from Akatsuki-py/use_rept
Use rept macro in CopyHealingMachineOAM
This commit is contained in:
commit
d29d0224e5
1 changed files with 2 additions and 9 deletions
|
|
@ -89,16 +89,9 @@ FlashSprite8Times:
|
||||||
|
|
||||||
CopyHealingMachineOAM:
|
CopyHealingMachineOAM:
|
||||||
; copy one OAM entry and advance the pointers
|
; copy one OAM entry and advance the pointers
|
||||||
|
rept 4
|
||||||
ld a, [de]
|
ld a, [de]
|
||||||
inc de
|
inc de
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
ld a, [de]
|
endr
|
||||||
inc de
|
|
||||||
ld [hli], a
|
|
||||||
ld a, [de]
|
|
||||||
inc de
|
|
||||||
ld [hli], a
|
|
||||||
ld a, [de]
|
|
||||||
inc de
|
|
||||||
ld [hli], a
|
|
||||||
ret
|
ret
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue