Difference between revisions of "83Plus:BCALLs:4D53"

From WikiTI
Jump to: navigation, search
 
m (Synopsis: changed to ", and" ... grammar people! :P)
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
 
'''BCALL Address:''' 4D53
 
'''BCALL Address:''' 4D53
  
Erases the mouse cursor. And restores the previous contents.
+
Erases the mouse cursor, and restores the previous contents.
  
 
=== Inputs ===
 
=== Inputs ===
Line 20: Line 20:
  
 
== Example ==
 
== Example ==
<nowiki> B_CALL AppStartMouse
+
  B_CALL [[83Plus:BCALLs:4D47|AppStartMouse]]
MouseLoop:
+
MouseLoop:
cp 0Ch
+
  cp 0Ch
jr z,MouseDone
+
  jr z,MouseDone
B_CALL AppUpdateMouse
+
  B_CALL [[83Plus:BCALLs:4D65|AppUpdateMouse]]
jr MouseLoop
+
  jr MouseLoop
MouseDone:
+
MouseDone:
B_CALL AppEraseMouse
+
  B_CALL AppEraseMouse
ret</nowiki>
+
  ret

Latest revision as of 19:38, 11 April 2005

Synopsis

Official Name: AppEraseMouse

BCALL Address: 4D53

Erases the mouse cursor, and restores the previous contents.

Inputs

Outputs

  • Mouse cursor erased from screen.

Destroys

  • AF, BC, DE, HL

Comments

You must call AppStartMouse to initialize memory before calling AppEraseMouse. AppEraseMouse erases the mouse cursor when you are done. The below example allows a user to move the mouse cursor around the screen, and returns once the enter key is pressed.

Example

 B_CALL AppStartMouse
MouseLoop:
 cp 0Ch
 jr z,MouseDone
 B_CALL AppUpdateMouse
 jr MouseLoop
MouseDone:
 B_CALL AppEraseMouse
 ret