mirror of
https://github.com/pret/pokeyellow.git
synced 2026-10-07 16:10:48 -04:00
17 lines
287 B
NASM
17 lines
287 B
NASM
UpdateSprites::
|
|
ld a, [wUpdateSpritesEnabled]
|
|
dec a
|
|
ret nz
|
|
ldh a, [hLoadedROMBank]
|
|
push af
|
|
ld a, BANK(_UpdateSprites)
|
|
call BankswitchCommon
|
|
ld a, $ff
|
|
ld [wUpdateSpritesEnabled], a
|
|
call _UpdateSprites
|
|
ld a, $1
|
|
ld [wUpdateSpritesEnabled], a
|
|
pop af
|
|
call BankswitchCommon
|
|
ret
|