
eZ8
™
CPU Core
User Manual
UM012820-0810 COM Instruction
120
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
If Register 08h contains 24h (00100100b), the following statement
leaves the value
DBh (11011011b) in Register 08h, sets the S flag, and
clears the Z and V flags:
COM
08h
Object Code: 60 08
If Register 08h contains the value 24h, and Register 24h contains the
value
FFh (11111111b), the following statement leaves the value 00h
(
00000000b) in Register 24h, sets the Z flag is set and clears the V and S
flags:
COM @
08h
Object Code: 61 08
Comentarios a estos manuales