in_mouse_kempston.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/input/zx/c/sdcc_iy/in_mouse_kempston.asm

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

SECTION code_clib
SECTION code_input

PUBLIC _in_mouse_kempston

EXTERN asm_in_mouse_kempston

_in_mouse_kempston:

   call asm_in_mouse_kempston

   pop ix
      
   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
   
   jp (ix)
