NIRVANAP_spriteT_callee.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/arch/zx/nirvanap/c/sdcc/NIRVANAP_spriteT_callee.asm
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR NIRVANA+ ENGINE - by Einar Saukas
;
; See "nirvana+.h" for further details
; ----------------------------------------------------------------

; void NIRVANAP_spriteT(unsigned int sprite, unsigned int tile, unsigned int lin, unsigned int col)
; callee

SECTION code_clib
SECTION code_nirvanap

PUBLIC _NIRVANAP_spriteT_callee

EXTERN asm_NIRVANAP_spriteT

_NIRVANAP_spriteT_callee:

	pop af          ; RET address
	pop hl          ; sprite
	pop bc          ; tile
	pop de          ; lin
	ld d,e
	ld e,c
	pop bc          ; col
	push af
	ld a,e
	ld e,c

	jp asm_NIRVANAP_spriteT
