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 11000101PC13–8 (SP + 1) (SP)
PC7–0 (SP + 2) (SP + 3)
EMB,ERB (SP + 5) (SP + 4)
SP SP + 6
IRET 11010101PC13–8 (SP + 1) (SP)
PC7–0 (SP + 2) (SP + 3)
PSW (SP + 4) (SP + 5)
SP SP + 6
SRET 11100101PC13–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 01111001A DA
a7 a6 a5 a4 a3 a2 a1 a0
A,Ra 01101r2 r1 r0 A Ra
A,@RRa 01111i2 i1 i0 A (RRa)
EA,DA 11001111A DA,E DA + 1
a7 a6 a5 a4 a3 a2 a1 a0
EA,RRb 11011100EA RRb
11100r2 r1 0
EA,@HL 11011100A (HL), E (HL + 1)
00000001
XCHI A,@HL 01111010A (HL), then L L+1;
skip if L = 0H
XCHD A,@HL 01111011A (HL), then L L-1;
skip if L = 0FH
LD A,#im 1 0 1 1 d3 d2 d1 d0 A im
A,@RRa 10001i2 i1 i0 A (RRa)
A,DA 10001100A DA
a7 a6 a5 a4 a3 a2 a1 a0
A,Ra 11011101A Ra
00001r2 r1 r0