UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
56
•
Using Escaped Mode Addressing, if Working Register R4 contains the value
2EH
, the
Carry flag is set, and Register 12H contains the value
1BH
, the statement:
ADC E4H, 12H
Object Code: 14 12 E4
leaves the value
4AH
in Working Register R4, sets the H flag, and clears the C, Z, S, V,
and D flags.
•
Using Escaped Mode Addressing, if Register 4BH contains the value
82H
, the Carry
flag is set, Working Register R3 contains the value
10H
, and Register 10H contains the
value
01H
, the statement:
ADC 4BH, @R3
Object Code: 15 E3 4B
leaves the value
84H
in Register 4BH, sets the S flag and clears the C, Z, V, D, and H
flags.
•
If Register 6CH contains the value
2AH
, and the Carry flag is not set, the statement:
ADC 6CH, #03H
Object Code: 16 6C 03
leaves the value
2DH
in Register 6CH and clears the C, Z, S, V, D, and H flags.
•
If Register D4H contains the value
5FH
, Register 5FH contains the value
4CH
, and the
Carry flag is set, the statement:
ADC @D4H, #02H
Object Code: 17 D4 02
leaves the value
4FH
in Register 5FH and clears the C, Z, S, V, D, and H flags.