Geekboy

Untitled

Jul 1st, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Hook:
  2.  ld a,(HookExitFlag)
  3.  or a
  4.  jp z,_HookExit
  5.  ld a,99
  6.  ld (mousex),a
  7.  ld (mousey),a
  8. _HookExit:
  9.  ld a,1
  10.  ld (hookexitflag),a
  11.  pop de  ;Pop so that the ret returns to the program not the gui routine
  12.  ei
  13.  ret
Advertisement
Add Comment
Please, Sign In to add comment