in_mouse_amx.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/input/zx/c/sdcc_ix/in_mouse_amx.asm

; void in_mouse_amx(uint8_t *buttons, uint16_t *x, uint16_t *y)

SECTION code_clib
SECTION code_input

PUBLIC _in_mouse_amx

EXTERN asm_in_mouse_amx

_in_mouse_amx:

   call asm_in_mouse_amx
   
   exx
   pop bc
   exx
   
   pop hl
   ld (hl),a
   
   pop hl
   ld (hl),e
   inc hl
   ld (hl),d
   
   pop hl
   ld (hl),c
   inc hl
   ld (hl),b
   
   push hl
   push hl
   push hl
   
   exx
   push bc
   exx
   
   ret
