in_mouse_amx_callee.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/input/zx/c/sccz80/in_mouse_amx_callee.asm
; void in_mouse_amx_callee(uint8_t *buttons, uint16_t *x, uint16_t *y)

SECTION code_clib
SECTION code_input

PUBLIC in_mouse_amx_callee

EXTERN asm_in_mouse_amx

in_mouse_amx_callee:

   call asm_in_mouse_amx
   
   pop ix
   
   pop hl
   ld (hl),c
   inc hl
   ld (hl),b
   
   pop hl
   ld (hl),e
   inc hl
   ld (hl),d
   
   pop hl
   ld (hl),a
   
   jp (ix)
