Ld %r,[%ir, Ld [%ir],%r – Epson S1C63000 User Manual

Page 107

Advertising
background image

S1C63000 CORE CPU MANUAL

EPSON

101

CHAPTER 4: INSTRUCTION SET

LD %r,[%ir]+

Load location [ir reg.] into r reg. and increment ir reg.

1 cycle

Function:

r

[ir], ir

ir + 1

Loads the content of the data memory addressed by the ir register (X or Y) into the r register (A
or B). Then increments the ir register (X or Y).

Code:

Mnemonic

MSB

LSB

LD %A,[%X]+

1

1

1

1

0

1

1

1

0

0

0

0

1

1EE1H

LD %A,[%Y]+

1

1

1

1

0

1

1

1

0

0

0

1

1

1EE3H

LD %B,[%X]+

1

1

1

1

0

1

1

1

0

0

1

0

1

1EE5H

LD %B,[%Y]+

1

1

1

1

0

1

1

1

0

0

1

1

1

1EE7H

Flags:

E

I

C

Z

Mode:

Src: Register indirect
Dst: Register direct
Extended addressing: Invalid

LD [%ir],%r

Load r reg. into location [ir reg.]

1 cycle

Function:

[ir]

r

Loads the content of the r register (A or B) into the data memory addressed by the ir register (X
or Y).

Code:

Mnemonic

MSB

LSB

LD [%X],%A

1

1

1

1

0

1

1

1

0

1

0

0

0

1EE8H

LD [%X],%B

1

1

1

1

0

1

1

1

0

1

1

0

0

1EECH

LD [%Y],%A

1

1

1

1

0

1

1

1

0

1

0

1

0

1EEAH

LD [%Y],%B

1

1

1

1

0

1

1

1

0

1

1

1

0

1EEEH

Flags:

E

I

C

Z

Mode:

Src: Register direct
Dst: Register indirect
Extended addressing: Valid

Extended

LDB

%EXT,imm8

operation:

LD

[%X],%r

[00imm8]

r (00imm8 = 0000H + 00H to FFH)

LDB

%EXT,imm8

LD

[%Y],%r

[FFimm8]

r (FFimm8 = FF00H + 00H to FFH)

Advertising