© 1985 ASCII CORP. / NIPPON GAKKI CO.
Page 90 of 108
© 2010-2015 Eugeny Brychkov
4.4.11. PSET
PSET command is used to draw a dot in VRAM of expansion RAM. Programmer can
select logical operation on the existing color of the dot in the specified location. The units
used are dots.
Video or expansion RAM
(DX, DY)
PSET execution order
Step 1: Set necessary coordinates in command registers
MSB
7 6 5 4 3 2 1 0
LSB
R#36
DX7 DX6 DX5 DX4 DX3 DX2 DX1 DX0
R#37
0 0 0 0 0 0 0
DX8
DX: Target
point X
R#38
DY7 DY6 DY5 DY4 DY3 DY2 DY1 DY0
R#39
0 0 0 0 0 0
DY9
DY8
DY: Target
point Y
Step 2: Set color register value
Color of the dot should be coded in color register R#44 (CLR). Format of color data
depends on the graphics mode. It is possible to do logical operation on the existing and
new color of the defined dot through coding the code of logical operation in the CMR.
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