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

MoveRel

Function number: 09

Updates the current X, Y position by adding to the previous X, Y values.

Register entry values

AX = EE09
SI = Number of points to add horizontally
DI = Number of points to add vertically

Register exit values

None

Example

MOV     AX,0EE09H       ;Move relative function
MOV SI,10 ;Horizontal points to move
MOV DI,10 ;Vertical points to move
INT 10H ;Call GRAFIX

Comments

You can give this function either positive or negative values allowing you to move up, down, left, and right.