Ldb %rr,imm8, Ldb %rr,%ba – Epson S1C63000 User Manual
Page 116
110
EPSON
S1C63000 CORE CPU MANUAL
CHAPTER 4: INSTRUCTION SET
LDB %rr,imm8
Load immediate data imm8 into rr reg.
1 cycle
Function:
rr
←
imm8
Loads the 8-bit immediate data imm8 into the rr (XL or YL) register.
Code:
Mnemonic
MSB
LSB
LDB %XL,imm8
0
1
0
1
0 i7 i6 i5 i4 i3 i2 i1 i0
0A00H–0AFFH
LDB %YL,imm8
0
1
0
1
1 i7 i6 i5 i4 i3 i2 i1 i0
0B00H–0BFFH
Flags:
E
I
C
Z
↓
–
–
–
Mode:
Src: Immediate data
Dst: Register direct
Extended addressing: Valid
Extended
LDB
%EXT,imm8
operation:
LDB
%XL,imm8'
X
←
imm16 (upper 8-bit: imm8, lower 8-bit: imm8')
LDB
%EXT,imm8
LDB
%YL,imm8'
Y
←
imm16 (upper 8-bit: imm8, lower 8-bit: imm8')
LDB %rr,%BA
Load BA reg. into rr reg.
1 cycle
Function:
rr
←
BA
Loads the content of the BA register into the rr register (XL, XH, YL or YH).
Code:
Mnemonic
MSB
LSB
LDB %XL,%BA
1
1
1
1
1
1
1
0
0
0
0
0
0
1FC0H
LDB %XH,%BA
1
1
1
1
1
1
1
0
0
0
0
0
1
1FC1H
LDB %YL,%BA
1
1
1
1
1
1
1
0
0
0
0
1
0
1FC2H
LDB %YH,%BA
1
1
1
1
1
1
1
0
0
0
0
1
1
1FC3H
Flags:
E
I
C
Z
↓
–
–
–
Mode:
Src: Register direct
Dst: Register direct
Extended addressing: Invalid