
eZ8
™
CPU Core
User Manual
UM012820-0810 LEA Instruction
188
Sample Usage
If Working Register R3 contains the value 16h, the following statement
leaves the value
2Bh in Working Register R11:
LEA R11, %15(R3)
Object Code: 98 B3 15
The flags are unaffected.
If Working Register R8 contains the value 22h and Working Register R9
contains the value
ABh (16-bit value of 22ABh stored in Working Register
Pair RR8), the following statement leaves the 16-bit result of
2324h in
Working Register Pair RR12, stores the most significant byte value
23h
in Working Register R12 and stores the least significant byte value
24h in
Working Register R13:
LEA RR14, %79(RR8)
Object Code: 99 E8 79
The flags are unaffected.
Kommentare zu diesen Handbüchern