BIFROSTL_setTile.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/arch/zx/bifrost_l/c/sccz80/BIFROSTL_setTile.asm
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L
;
; See "bifrost_l.h" for further details
; ----------------------------------------------------------------

; void BIFROSTL_setTile(unsigned int px, unsigned int py, unsigned int tile)

SECTION code_clib
SECTION code_bifrost_l

PUBLIC BIFROSTL_setTile

EXTERN asm_BIFROSTL_setTile

BIFROSTL_setTile:

   	ld hl,2
   	add hl,sp
   	ld e,(hl)       ; E=tile
   	inc hl
   	inc hl
   	ld c,(hl)       ; C=py
   	inc hl
   	inc hl
   	ld l,(hl)       ; L=px

   	jp asm_BIFROSTL_setTile
