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

XorLineRel

Function number: 42

XORs a line from the current X, Y position adding the number of points horizontally and vertically to get the ending X, Y position. The line is drawn using the current drawing color.

Register entry values

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

Register exit values

None

Example

MOV     AX,0EE2AH       ;Xor line relative function
MOV SI,10 ;Number of points to add horizontally
MOV DI,10 ;Number of points to add vertically
INT 10H ;Call GRAFIX

Comments

You can give this function both positive and negative values.