© 1985 ASCII CORP. / NIPPON GAKKI CO.
Page 86 of 108
© 2010-2015 Eugeny Brychkov
Step 2: Set color register value
Color of the resulting line mask is coded in color register R#44 (CLR). Format of color
data depends on the graphics mode.
MSB
7 6 5 4 3 2 1 0
LSB
R#44
- - - - C3
C2
C1
C0 G4,
G6
- - - - - - C1
C0 G5
C7 C6 C5 C4 C3 C2 C1 C0 G7
Step 3: Select destination memory, direction from base coordinate and orientation
Bit MAJ of the register R#45 controls which coordinate is defined in registers R#40-
R#43. If this bit is 0, then long side (NY) defines triangle’s side by X-axis and short side
(NX) defines triangle’s side by Y-axis; if this bit is 1, then long side (NY) defines triangle’s
side by Y-axis and short side (NX) defines triangle’s side by X-axis.
MSB
7 6 5 4 3 2 1 0
LSB
R#45
0 - MXD
- DIY
DIX - MAJ
0: Long X
1: Long Y
Long/short
axis definition
0: Right
1: Left
X transfer
direction
0: Down
1: Up
Y transfer
direction
0: VRAM
1: ExpRAM
Destination
location select
Step 4: Define logical operation and execute the command
MSB
7 6 5 4 3 2 1 0
LSB
R#46
0 1 1 1
LO3 LO2 LO1 LO0 LINE
cmd
Logical operation
Step 5: Check for command completion
CPU should check CE bit of status register S#2 to identify if VDP has completed
execution of the command. When command is being executed, CE bit is set to 1; when
command is complete, CE bit will be reset to 0.