Rr %r rr [%ir – Epson S1C63000 User Manual

Page 128

Advertising
background image

122

EPSON

S1C63000 CORE CPU MANUAL

CHAPTER 4: INSTRUCTION SET

RR %r

RR [%ir]

Rotate right r reg. with carry

1 cycle

Function:

Rotates the content of the r register (A or B) including the carry (C) to the right for 1 bit. The
content of the C flag moves to bit 3 of the r register and bit 0 moves to the C flag.

Code:

Mnemonic

MSB

LSB

RR %A

1

0

0

0

0

1

1

1

1

0

0

1

1

10F3H

RR %B

1

0

0

0

0

1

1

1

1

0

1

1

1

10F7H

Flags:

E

I

C

Z

Mode:

Register direct
Extended addressing: Invalid

r

C

3 2 1 0

[ir]

C

3 2 1 0

Rotate right location [ir reg.] with carry

2 cycles

Function:

Rotates the content of the data memory addressed by the ir register (X or Y) including the carry
(C) to the right for 1 bit. The content of the C flag moves to bit 3 of the data memory and bit 0
moves to the C flag.

Code:

Mnemonic

MSB

LSB

RR [%X]

1

0

0

0

0

1

1

1

0

1

1

0

0

10ECH

RR [%Y]

1

0

0

0

0

1

1

1

0

1

1

1

0

10EEH

Flags:

E

I

C

Z

Mode:

Register indirect
Extended addressing: Valid

Extended

LDB

%EXT,imm8

operation:

RR

[%X]

Rotates the content of [00imm8] (00imm8 = 0000H + 00H to FFH)

LDB

%EXT,imm8

RR

[%Y]

Rotates the content of [FFimm8] (FFimm8 = FF00H + 00H to FFH)

Advertising