beautypg.com

Zilog Z8F0130 User Manual

Page 260

background image

eZ8

CPU Core

User Manual

UM012820-0810

TM Instruction

245

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

02h

(

00000010b

) (testing bit 1 if it is

0), the following statement sets the Z flag (indicating bit 1 in the destina-
tion operand is 0), and clears the V and S flags:

TM R3, R7

Object Code: 72 37

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 0), the following state-

Mnemonic

Destination,
Source

Op
Code
(Hex)

Operand 1 Operand 2 Operand 3

TM

r1, r2

72

{r1, r2}

TM

r1, @r2

73

{r1, r2}

TM

R1, R2

74

R2

R1

TM

R1, @R2

75

R2

R1

TM

R1, IM

76

R1

IM

TM

@R1, IM

77

R1

IM