Bypass navigation menu
RGB Classic Games
Keeping the classics alive
Currently hosting 566 great games!
Return to Chapter 3

SetCursor

Function number: 23

Turns the graphics cursor on/off or sets it to full/half size.

Register entry values

AX = EE17
BX = Action
  0 = Turn graphics cursor off
  1 = Turn graphics cursor on
  2 = Set cursor to full size
  3 = Set cursor to half size

Register exit values

None

Example

MOV     AX,0EE17H       ;Set graphics cursor function
MOV BX,0 ;Turn cursor off
INT 10H ;Call GRAFIX

Comments

The reason I provided a cursor was for the text support. When you turn the cursor on it acts exactly like the cursor you have in text screen mode. It advances 8 points at time up and down so it will always cover a text character evenly. One example of using the text cursor is if you develop an input routine. You could turn the cursor on to show the current position where the person was typing. You could use the half cursor size to indicate the person had pressed the insert key and now the insert state is active.