UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
96
Examples
•
If Register AB3H contains the value
16H
, Register
911H
contains the value
20H
and
the Carry flag is 1, the statement:
CPCX %AB3, %911
Object Code: 1F A8 91 1A B3
sets the C and S flags, and clears the Z and V flags.
•
If Register 2
6CH
contains the value
2AH
, the Carry flag is 0, and the Zero flag is 0, the
statement:
CPCX 26CH, #2AH
Object Code: 1F A9 2A 02 6C
sets the Z flag and clears the C, S, and V flags.