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 >
Wrap
Text File
|
1993-09-06
|
1KB
|
26 lines
SUB-ROUTINE NAME Set_Mouse_XY
BRIEF DESCRIPTION Set Mouse Position to that specified (x/y)
FILENAME SET_M_XY
OTHER RESOURCES Uses LineA
LANGUAGE Assembler (Devpac)
AUTHOR Simon.H.Rigby - aka PoshPaws - aka Si(gh)
ENTRY PARAMETERS Push Stack with unsigned X Coordinate (word)
Push Stack with unsigned Y Coordinate (word)
MACRO PARAMETERS Pass x,y
EXIT PARAMETERS None
DETAILS -
Uses LineA routines to hide the mouse, move the mouse coordinates, then
show the mouse again. Destroys the contents of d0-d2/a0-a2.
No range checking is performed.
Add #4 to the stack pointer when finished unless using macro.
Example - library
move.w #12,-(sp) ;set X coordinate
move.w #50,-(sp) ;set Y coordinate
bsr Set_Mouse_XY ;move mouse pointer
addq.w #4,sp ;adjust stack
Example - macro
Set_Mouse_XY #12,#50