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

XorLineC

Function number: 39

XORs a line starting at the upper left X, Y position to the lower right X, Y position using the specified color.

Register entry values

AX = EE27
BX = Upper left X position
CX = Upper left Y position
SI = Lower right X position
DI = Lower right Y position
DX = Color of line

Register exit values

None

Example

MOV     AX,0EE27H       ;Xor line with color function
MOV BX,0 ;Upper left X
MOV CX,0 ;Upper left Y
MOV SI,319 ;Lower right X
MOV DI,199 ;Lower right Y
MOV DX,12 ;Line color
INT 10H ;Call GRAFIX

Comments

None