
eZ8
™
CPU Core
User Manual
UM012820-0810 CLR Instruction
118
Escaped Mode Addressing
Using Escaped Mode Addressing, address modes R or IR can specify a
working register. If the destination address is prefixed by
Eh (1110b), a
working register is inferred. For example, if Working Register R12 (
Ch) is
the preferred destination operand, use
ECh as the destination operand in
the Op Code. To access registers with addresses
E0h to EFh, either set the
Working Group Pointer,
RP[7:4], to Eh or use indirect addressing.
Sample Usage
Using Escaped Mode Addressing, if Working Register R6 contains AFh,
the following statement leaves the value
00h in Working Register R6:
CLR R6
Object Code: B0 E6
If Register A5h contains the value 23h, and Register 23h contains the
value
FCh, the following statement leaves the value 00h in Register 23h:
CLR @
A5h
Object Code: B1 A5
Kommentare zu diesen Handbüchern