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

XorLineRelC

Function number: 43

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 specified color.

Register entry values

AX = EE2B
SI = Number of points to add horizontally
DI = Number of points to add vertically
DX = Line color

Register exit values

None

Example

MOV     AX,0EE2BH       ;Xor line relative with color function
MOV SI,-10 ;Number of points to add horizontally
MOV DI,-10 ;Number of points to add vertically
MOV DX,3 ;Line color
INT 10H ;Call GRAFIX

Comments

You can give this function both positive and negative values.