English
Language : 

Z86E3016PSG Datasheet, PDF (340/348 Pages) Zilog, Inc. – Z86E3016PSG
Z8 Family of Microcontrollers
User Manual
322
Test Under Mask
TM dst, src
Instruction Format
OPC
dst src
OPC
src
OPC
dst
Cycles
6
6
OPC
(Hex)
72
73
Address Mode
dst
src
r
r
r
lr
dst
10
74
10
75
R
R
R
IR
src
10
76
R
IM
10
77
IR
IM
Operation
dst AND src
This instruction tests selected bits in the destination operand for a 0 logi-
cal 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 TM
instruction ANDs the destination operand with the source operand (the
mask). The Zero (Z) Flag can then be checked to determine the result. If
the Z Flag is set, then the tested bits were 0. When the TM operation is
complete, the destination and source operands still contain 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
Instruction Description
UM001602-0904