shithub: pokecrystal

ref: 53e1c480922fb3e6aaf1790a2c6ba10fcada9bb6
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