English
Language : 

Z86E3016PSG Datasheet, PDF (337/348 Pages) Zilog, Inc. – Z86E3016PSG
Z8 CPU
User Manual
319
Test Complement Under Mask
TCM dst, src
Instruction Format
OPC
dst src
OPC
src
OPC
dst
Cycles
6
6
OPC
(Hex)
62
63
Address Mode
dst
src
r
r
r
lr
dst
10
64
10
65
R
R
R
IR
src
10
66
R
IM
10
67
IR
IM
Operation
(NOT dst) AND src
This instruction tests selected bits in the destination operand for a logical
1 value. The bits to be tested are specified by setting a 1 bit in the corre-
sponding bit position in the source operand (the mask). The TCM instruc-
tion complements the destination operand, and then ANDs it with the
source mask (operand). The Zero (Z) Flag can then be checked to deter-
mine the result. If the Z Flag is set, then the tested bits were 1. When the
TCM operation is complete, the destination and source operands still con-
tain their original values.
Flag
Z
S
V
D
H
Description
Set if the result is zero; cleared otherwise.
Set if the result bit 7 is set; cleared otherwise.
Always reset to 0.
Unaffected
Unaffected
UM001602-0904
Instruction Description