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

LineC

Function number: 30

Draws 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 = EE1E
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,0EE1EH       ;Draw line with color function
MOV BX,10 ;X1 position
MOV CX,10 ;Y1 position
MOV SI,150 ;X2 position
MOV DI,199 ;Y2 position
MOV DX,1 ;Color of line
INT 10H ;Call GRAFIX

Comments

None