SAM47 INSTRUCTION SET
KS57C2308/P2308/C2316/P2316
5-16
Table 5-16. Program Control Instructions — Binary Code Summary (Continued)
Name
Operand
Binary Code
Operation Notation
RET
–
1
1
0
0
0
1
0
1
PC13–8
←
(SP + 1) (SP)
PC7–0
←
(SP + 2) (SP + 3)
EMB,ERB
←
(SP + 5) (SP + 4)
SP
←
SP + 6
IRET
–
1
1
0
1
0
1
0
1
PC13–8
←
(SP + 1) (SP)
PC7–0
←
(SP + 2) (SP + 3)
PSW
←
(SP + 4) (SP + 5)
SP
←
SP + 6
SRET
–
1
1
1
0
0
1
0
1
PC13–8
←
(SP + 1) (SP)
PC7–0
←
(SP + 3) (SP + 2)
EMB,ERB
←
(SP + 5) (SP + 4)
SP
←
SP + 6, then skip
Table 5-17. Data Transfer Instructions — Binary Code Summary
Name
Operand
Binary Code
Operation Notation
XCH
A,DA
0
1
1
1
1
0
0
1
A
↔
DA
a7
a6
a5
a4
a3
a2
a1
a0
A,Ra
0
1
1
0
1
r2
r1
r0
A
↔
Ra
A,@RRa
0
1
1
1
1
i2
i1
i0
A
↔
(RRa)
EA,DA
1
1
0
0
1
1
1
1
A
↔
DA,E
↔
DA + 1
a7
a6
a5
a4
a3
a2
a1
a0
EA,RRb
1
1
0
1
1
1
0
0
EA
↔
RRb
1
1
1
0
0
r2
r1
0
EA,@HL
1
1
0
1
1
1
0
0
A
↔
(HL), E
↔
(HL + 1)
0
0
0
0
0
0
0
1
XCHI
A,@HL
0
1
1
1
1
0
1
0
A
↔
(HL), then L
←
L+1;
skip if L = 0H
XCHD
A,@HL
0
1
1
1
1
0
1
1
A
↔
(HL), then L
←
L-1;
skip if L = 0FH
LD
A,#im
1
0
1
1
d3
d2
d1
d0
A
←
im
A,@RRa
1
0
0
0
1
i2
i1
i0
A
←
(RRa)
A,DA
1
0
0
0
1
1
0
0
A
←
DA
a7
a6
a5
a4
a3
a2
a1
a0
A,Ra
1
1
0
1
1
1
0
1
A
←
Ra
0
0
0
0
1
r2
r1
r0
Summary of Contents for C2316
Page 30: ...ADDRESS SPACES KS57C2308 P2308 C2316 P2316 2 22 NOTES ...
Page 168: ...SAM47 INSTRUCTION SET KS57C2308 P2308 C2316 P2316 5 94 NOTES ...
Page 170: ......
Page 206: ...POWER DOWN KS57C2308 P2308 C2316 P2316 8 8 NOTES ...
Page 210: ...RESET KS57C2308 P2308 C2316 P2316 9 4 NOTES ...
Page 222: ...I O PORTS KS57C2308 P2308 C2316 P2316 10 12 NOTES ...
Page 272: ...LCD CONTROLLER DRIVER KS57C2308 P2308 C2316 P2316 12 24 NOTES ...
Page 280: ...SERIAL I O INTERFACE KS57C2308 P2308 C2316 P2316 13 8 NOTES ...
Page 294: ...MECHANICAL DATA KS57C2308 P2308 C2316 P2316 15 2 NOTES ...
Page 310: ...KS57P2308 P2316 OTP KS57C2308 P2308 C2316 P2316 16 16 NOTES ...
Page 318: ......
Page 320: ......
Page 322: ......
Page 325: ......
Page 327: ......