UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
58
Examples
•
If Register 634H contains the value
2EH
, the Carry flag is set, and Register B12H
contains the value
1BH
, the statement:
ADCX 634H, B12H
Object Code: 18 B1 26 34
leaves the value
4AH
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
, the
Carry flag is set, and Register B12H contains the value
1BH
, the statement:
ADCX EE4H, B12H
Object Code: 18 B1 2E E4
leaves the value
4AH
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
, and the Carry flag is not set, the statement:
ADCX 46CH, #03H
Object Code: 19 03 04 6C
leaves the value
2DH
in Register 46CH and clears the C, Z, S, V, D, and H flags.