LineRelC
Function number: 32
Draws a line from the current X, Y position adding the number of points horizontally and vertically to get the ending X, Y position. The line is drawn using the specified color.
Register entry values
AX = EE20
SI = Number of points to move horizontally
DI = Number of points to move vertically
DX = Color of line
Register exit values
None
Example
MOV AX,0EE20H ;Draw line relative with color function
MOV SI,5 ;Number of points to move horizontally
MOV DI,10 ;Number of points to move vertically
MOV DX,2 ;Color of line
INT 10H ;Call GRAFIX
Comments
You can give this function both positive and negative values.