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

XorFillBox

Function number: 46

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

Register entry values

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

Register exit values

None

Example

MOV     AX,0EE2EH       ;Xor fill box with color function
MOV BX,0 ;X1 position
MOV CX,0 ;Y1 position
MOV SI,100 ;X2 position
MOV DI,100 ;Y2 position
MOV DX,5 ;Box color
INT 10H ;Call GRAFIX

Comments

None