© 1985 ASCII CORP. / NIPPON GAKKI CO.
Page 65 of 108
© 2010-2015 Eugeny Brychkov
4.3. Logical operations
When executing logical commands LINE, PSET and LOGICAL MOVE, it is possible to
define logical operation to be done on the color of the pixels. The four bits identifying the
logical operation should be written in lower four bits of R#46 (command register) together
with the command code.
Name
Operation
LO3
LO2
LO1
LO0
IMP
DC=SC
0 0 0 0
AND
DC=SC&DC
0 0 0 1
OR
DC=SC|DC
0 0 1 0
XOR
DC=SC^DC
0 0 1 1
NOT
DC=!SC
0 1 0 0
0 1 0 1
0 1 1 0
Invalid
0 1 1 1
TIMP
If SC=0 then DC=DC else DC=SC
1
0
0
0
TAND
If SC=0 then DC=DC else DC=SC&DC
1
0
0
1
TOR
If SC=0 then DC=DC else DC=SC|DC
1
0
1
0
TXOR
If SC=0 then DC=DC else DC=SC^DC
1
0
1
1
TNOT
If SC=0 then DC=DC else DC=!SC
1
1
0
0
1 1 0 1
1 1 1 0
Invalid
1 1 1 1
*SC = source color code
*DC = destination color code