English
Language : 

Z86E3016PSG Datasheet, PDF (342/348 Pages) Zilog, Inc. – Z86E3016PSG
Z8 Family of Microcontrollers
User Manual
324
will set the Z Flag, because bit 2 in the destination operand is a 0. The S
and V Flags will be cleared.
Example
If Register DFh contains the value ← (00000000b), Register 07h con-
tains the value 1Fh, and Register 1Fh contains the value BDh
(10111101b) (bit 7, bit 5, bit 4, bit 3, bit 2, and bit 0 are being tested if
they are 0), the statement:
TM DFh, @07h
Op Code: 75 07 DF
will set the Z Flag indicating the tested bits in the destination operand are
0. The S is set, and the V Flag is cleared.
Example
If Working Register R13 contains the value F1h (11110001b), the state-
ment:
TM R13, #02h
Op Code: 76 ED, 02
tests bit 1 of the destination operand for 0. The Z flag will be set indicat-
ing bit 1 in the destination operand was 0. The S and V flags are cleared.
Example
If Register 5Dh contains A0h, and Register A0h contains 0Fh
(00001111b), the statement:
TM @5D, #10h
Op Code: 77 5D 10
tests bit 4 of the Register A0h for 0. The Z flag will be set indicating bit 4
in the destination operand was 0. The S and V flags are cleared.
Instruction Description
UM001602-0904