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

; void BIFROSTL_drawTileL(unsigned int row, unsigned int col, unsigned int tile)

SECTION code_clib
SECTION code_bifrost_l

PUBLIC BIFROSTL_drawTileL

EXTERN asm_BIFROSTL_drawTileL

BIFROSTL_drawTileL:

   	ld hl,2
   	add hl,sp
   	ld a,(hl)       ; A=tile
   	inc hl
   	inc hl
   	ld e,(hl)       ; E=col
   	inc hl
   	inc hl
   	ld d,(hl)       ; D=row

        jp asm_BIFROSTL_drawTileL        ; execute 'draw_tile'
