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

DrawBox

Function number: 14

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

Register entry values

AX = EE0E
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,0EE0EH       ;Draw box with color function
MOV BX,0 ;Upper left X
MOV CX,0 ;Upper left Y
MOV SI,100 ;Lower right X
MOV DI,100 ;Lower right Y
MOV DX,1 ;Box color
INT 10H ;Call GRAFIX

Comments

None