318
Appendix E Instruction List
■
Memory Loading Instruction
■
Memory Store Instruction
Table E-10 Memory loading instruction
Mnemonic Type OP CYCLE NZVC Operation Remark
LD @Rj,Ri
LD @(R13,Rj),Ri
LD @(R14,disp10),Ri
LD @(R15,udisp6),Ri
LD @R15+,Ri
LD @R15+,Rs
LD @R15+,PS
A
A
B
C
E
E
E
04
00
20
03
07-0
07-8
07-9
b
b
b
b
b
b
1+a+b
----
----
----
----
----
----
CCCC
(Rj)
→
Ri
(R13+Rj) →
Ri
(R14+disp10) →
Ri
(R15+udisp6)
→
Ri
(R15) →
Ri,R15+=4
(R15) →
Rs,R15+=4
(R15)
→
PS,R15+=4
Rs: special register
*
LDUH @Rj,Ri
LDUH @(R13,Rj),Ri
LDUH @(R14,disp9),Ri
A
A
B
05
01
40
b
b
b
----
----
----
(Rj)
→
Ri
(R13+Rj)
→
Ri
(R14+disp9) →
Ri
0 expansions
0 expansions
0 expansions
LDUB @Rj,Ri
LDUB @(R13,Rj),Ri
LDUB @(R14,disp8),Ri
A
A
B
06
02
60
b
b
b
----
----
----
(Rj)
→
Ri
(R13+Rj)
→
Ri
(R14+disp8) →
Ri
0 expansions
0 expansions
0 expansions
*:Special register Rs: TBR, RP, USP, SSP, MDH, MDL
Note:
The assembler calculates and sets values as follows in the 08 and 04 fields for hardware specifications.
disp10/4→o8, disp9/2→o8, disp8→o8, disp10, disp9, disp8 are with sign.
udisp6/4→o4udisp6 is without sign.
Table E-11 Memory store instruction
Mnemonic Type OP CYCLE NZVC Operation Remark
ST Ri,@Rj
ST Ri,@(R13,Rj)
ST Ri,@(R14,disp10)
ST Ri,@(R15,udisp6)
ST Ri,@-R15
ST Rs,@-R15
ST PS,@-R15
A
A
B
C
E
E
E
14
10
30
13
17-0
17-8
17-9
a
a
a
a
a
a
a
----
----
----
----
----
----
----
Ri
→
(Rj)
Ri
→
(R13+Rj)
Ri→
(R14+disp10)
Ri→
(R15+udisp6)
R15-=4,Ri
→
(R15)
R15-=4,Rs→
(R15)
R15-=4,PS→
(R15)
Word
Word
Word
Rs: special register
*
STH Ri,@Rj
STH Ri,@(R13,Rj)
STH Ri,@(R14,disp9)
A
A
B
15
11
50
a
a
a
----
----
----
Ri
→
(Rj)
Ri→
(R13+Rj)
Ri
→
(R14+disp9)
Half word
Half word
Half word
STB Ri,@Rj
STB Ri,@(R13,Rj)
STB Ri,@(R14,disp8)
A
A
B
16
12
70
a
a
a
----
----
----
Ri
→
(Rj)
Ri
→
(R13+Rj)
Ri→
(R14+disp8)
Byte
Byte
Byte
*:Special register Rs: TBR, RP, USP, SSP, MDH, MDL
Note:
The assembler calculates and sets values as follows in the 08 and 04 fields for hardware specifications.
disp10/4→o8, disp9/2→o8, disp8→o8, disp10, disp9, disp8 are with sign.
udisp6/4→o4udisp6 is without sign.