beautypg.com

Rl [%ir – Epson S1C63000 User Manual

Page 127

background image

S1C63000 CORE CPU MANUAL

EPSON

121

CHAPTER 4: INSTRUCTION SET

RL [%ir]

Rotate left 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 left for 1 bit. The content of the C flag moves to bit 0 of the data memory and bit 3
moves to the C flag.

Code:

Mnemonic

MSB

LSB

RL [%X]

1

0

0

0

0

1

1

1

0

1

0

0

0

10E8H

RL [%Y]

1

0

0

0

0

1

1

1

0

1

0

1

0

10EAH

Flags:

E

I

C

Z

Mode:

Register indirect
Extended addressing: Valid

Extended

LDB

%EXT,imm8

operation:

RL

[%X]

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

LDB

%EXT,imm8

RL

[%Y]

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

RL [%ir]+

Rotate left location [ir reg.] with carry and increment ir reg.

2 cycles

Function:

, ir

ir +1

Rotates the content of the data memory addressed by the ir register (X or Y) including the carry
(C) to the left for 1 bit. The content of the C flag moves to bit 0 of the data memory and bit 3
moves to the C flag. Then increments the ir register (X or Y). The increment result of the ir
register does not affect the flags.

Code:

Mnemonic

MSB

LSB

RL [%X]+

1

0

0

0

0

1

1

1

0

1

0

0

1

10E9H

RL [%Y]+

1

0

0

0

0

1

1

1

0

1

0

1

1

10EBH

Flags:

E

I

C

Z

Mode:

Register indirect
Extended addressing: Invalid

C

3 2 1 0

[ir]

C

3 2 1 0

[ir]