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.S < prev   
Text File  |  1993-09-06  |  818b  |  19 lines

  1. ;Set Position of Mouse Pointer
  2. ;ENTRY: Stack = X Position in Unsigned Word
  3. ;               Y Position in Unsigned Word
  4. ;               return address in Long
  5. ;EXIT:  Mouse pointer moved to position requested
  6. ;       REMEMBER to add 4 to stack pointer upon return
  7. ;USES:  d0-d2/a0-a2
  8.  
  9.                 TEXT
  10. Set_Mouse_XY    dc.w    $a00a           ;hide mouse (if not already hidden)
  11.                 dc.w    $a000           ;a0 contains LineA table pointer
  12.                 move.w  6(sp),-$25a(a0) ;move mouse
  13.                 move.w  4(sp),-$258(a0)
  14.                 move.l  8(a0),a0        ;pointer to INTIN
  15.                 move.w  #1,(a0)         ;only show mouse to one level
  16.                 dc.w    $a009           ;show mouse (if not previously hidden)          
  17.                 rts
  18.                 
  19.