Draw_VL_mode ($F46E)

This routine processes the vector list pointed to by the X register. The current scale factor is used. The vector list has the following format:

mode, rel y, rel x,
mode, rel y, rel x,
. . .
. . .
mode, rel y, rel x,
0x01

where mode has the following meaning:

< 0 use the pattern in $C829
= 0 move to specified endpoint
= 1 end of list, so return
> 1 draw to specified endpoint

 

ENTRY:

DP = $D0

X-reg points to the vector list

$C829 contains the line pattern.

 

EXIT:

X-reg points to next byte after terminator

D-reg trashed

 

Source