shithub: pokecrystal

ref: a18f83b911afa94f4f3522204cd404c3e92df58e
dir: /home/sprite_anims.asm/

View raw version
InitSpriteAnimStruct::
	ld [wSpriteAnimID], a
	ldh a, [hROMBank]
	push af

	ld a, BANK(_InitSpriteAnimStruct)
	rst Bankswitch
	ld a, [wSpriteAnimID]

	call _InitSpriteAnimStruct

	pop af
	rst Bankswitch

	ret

ReinitSpriteAnimFrame::
	ld [wSpriteAnimID], a
	ldh a, [hROMBank]
	push af

	ld a, BANK(_ReinitSpriteAnimFrame)
	rst Bankswitch
	ld a, [wSpriteAnimID]

	call _ReinitSpriteAnimFrame

	pop af
	rst Bankswitch

	ret