home *** CD-ROM | disk | FTP | other *** search
/ Falcon 030 Power 2 / F030_POWER2.iso / ST_STE / MAGS / ICTARI07.ARJ / ictari.07 / ASSEMBLY / SET_M_XY / SET_M_XY.DOC next >
Text File  |  1993-09-06  |  1KB  |  26 lines

  1. SUB-ROUTINE NAME        Set_Mouse_XY
  2. BRIEF DESCRIPTION       Set Mouse Position to that specified (x/y)
  3. FILENAME                SET_M_XY
  4. OTHER RESOURCES         Uses LineA
  5. LANGUAGE                Assembler (Devpac)
  6. AUTHOR                  Simon.H.Rigby - aka PoshPaws - aka Si(gh)
  7. ENTRY PARAMETERS        Push Stack with unsigned X Coordinate (word)
  8.                         Push Stack with unsigned Y Coordinate (word)
  9. MACRO PARAMETERS        Pass x,y
  10. EXIT PARAMETERS         None
  11.  
  12. DETAILS -
  13.         Uses LineA routines to hide the mouse, move the mouse coordinates, then
  14.         show the mouse again. Destroys the contents of d0-d2/a0-a2.
  15.         No range checking is performed.
  16.         Add #4 to the stack pointer when finished unless using macro.
  17.  
  18. Example - library
  19.                 move.w  #12,-(sp)       ;set X coordinate
  20.                 move.w  #50,-(sp)       ;set Y coordinate
  21.                 bsr     Set_Mouse_XY    ;move mouse pointer
  22.                 addq.w  #4,sp           ;adjust stack
  23. Example - macro
  24.                Set_Mouse_XY   #12,#50
  25.  
  26.