sp1_CreateSpr.asm
bitfixer_bitfixer/dg/z88dk/libsrc/sprites/software/sp1/spectrum/sprites/sp1_CreateSpr.asm
; struct sp1_ss *sp1_CreateSpr(void *drawf, uchar type, uchar height, int graphic, uchar plane)
; CALLER linkage for function pointers

PUBLIC sp1_CreateSpr

EXTERN sp1_CreateSpr_callee
EXTERN ASMDISP_SP1_CREATESPR_CALLEE

.sp1_CreateSpr

   ld hl,2
   add hl,sp
   ld c,(hl)
   inc hl
   inc hl
   ld e,(hl)
   inc hl
   ld d,(hl)
   inc hl
   ld a,(hl)
   inc hl
   inc hl
   ld b,(hl)
   inc hl
   inc hl
   ld a,(hl)
   inc hl
   ld h,(hl)
   ld l,a
   ex de,hl
   jp sp1_CreateSpr_callee + ASMDISP_SP1_CREATESPR_CALLEE
