
eZ8
™
CPU Core
User Manual
UM012820-0810 TCM Instruction
240
Attributes
Escaped Mode Addressing
Using Escaped Mode Addressing, address modes R or IR specify a work-
ing register. If the high nibble of the source or destination address is 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 Working Register R3 contains the value 45h (01000101b) and Work-
ing Register R7 contains the value 01h (00000001b) (testing bit 0 if it is
1), the following statement sets the Z flag indicating bit 0 in the destina
-
tion operand is 1 and clears the V and S flags:
TCM R3, R7
Object Code: 62 37
If Working Register R14 contains the value F3h (11110011b), Working
Register R5 contains the value
CBh, and Register CBh contains the value
88h (10001000b; testing bits 7 and 3 if they are 1), the following state-
Mnemonic
Destination,
Source
Op
Code
(Hex) Operand 1 Operand 2 Operand 3
TCM r1, r2 62 {r1, r2} — —
TCM r1, @r2 63 {r1, r2} — —
TCM R1, R2 64 R2 R1 —
TCMR1, @R265R2R1—
TCM R1, IM 66 R1 IM —
TCM @R1, IM 67 R1 IM —
Kommentare zu diesen Handbüchern