English
Language : 

Z86E3016PSG Datasheet, PDF (339/348 Pages) Zilog, Inc. – Z86E3016PSG
Z8 CPU
User Manual
321
will reset the Z Flag, because bit 7 in the destination operand is not a 1.
The S flag will be set, and the V flag will be cleared.
Example
If Register DFh contains the value FFh (11111111b), 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 1), the statement:
TCM DFh, @07h
Op Code: 65 07 DF
will set the Z Flag indicating the tested bits in the destination operand are
1. The S and V flags are cleared.
Example
If Working Register R13 contains the value F2h (11110010b), the state-
ment:
TCM R13, #02h
Op Code: 66 ED, 02
tests bit 1 of the destination operand for 1. The Z flag will be set indicat-
ing bit 1 in the destination operand was 1. The S and V flags are cleared.
Example
If Register 5Dh contains A0h, and Register A0h contains 0Fh
(00001111b), the statement:
TCM @5D, #10h
Op Code: 67 5D 10
tests bit 4 of the Register A0h for 1. The Z flag will be reset indicating bit
1 in the destination operand was not 1. The S and V flags are cleared.
UM001602-0904
Instruction Description