UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
191
Examples
•
If Register 789H contains the value
45H
(01000101B) and Register 246H contains the
value
02H
(00000010B) (testing bit 1 if it is 0), the statement:
TMX 789H, 246H
Object Code: 78 24 67 89
sets the Z flag (indicating bit 1 in the destination operand is 0) and clears the V and S
flags.
•
If Register 13H contains the value
F1H
(11110001B), the statement:
TMX %013, #02H
Object Code: 79 02 00 13
tests bit 1 of the destination operand for 0 sets the Z flag (indicating bit 1 in the
destination operand is 0) and clears the S and V flags.