beautypg.com

Zilog Z8F0130 User Manual

Page 227

background image

eZ8

CPU Core

User Manual

UM012820-0810

RLC Instruction

212

Attributes

Escaped Mode Addressing

Using Escaped Mode Addressing, address modes R or IR specify a work-
ing register. If the destination address is prefixed by

Eh

(

1110b

), a work-

ing 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 the Carry flag is reset and Register

C6h

contains the value

8F

(

10001111b

), the following statement leaves Register

C6h

with the value

1Eh

(

00011110b

), sets the C and V flags and clears S and Z flags:

RLC C6

Object Code: 10 C6

If the Carry flag is reset, Working Register R4 contains the value

C6h

, and

Register

C6h

contains the value

8F

(

10001111b

), the following state-

ment leaves Register

C6h

with the value

1Eh

(

00011110b

), sets the C

and V flags and clears the S and Z flags:

RLC @R4

Object Code: 11 E4

Mnemonic Destination

Op
Code
(Hex)

Operand 1 Operand 2 Operand 3

RLC

R1

10

R1

RLC

@R1

11

R1