UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
186
Examples
•
If Register DD4H contains the value
04H
(00000100B), and Register 420 contains the
value
80H
(10000000B) (testing bit 7 if it is 1), the statement:
TCMX DD4H, 420H
Object Code: 68 42 0D D4
resets the Z flag (because bit 7 in the destination operand is not a 1), sets the S flag
and clears the V flag.
•
If Register B52H contains the value
F2H
(11110010B), the statement:
TCMX B52H, #02H
Object Code: 66 02 0B 52
tests bit 1 of the destination operand for 1, sets the Z flag (indicating bit 1 in the
destination operand is 1) and clears the S and V flags.