UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
62
Examples
•
If Register 634H contains the value
2EH
and Register B12H contains the value
1BH
,
the statement:
ADDX 634H, B12H
Object Code: 08 B1 26 34
leaves the value
49H
in Register 634H, sets the H flag and clears the C, Z, S, V, and D
flags.
•
Using Escaped Mode Addressing, if Working Register R4 contains the value
2EH
and
Register B12H contains the value
1BH
, the statement:
ADDX EE4H, B12H
Object Code: 08 B1 2E E4
leaves the value
49H
in Working Register R4, sets the H flag and clears the C, Z, S, V,
and D flags.
•
If Register 46CH contains the value
2AH
the statement:
ADDX 46CH, #03H
Object Code: 09 03 04 6C
leaves the value 2DH in Register 46CH and clears the C, Z, S, V, D, and H flags.