Files
pokeyellow/home/update_sprites.asm
2020-11-05 10:51:02 -05:00

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