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

Line

Function number: 11

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

Register entry values

AX = EE0B
BX = Upper left X position
CX = Upper left Y position
SI = Lower right X position
DI = Lower right Y position

Register exit values

None

Example

MOV     AX,0EE0BH       ;Draw line 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
INT 10H ;Call GRAFIX

Comments

None