sp1_ClearRect_callee.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_ix/sp1_ClearRect_callee.asm
; void sp1_ClearRect(struct sp1_Rect *r, uchar colour, uchar tile, uchar rflag)

SECTION code_clib
SECTION code_temp_sp1

PUBLIC _sp1_ClearRect_callee, l0_sp1_ClearRect_callee

EXTERN asm_sp1_ClearRect

_sp1_ClearRect_callee:

   pop af
   pop hl
   pop bc
   pop de
   ld d,b
   pop bc
   push af
   
   ld a,c
   push de
   ld d,(hl)
   inc hl
   ld e,(hl)
   inc hl
   ld b,(hl)
   inc hl
   ld c,(hl)
   pop hl

l0_sp1_ClearRect_callee:

   push ix
   
   call asm_sp1_ClearRect
   
   pop ix
   ret
