Sie sind auf Seite 1von 70

32

SPCE3200 S+c
SPCE3200
o
r
e7 ;

SPCE3200

,,,

(
CIP)
32 / .:,2010.
7

TP332

CIP (
2010) 121865

.3

I
SBN978 7 5124 0130 3

, ,
,

,, , ,
,

32

//www.
37 (:
100191) h
t
t
bua
ap
r
e
s
s.
c
om.
cn
p:
:(
010)
82317024 :(
010)
82328026

:
bhp
r
e
s
s@263.
ne
t :(
010)
82316936

:
787mm1092mm 1/16 :
21.
75 :
557

2010 7 1 2010 7 1

:
4000

I
SBN978 7 5124 0130 3 :
35.
00


8 8
;,,
, MCU (

PDA
GPS MP3 MP4 PMP )

,
,
, MCU 8/16

NEC
NXP
Atme
l

, CPU , ARMMIPS ,
SOC 32 , MCU

2006 S+c
o
r
e7 32

PDA
GPSMP3
PMP

(
i
n
f
o
t
a
i
nmen
t)
STB ,
S+c
o
r
e7 32 ,

IC 2001
, ,

, 8 600

, 16 300 ,

, S+c
o
r
e7
32 SOC SPCE3200

SPCE3200 MPEG4
32 KB SRAM
4 KB
4KB
DMA ; / NTSC/PAL
16 DAC
VGA/CIF TFT/STN LCD
; RGB565
CCIR 601/656CMOS
TVE
; SD Nand F
l
a
sh ; USB1.
1 USB1.
1
; RS232
SPI
S
IO
I2C
I2S SPCE3200 ,
,,

32 , SPCE3200

; , SPCE3200
,
, , SPCE3200


2010 5

SPCE3200 S+c
o
r
e7( )
32 , 12 ADC
16 DAC; UART
SPI
I2C

S
IO
USB ; 6 ; No
r
F
l
a
sh
Nand F
l
a
sh
SD ; TFT/STN LCD TV
; MPEG4
CMOS
SPCE3200

32 S+c
o
r
eIDE, Wi
ndows ,
, C 32 ,

, SPCE3200

1.

SPCE3200 S+c
o
r
e7 ,
SPCE3200
ADC UART
,
SPCE3200 S+c
o
r
eIDE,

SPCE3200 7 :

1 S+c
o
r
e7 ,

2 S+c
o
r
e7 , S+c
o
r
e7

, S+c
o
r
e7 , 32 16

3 SPCE3200 , SPCE3200

APBDMA

4 SPCE3200 15 , GPIO
Time
r

ADC
UART
SPI
I2C
S
IO
NOR F
l
a
sh
TFT LCD
,

5 SPCE3200 S+c
o
r
eIDE
6 , SPCE3200

7 , SPCE3200


S+c
o
r
e7
SPCE3200

S+c
o
r
e7

2.

, , ,

3.

,
,
Rex Wu ,
SPCE3200 ,
www.
unsp.
c
om SPCE3200
, (
bbs.
unsp.
c
om)
, unsp@sunp
l
us.
c
om.
cn,

,,


2010 5

1 S+c
o
r
e7 1
1.
1 S+co
r
e7 1
1.
2 S+co
r
e7 1
1.
3 2

1.
4 2
1.
5 3
1.
5.
1 3

1.
5.
2 3
1.
5.
3 4
1.
5.
4 4

1.
5.
5 4
1.
6 10
1.
6.
1 10

1.
6.
2 10
1.
6.
3 12
1.
6.
4 13

1.
6.
5 14
1.
7 17
1.
7.
1 Ca
che 18
1.
7.
2 Ca
che 19

1.
7.
3 19
1.
8 20
1.
8.
1 20
1.
8.
2 20

1.
9 20

2 S+c
o
r
e7 22
2.
1 22
2.
2 22
2.
3 32 25
2.
3.
1 25
2.
3.
2 32
2.
3.
3 43

2.
3.
4 44

2.
3.
5 49
2.
4 16 51
2.
4.
1 51
2.
4.
2 53

2.
4.
3 54
2.
4.
4 55
2.
4.
5 55

2.
5 55
2.
6 S+co
r
e7 GNU 59
r
e7C 59
2.
6.
1 S+co

2.
6.
2 S+co
r
e7C 60
2.
6.
3 S+co
r
e7C 60
2.
7 S+co
r
e7 GNU 62
2.
7.
1 S+co
r
e7C 62

2.
7.
2 63
2.
7.
3 63
2.
7.
4 66

2.
8 S+co
r
e7 GNU 67
68

3 SPCE3200

68
3.
1.
1 68
3.
1.
2 SPCE3200 68

3.
1

3.
2 69
3.
2.
1 SPCE3200 69
3.
2.
2 SPCE3200 69

3.
3 76
3.
4 77
3.
5 78

3.
6 PLL CKG 80
3.
6.
1 PLL 80
3.
6.
2 CKG 81

3.
6.
3 82
3.
6.
4 85
3.
7 89
3.
7.
1 89

3.
7.
2 89
3.
7.
3 89
3.
7.
4 91

3.
7.
5 91
3.
7.
6 97
3.
7.
7 105

3.
8 106
3.
9 APB DMA 110
3.
10 117

3.
10.
1 118
3.
10.
2 * _Pr
og.
l
d 118
3.
10.
3 * _s
t
a
r
t
up.
s 119

3.
10.
4 120

4 SPCE3200 122

/O 122
4.
1 I
4.
1.
1 122
4.
1.
2 125

4.
1.
3 125
4.
1.
4 126
4.
1.
5 129

4.
2 129
4.
2.
1 129

4.
2.
2 130
4.
2.
3 130
4.
2.
4 130

4.
2.
5 131
4.
2.
6 136
4.
2.
7 146

4.
3 146
4.
3.
1 146
4.
3.
2 146
4.
3.
3 147
4.
3.
4 150
4.
3.
5 151

4.
4

152
4.
4.
1 152
4.
4.
2 152

4.
4.
3 152
4.
4.
4 155
4.
4.
5 155

4.
5 156

4.
5.
1
4.
5.
2

156
156

4.
5.
3 156
4.
5.
4 157
4.
5.
5 159

4.
5.
6 160
4.
6 160
4.
6.
1 160
4.
6.
2 160
4.
6.
3 161
4.
6.
4 164
4.
6.
5 165

4.
7 / 166
4.
7.
1 166
4.
7.
2 167

4.
7.
3 167
4.
7.
4 168
4.
7.
5 168

4.
7.
6 177
4.
7.
7 181
4.
8 181
4.
8.
1 181

4.
8.
2 181
4.
8.
3 182
4.
8.
4 182

4.
8.
5 183
4.
8.
6 190
4.
8.
7 195

4.
9 195
4.
9.
1 195
4.
9.
2 195

4.
9.
3 196
4.
9.
4 196
4.
9.
5 SPI 196

4.
9.
6 199
4.
9.
7 203
4.
9.
8 206

4.
10 207
4.
10.
1 207

4.
10.
2 207
4.
10.
3 207
4.
10.
4 207

4.
10.
5 I2C 208
4.
10.
6 213
4.
10.
7 218

4.
10.
8 222
4.
11 S
IO 222
4.
11.
1 222
4.
11.
2 223
4.
11.
3 223
4.
11.
4 224
4.
11.
5 224

4.
11.
6 230
4.
11.
7 234
4.
12 NOR Fl
a
sh 235
4.
12.
1 235

4.
12.
2 242
4.
12.
3 242
4.
12.
4 244

4.
12.
5 246
4.
13 TFTLCD 251
4.
13.
1 251
4.
13.
2 253

4.
13.
3 253
4.
13.
4 254
4.
13.
5 267

5 SPCE3200 269
5.
1 SPCE3200 269
5.
1.
1 269
5.
1.
2 270

5.
2 S+co
r
eIDE 272
5.
2.
1 272
5.
2.
2 288

5.
3 299

6 SPCE3200 306
6.
1 306

6.
2 306
6.
3 307
6.
4 308

6.
4.
1 308
6.
4.
2 FIFO 308
6.
4.
3 UART 309

6.
4.
4 RTC 309
6.
4.
5 NOR F
l
a
sh 311
6.
4.
6 311
6.
4.
7 313

316

7.
1 316
7.
1.
1 316
7.
1.
2 318

7.
1.
3 319
7.
2 CPU 320
7.
3 321
7.
4 329

7.
5 333

1 S+c
o
r
e7
, 8/16 MCU
, ARMMIPS

CPU 32 , MCU S+c


o
r
e7
32 , 32 ,

S+c
o
r
e7 32 ,
SPCE3200
32 , S+c
o
r
e7
, SPCE3200 S+c
o
r
e7

1.
1 S+c
o
r
e7

S+c
o
r
e7 , 32
(
RI
SC Reduc
edI
ns
t
ruc
t
i
onSe
tCompu
t
i
ng,)
CPU

S+c
o
r
e7 7 32 RI
SC ,
Sunp
l
usI
SA(
I
ns
t
ruc
t
i
onSe
tAr
ch
i
t
e
c
t
u
r
e,) 32/16
, S+c
o
r
e7 AMBA(
Ad
-

vanc
ed Mi
c
r
oc
ou
t
r
o
l
l
e
rBusAr
ch
i
t
e
c
t
u
r
e,), SoC(
Sys
t
emon
,
)

aCh
i
S+c
o
r
e7
SJTAG
p

S+c
o
r
e7 32 ,

S+c
o
r
e7
PDA
GPSMP3
MP4
PMP ,
,

1.
2 S+c
o
r
e7
S+c
o
r
e7 Sunp
l
usI
SA(
I
ns
t
ruc
t
i
onSe
tAr
ch
i
t
e
c
t
u
r
e)
(
Ha
r
va
r
d)
7 , 162 MHz,
CPU 63
,
S+c
o
r
e7 :
32 16 ;
;

;
(Ha
r
va
rd),I Ca
che(
4KB) D Ca
che(
4KB);

F
i
xed MMU();
(
AMBA), SoC ;
63 2 ,;
SJTAG(
Sunp
l
usJTAG)

1.
3

S+c
o
r
e7 ARM ,(
8 )(
16 )
(
32 )
3 , , 4 (
0), 2 ( 0)

S+c
o
r
e7 32 16 ,
32 ,;
16 ,
, ADD Load/S
t
o
r
e

; ,

S+c
o
r
e7 , 1.
1

0~ (+281)

-215~ (+ 2151)

0~ (+2161)

-231~ (+ 2311)

(Wo
r
d)

(Ha
l
fwo
r
d)

-27~ (+271)

(
By
t
e)

1.
1

1.
4

, 32

S+c
o
r
e7 :(
Us
e
rMode)(
Ke
rne
lMode)
(
Debug Mode)
(
1)
, ,

,,

(
2)
,

(
RTE,
r
e
t
u
rnf
r
omexc
ep
t
i
on)
(
3)

1.
5
1.
5.
1

S+c
o
r
e7 32 (
r
0~r
31)(
GPR)
2 (
Cus
t
om
)

Eng
i
ne
CEH CEL 3
Sr
0~Sr
3
CNT
LCR SCR
19 (
CR18~CR0) 3
CR31~CR29, DSAVE
DEPC
DREG)

32 (
GPR)
2 3

;, ,

19 ; ,

, 3

1.
1

1 1 S+c
o
r
e7

1.
5.
2
S+c
o
r
e7 32 32 (
r
0~r
31) 32 ,
, 16 , r
0~r
15

, 1.
2 ,
r
3 /

,,

1.
5.
3
CEH CEL

,/
, CEH ,

CEL ,
CEH , CEL

MFCEHMFCELMFCEHLMTCEH
MTCEL MTCEHL ,

1.
5.
4

S+c
o
r
e7 3 :
CNT(
Sr
0) LCR(
Sr
1)

SCR(
Sr
2)

CNT 32 ,
,,

bcnz, CNT ,
CNT 1,;

1 2

S
t
o
r
e

CNT , bcnz nop


,
CNT LCR SCR Load

1.
5.
5

S+c
o
r
e7 19 3
, 19

; , 3 (
DSAVE
DEPC
DREG),
1.
2

: 1.
2 ,
1 2

PSR

CR0

ECR

CR2

Cond
i
t
i
on

CR1

1 2

EXCPVe
c

CR3

EPC

CR5

CCR

Ca
che

CR4

EMA

LIM

CR15

Pr
ev

CR18

DEPC

CR30

LDM

LDMPFN

Debug

DREG

Debug

DSAVE

Pr
ev

CR6

LIMPFN

Debug

CR16
CR29
CR31

1.
(
PSR),

, 1.
3

b17~b16

b15

CU[
2:
0]

CRA

R/W

R/W

b5
0

UMb

R/W

b23~b18

b4
0

b27~b24

R/W

b28

R/W

b31~b29

1.
3 (
PSR)

IEb

R/W

R/W

IM_H[
5:
0]

IM_S[
1:
0]

End
i
an

R/W

R/W

R/W

R/W

UMc

IEc

b3
0

UMs

b2
0

IEs

b1
0

b0
0

IM[
7:
2] 6 , 0,
1,,
63(
261)0
n(
1~63) n n IM[
1:
0],
IM[
1]IM[
0]= 1 1 0
UMb
IEb
UMs
IEs
UMcIEc ,
(
UM)(
IE)UMc IEc UM IE ;
UMs IEs

UMcIEc;
UMb IEb UMs IEb , ,

UMcIEc UMs IEs , UMc IEc;

RTE ,
UMsIEs UMcIEc
:

CU[
2:
0]

b31~b29

CU[
n]= 1: n+1 ,
;

CU[
n]= 0: n+1 ,

CRA

b28=0: ,
;

b28

b28=1: ,

IM_H[
5:
0]
IM_S[
1:
0]
End
i
an

b27~b24

, 0;, 0

b17~b16

(), 2

(), 63

b23~b18
b15

b15=0: (
L
i
t
t
l
eEnd
i
an);
b15=1:
(
B
i
i
an)
gEnd
, 0;, 0

b14~b6
b5

IEs

b2

UMc

b1

IEc

b0

b3

UMs

b4=0:
63 2 ;
b4=1:
63 2

b4

b5=0:;
b5=1:
:

b3=0:;
b3=1:
:

b2=0:
63 2 ;
:
b2=1 63 2

IEb

UMb

b1=0:;
b1=1:
:

b0=0:
63 2 ;
b0=1:
63 2

2.
(
Cond
i
t
i
on)()

(
T) ,
1.
4
1.
4

b31~b15

b14

b13

b12

b11

b10

R/W

R/W

R/W

R/W

Tb

Nb

Zb

Cb

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Zs

Cs

Vs

Tc

Nc

Zc

Cc

Vc

b7
0

b6
0

b5
0

b4
0

b3
0

Vb

b2
0

R/W

b8

R/W
0

R/W

b9
0

Ts

b1
0

R/W
0

Ns

b0
0

b31~b15

, 0;, 0

Nb

b13

N
Z

Tb
Zb

b14

b12

Cb

b11

// C

Ts

b9

Vb

Ns

Zs

b10

b8

b7

Cs

b6

// C

Tc

b4

Zc

Cc

b3

Nc

b5

b2

// C

b1

Vs

Vc
b0
Tb
Nb
Zb
Cb
Vb
T
s
Ns
Zs
Cs
Vs
T
c
Nc
Zc
Cc Vc,

T
N
Z
C
V T
c
Nc
Zc
Cc
Vc;
T
s
Ns
Zs
Cs
Vs
;
Tb
Nb
Zb
Cb
Vb

R/W
0

b23~b18

b31~b24

1.
5

3.
(
ECRExc
ep
t
i
onCaus
eReg
i
s
t
e
r),

IP_H[
5:
0]

1.
5
b17~b16
R/W
0

b15~b8
R/W

IP_S[
1:
0]

b7~b6

b5

R/W

CE[
1:
0]

b4~b0
R

Exc_c
ode

IP_H[
5:
0]
IP_S[
1:
0]

CE[
1:
0]

b31~b24

b23~b18

b17~b16
b15~b8
b7~b6

, 0;, 0

63
2

, 0;, 0

,
: 7B6=00:;
7B6=01: 1 ;

7B6=10: 2 ;

7B6=11: 3

, 0;, 0

b5

Exc_c
ode

,
Exc_c
ode

b4~b0

4.
(
EXCPVe
c - Exc
ep
t
i
on Ve
c
t
o
rReg
i
s
t
e
r)

1.
6
1.
6.
4

1.
6

b31~b16

b15~b1

0x9F00

R/W

R/W

VO

EXCPVe
c_Ba
s
e

b0

R/W

( 31 16 )

b0

, 0;, 0

b15~b1

VO

b31~b16

EXCPVe
c_Ba
s
e

1.
9
:

IP_H[
5:
2] 6 ,0 ,
(
)
n 1~63 n IP_S[
1:
0] ,

b0=0: 0x04;
b0=1: 0x10

5.Ca
che
Ca
che(
CCR-Ca
cheCon
t
r
o
lReg
i
s
t
e
r) Ca
che

1.
7

b16

b9

b8

b7

R/W

R/W
0

IPFB

W-Ba
ck

RbBpDi
s

R/W

R/W

R/W

R/W

NOP

BTEN

LDM

LIM

b4
0

DPFB

b5

b6

LDMLP

1.
7 Ca
ch
e

b31~b17

b3
0

b2
0

, 0;, 0

b0
0

WB

LDM (
LDM Low powe
r);
b16=0:();
b16=1:

LDMLP b16

, 0;, 0

b15~b10

DPFB

b9

IPFB

b9=0:;
b9=1:
:

b8

b8=0:;
b8=1:
Ca
che(Wr
i
t
e-Ba
ck):

W-Ba
ck b7

b7=0:;
b7=1:
:

RbBpDi
s b6

LDM

b3

LIM

b2

AMBA (
bu
r
s
te
a
r
l
e
rmi
na
t
e)
yt
:

b4=0:;
b4=1:
LDM :

b4

BTEN

b5=0:
NOP();
b5=1:
NOP (
P
i
i
ne)
peL

b3=0: Lo
c
a
l(
LDM,
Lo
c
a
lDa
t
aMemo
r
y);
b3=1: Lo
c
a
l(
LDM,
Lo
c
a
lDa
t
aMemo
r
y)

b5

LIM :
b2=0: Lo
c
a
l(
Lo
c
a
lI
ns
t
ruc
t
i
on Memo
r
y);

NOP

b6=0:;
b6=1:
NOP :

b2=1: Lo
c
a
l(
Lo
c
a
lI
ns
t
ruc
t
i
on Memo
r
y)
, 0;, 0

b0

b1

WB

b0=0:();
b0=1:

6.
(
EPC - Exc
ep
t
i
onPr
og
r
am Coun
t
e
r) PC

1.
8
1.
8

b31~b1

b0

R/W

EPC

:
EPC

b31~b1

,(
PC) 31

b0

D (
DS
t
age)

RTE , PC

(
32 16 ):
b0=0:
32 ;
b0=1:
PCE 16

D (
DS
t
age),

EPC ,
B
i
t
0(M)
: 1 PCE 16 ; 0 32 B
i
t
1(
EPC

[
1]): 1 16 ; 0 16
32 RTE ,
EPC[
31:
1] PC ,
B
i
t
0
, s
c
o
r
e

1.
6

,,
,, ,

1.
6.
1

S+c
o
r
e7 80 , 63
, S+c
o
r
e7 ,
, 1.
9

Re
s
e
t

AdEL-I
ns
t
r
uc
t
i
on

BusEL-I
ns
t
r
uc
t
i
on

NMI

P-EL

CCU

Tr
ap

AdES

1.
9

SYSCALL

RI

AdEL-Da
t
a

16

CeE

Cus
t
om Eng
i
ne( 0 )

18

BusEL-Da
t
a

I
n
t
e
r
r
up
t

10

11

12
17

19
20

CpE

SWI

1.
6.
2
,

S+c
o
r
e7,

(
(
(
PSR)
Cond
i
t
i
o
n)
EXCPv
e
c)
CCR PC
;
,
;
,

;
,

, M (Memo
r
t
age)
yS
, RTE RTE ,
PC

EPC , PSR (),

CPU EPC 1.
3

1.
3

1.
6.
3
,, ,
CPU ,
S+c
o
r
e7 1.
10
1.
10

Re
s
e
t

(
DebugS
i
ng
l
eS
t
ep)

DSS

DINT

DDBLV

NMI

Debug JTAG

Load ()

I
n
t
e
r
r
up
t[
63]

68

I
n
t
e
r
r
up
t[
1]

69

(
Non-ma
skab
l
eI
n
t
e
r
r
up
t)
63

DIB

71

BusEL-I
ns
t
r
uc
t
i
on

72

P-EL

73

SYSCALL

CCU
RI

73

Tr
ap

73

73

(
SDBBP)

DBP

73

AdEL-I
ns
t
r
uc
t
i
on

70

74

DDBLA

Load

75

DDBS

S
t
o
r
e

76

AdEL-Da
t
a

77

AdES

78

CeE

78

CpE

Cus
t
om Eng
i
ne( 0 )

79

80
80

BusEL-da
t
a

SWI[
1]

SWI[
2]

1
2

Debug ,
Debug 1.
11 De
-

bug Debug (
DExcCode)

1.
11 De
bug

(
DSS)

Debug (
DINT)

Load (
DDBLV),

(
NMI)

(
I
n
t
e
r
r
up
t)

(
DIB)

Debug

Debug

Debug

(
SDBBP)

Load (
DDBLA),

Debug
Debug

()

Debug

()

Debug

Debug

Debug

Debug

Debug

(
DDBS)

Debug

S
t
o
r
e

Cus
t
om Eng
i
ne

1.
6.
4
CPU S+c
o
r
e7 ,

(
EXCPVe
c),
,
S+c
o
r
e7 1.
12
1.
12

Debug

VO = 0

0x9F00_0000

EXCPVe
c_Ba
s
e + 0x1FC

VO = 1

0x9F00_0000

EXCPVe
c_Ba
s
e + 0x1FC

Debug

1.
12

VO = 0

VO = 1

(
NMI)

(
AdEL-I
ns
t
r
uc
t
i
on)

(
BusEL-I
ns
t
r
uc
t
i
on)

P-EL)
P (

(
SYSCALL)

(
CCU)

EXCPVe
c_Ba
s
e + 0x200

(
RI)

EXCPVe
c_Ba
s
e + 0x200

(
Tr
ap)

(
AdEL-Da
t
a)
(
AdES)

CeE)
Cus
t
om Eng
i
ne(

EXCPVe
c_Ba
s
e + 0x2FC

EXCPVe
c_Ba
s
e + 0x210

EXCPVe
c_Ba
s
e + 0x204

EXCPVe
c_Ba
s
e + 0x5F0

(
CpE)

(
BusEL-Da
t
a)
(
SWI[1])
(
SWI[2])
[
1]

[
63]

1.
6.
5

1.
,

CPU (
0x
9F00_0000), Ca
c
h
e
,
CPU (
F
i
x
e
d Ma
i
ng),(
PSR) IEc
pp

UMc 0,
CCR WB 0,
ECR Ex
c_c
od
e 0,
EXCPVe
c
EXCPVe
c_Ba
s
e 0x
9F00_0000,
2.NMI
NMI, NMI(
Non-Ma
skab
l
eI
n
t
e
r
rup
t),

PSR IEc 1NMI


NMI,PSR IEc UMc IEs Ums
; Tc
Cc Vc Ts
Ns
Zs
Cs Vs;
ECR
Nc
Zc
Exc_c
ode 1;
EPC NMI,

3.
, ; ,

;( +1);

; Debug ,

,PSR IEc UMcIEs Ums;


Tc
Nc
Zc
Cc Vc Ts
Ns
Zs
Cs Vs ;
ECR Exc_c
ode
(

(
(
;
2 AdEL-I
ns
t
ruc
t
i
on )11 AdEL-Da
t
a) 12 AdES-da
t
a)EPC
;(
EMA)

;
EMA PEVN ,

4.
(
ba
ckp
l
anebus)
P

,
PSR IEc UMc IEs UMs ;
Tc
Nc
Zc
Cc Vc Ts
Ns
Zs
Cs Vs;
ECR

Exc_c
ode 5() 18();
EPC

:(Wr
i
t
e-Bu
f
f
e
r),,

5.
Tr
ap ,

,
EPC ,,

,
PSR IEc UMc IEs UMs ;
Tc
Nc
Zc
Cc Vc Ts
Ns
Zs
Cs Vs;
ECR Exc

_c
ode 10;
EPC Tr
ap ,
6.(
SYSCALL)
SYSCALL ,

,PSR IEc UMc IEs UMs ;


Tc
Nc
Zc
Cc Vc Ts
Ns
Zs
Cs Vs;
ECR

Exc_c
ode 7;
EPC SYSCALL ,
7.P-EL

P , P-EL ()

32 , 32 ,(
B
i
t
1 = 1)
P-EL ,
PSR IEc UMc IEs UMs ;
Tc
Nc
Zc
Cc Vc TsNs
Zs
Cs Vs ;
ECR
_
;

;
Excc
ode
6 EMA
P-EL
EPC

P-EL,
8.(
RI)

(
Opc
ode), RI
RI,PSR IEc UMcIEs UMs;

Tc
Nc
Zc
Cc Vc Ts
Ns
Zs
Cs Vs ;
ECR Exc_

code 9;
EPC ,

9.(
CCU)
, CCU ,

, (
PSR CRA 0);
,(
PSR CU 0), CCU

CCU ,PSR IEc UMcIEs UMs;


Tc
Nc
Zc
Cc Vc Ts
Ns
Zs
Cs Vs;
ECR Exc

_c
ode 8;
ECR CE ;
EPC
CCU ,
10.Cu
s
t
om Eng
i
ne(
CeE)( 0 )

Cus
t
om Eng
i
ne, CeE : 0
, 0 CeE

CeE ,
PSR IEc UMc IEs UMs ;

Tc Nc Zc Cc Vc Ts
Ns
Zs
Cs Vs;
ECR Exc

_c
ode 16;
EPC CeE ,
11. z(
CpE)

z , CpE ,

CpE ,
PSR IEc UMc IEs UMs ;
Tc
Nc
Zc
Cc Vc Ts
Ns
Zs
Cs Vs;
ECR Exc

_code 17;
ECR CE ;
EPC
CeE ,

12.
65 ,

,
PSR IEc UMc IEs UMs ;
Tc
Nc
Zc
Cc Vc Ts
Ns
Zs
Cs Vs;
ECR Exc

_code 19() 20();


EPC
, EPC
,

:(
63 ) ,

,
13.De
bug
Debug ,
Debug

Debug ,
DREG (
CR29) DINT DM ;
DEPC
(
CR30) DRTE ,
,

14.
Debug , Debug SSEn ,

,
DREG (
CR29) DSS DM ;
DEPC
(
CR30) DRTE ,
,
15.
SDBBP(
So
f
twa
r
eDebugBr
e
akpo
i
n
t),

, Debug ,
DREG (
CR29)

DBP ; Debug ,DSSDBPDDBLDDBSDIBDDB


DINT , CR29 DexcCode SDBBP;
DREG (
CR29)

DM ;
DEPC (
CR30) DRTE
,,
16.
Debug ,,,

,
DREG (
CR29) DDBLA
DDBLV DDBS
;
DREG (
CR29) DM , DEPC

(
CR30) DRTE ,

17.

Debug , ,

,
DREG (
CR29) DIB DM ;
DEPC (
CR30)

DRTE , ,

1.
7

S+c
o
r
e7 162 MHz, (
DRAM)

100~200ns, ,

(
Ca
che) (Wr
i
t
ebu
f
f
e
r
s)
CPU ,Ca
che

, Ca
che ,
Ca
chel
i
ne Ca
che

CPU , c
a
chel
i
ne ,
Ca
che

l
i
ne c
a
chel
i
ne,
CPU ,
Ca
che

S+c
o
r
e7 2 Ca
che, Ca
che(
I-Ca
che) Ca
che(
D13 Ca
cheI-Ca
che
Ca
che),1.
D-Ca
che (
v
i
r
t
ua
li
ndexed), (
i
c
a
l
l
phys
y

t
agged)

1.
13 S+c
o
r
e7 Ca
ch
e

4KB

Ca
chel
i
ne

Ca
che-l
i
ne

(Wr
i
t
eThr
ough)(Wr
i
t
eBa
ck)

(
Re
adAl
l
o
c
a
t
e)

(
Re
adAl
l
o
c
a
t
e)

NA

(
LRU)

Ca
che

4 Wo
r
ds

NA

Ca
che-l
i
ne

4 Wo
r
ds

Ca
che-l
i
ne

4KB

D-Ca
che

NA

(
LRU)

4 Wo
r
ds

Ca
che

I-Ca
che

S+c
o
r
e7 ,
Tag Ca
chel
i
ne; Wo
r
d
I-Ca
che D-Ca
che 2 , 4 KBS+c
o
r
e7

c
a
che 1.
4

1.
4 S+c
o
r
e7Ca
ch
e

1.
7.
1 Ca
che
I-Ca
che I-Ca
che
:I-Bus, I-Ca
cheI-Ca
che

,
I-Ca
che
(
i
l
i
ne)
p
pe
I-Ca
che:
2 Ca
che;

Ca
che 4KB;
Ca
che-l
i
ne 4 Wo
r
ds;

;
Ca
che-l
i
ne();
Ca
che();
Ca
che-l
i
ne();

Ca
che-l
i
ne();
I-Ca
cheI-Ca
che;

(
r
e
c
i
s
ebuse
r
r
o
rexc
ep
t
i
on);
p
I-Ca
che

1.
7.
2 Ca
che

D-Ca
che D-Ca
che
)
:
(
Reque
s
tBus Load S
t
o
r
e D-Bus ,

D-Ca
cheD-Ca
che D-Ca
che

D-Ca
che:
2 Ca
che;

,(
i
l
i
ne)
p
pe

4KB Ca
che;
4 Wo
rds Ca
chel
i
ne;

;
Ca
chel
i
ne;

Ca
chel
i
ne;
Ca
chel
i
ne;

Load ,
S
t
o
r
e
;
,
S
t
o
r
e

1.
7.
3

Ca
che ,

Ca
che,, Ca
che

4
:

(
1)
,,

I-Ca
cheS+c
o
r
e7 ,
D-Ca
cheI-Ca
che

(
2) Ca
che
DMA ,

D-Ca
che,,,
D-Ca
che,,, DMA
, D-Ca
che

(
3) DMA
DMA , Ca
che Ca
chel
i
ne

, DMA , Ca
che
, DMA , Ca
chel
i
ne

(
4)
, IO

, Ca
che

1.
8
1.
8.
1

(
LIMLo
c
a
lI
ns
t
ruc
t
i
on Memo
r
che
y) I-Ca

SRAM(
Synchr
onousRAM),
SRAM CCR
B
i
t
2 LIM

:
LIM ,S+c
o
r
e7
SRAM SRAM Ca
che

1.
8.
2

(
LDMLo
c
a
lDa
t
a Memo
r
Synchr
onous RAM )
y) SRAM (
SRAM CCR B
i
t
3 LDM
,
LDM , S+c
o
r
e7

SRAM SRAM Ca
che
LDM Ca
che( LDM) , LDM ,
D-Ca
che LDM

1.
9
S+c
o
r
e7 Debug :
1. De
bug Memo
r
y

SJTAG Debug
JTAG Debug Ho
s
tPC DebugPr
obe ,
DebugPr
obe

Pr
obe Memo
r
y ,

JTAG
, DebugROM ,
Debug Ho
s
tPC

2.

, Debug :
(
Br
e
akpo
i
n
t);
(Wa
t
chpo
i
n
t)

3.
: (
SDBBPSo
f
twa
r
eDebugBr
e
akpo
i
n
t) Debug

(
DRET,
DebugExc
ep
t
i
onRe
t
u
rn)
4.

, ,

5.De
bug
Debug Debug

6.DMA
SJTAG DMA BIU

2 S+c
o
r
e7
CPU (MPU) (MCU)

, CPU

,,
S+co
r
e7

2.
1

S+c
o
r
e7 32 16
32 ,, 32

3 , 16 ,
32 32 32
, 16
,

16 32 ,(
c
omp
i
l
e
r)
;, 16

, 16 ,

;,, 32 16 (
r
0~r
15)

16 , 16 32 ,

16 nop! ,

32
;
;;
Ca
che ;

16

2.
2
S+c
o
r
e7 (
RI
SC) ,
S+co
r
e7 32 , 32
S+c
o
r
e7 32 16 32

, 32 16 , 32
b
i
t
31 b
i
t
15
P- , ,
32
30 , 16 15 , 2.
1

2.
1 S+c
o
r
e7

P- , 2.
1
2.
1 P-

P1

32

32BF
16BF

16 +16
(
PCE-Pa
r
a
l
l
e
lCond
i
t
i
onExe
cu
t
e)

T 1 16 1

PCEF

UDEF

T 0 16 2

P0

P- , ,
32

25~29 ,
16 12~14

2.
2

2.
2 S+c
o
r
e7

S+c
o
r
e7 OP ,
32 11 ,:
J/mf
f
o
rm
BC-f
o
rm
Spe
c
i
a
l-f
o
rm
I-f
o
rm
RI-f
o
rm
RIX-f
o
rm
CENew
CR-f
o
rm
mt
c
c

/s

l
dc
t
c cop ;
16 5 , :
B<c
ond>x
J-f
o
rm
Rf
o
rm
I-f
o
rm-1
I-f
o
rm-2 2.
2
2.
2

J-f
o
rm

BC-f
o
rm

(
32 )

I-f
o
rm

(
32 )

Spe
c
i
a
l-f
o
rm
RI-f
o
rm

CENew

B<c
ond>x

(
16 )

c
op

RIX-f
o
rm

CR-f
o
rm

(
16 )

R-f
o
rm

,, 2.
3

S+co
r
e7 ,,

32 :

<opc
ode> {.
c}{
ope
r
and1},{
ope
r
and2}
,< > ,{}

,<opc
ode> ,;{.
c},
(,);
ope
r
and1 ,

;
ope
r
and2 ,
,,,

:
and.
cr
4,r
2,r
1
,
,
;.
a
nd
c,

,
op
e
r
a
nd
1 r
4,;
op
e
r
a
nd
2 r
2 r
1,r
2 r
1
2.
3

OP

f
unc

CU

0 :

1 :,

LK

0 :(
r
3)

BN

(
1 :(
r
3),
r
3)

2.
3

BC

Br
anchCond
i
t
i
on,

TC

Exe
cu
t
eCond
i
t
i
on,

EC

SA

rD

(
GPR)

g0

GPR0~GPR15

rA,
rB
g1

Di
sp

Imm

(
GPR)

GPR16~GPR31

CR

CrA

USD

(
cus
t
om)

Sub-OP

CrD

Exp

Spa
r(
Imm)

Sr
n

COP-c
ode

CP#

2.
3 32

32
;
;; Ca
che

2.
3.
1
S+c
o
r
e7 / RI
SC ,
S+c
o
r
e7 / /

;
S+c
o
r
e7 /:,
2.
4 S+c
o
r
e7 /

2.
4 S+c
o
r
e7 /

l
brD,[
rA,S
Imm15]

l
b

l
brD,[
rA]+ ,S
Imm12

()

l
brD,[
rA,S
Imm12]+

()

l
burD,[
rA,S
Imm15]

l
bu

l
burD,[
rA]+ ,S
Imm12

()

l
burD,[
rA,S
Imm12]+

()

l
hrD,[
rA,S
Imm15]

l
h

l
hrD,[
rA]+ ,S
Imm12

()

l
hrD,[
rA,S
Imm12]+

()

l
hurD,[
rA,S
Imm15]

l
hurD,[
rA]+ ,S
Imm12

()

l
hurD,[
rA,S
Imm12]+

l
hu

()

lwrD,[
rA,S
Imm15]

lwrD,[
rA]+ ,S
Imm12

()

lw

()

()

()

()

sh

()

()

sw

()
l
d
i

l
d
i
s
l
cb

l
cw
l
c
e

s
cb

s
cw
s
c
e

sb

lwrD,[
rA,S
Imm12]+
sbrD,[
rA,S
Imm15]

sbrD,[
rA]+ ,S
Imm12

sbrD,[
rA,S
Imm12]+
shrD,[
rA,S
Imm15]

shrD,[
rA]+ ,S
Imm12
shrD,[
rA,S
Imm12]+
swrD,[
rA,S
Imm15]

swrD,[
rA]+ ,S
Imm12

swrD,[
rA,S
Imm12]+

l
d
irD,S
Imm16

Imm16
l
d
i
srD,S

l
cb [
rA]+

l
cwrD,[
rA]+
l
c
erD,[
rA]+

s
cbrD,[
rA]+

s
cwrD,[
rA]+
s
c
e[
rA]+

/ :

(
1)

<opc
ode> <rD> ,<S
Imm>

(
2)
<opc
ode> <rD> ,< [
rA,S
Imm15]>

rA

(
3)
<opc
ode> <rD> ,< [
rA,S
Imm12]+>

rA

, rA
(
4)
<opc
ode> <rD> ,< [
rA]+ ,S
Imm12>

rA ,,
rA

1.l
b/
s
b/
l
b ,
sb

l
b sb

(
1)l
brD,[
rA,S
Imm15]
[
rA+S
Imm15] ,

rD :
l
br
4,[
r
2,0x1234]
(
2)l
brD,[
rA]+ ,S
Imm12

[
rA] , rD

rA S
Imm12 :
l
br
4,[
r
2]+ ,0x4

(
3)l
brD,[
rA,S
Imm12]+
[
rA+S
Imm12] ,

rD rA :
l
br
4,[
r
2,

0x0123]+
(
4)sbrD,[
rA,S
Imm15]

rD 8 [
rA+S
Imm15]:

sbr
4,[
r
2,0x123]
(
5)sbrD,[
rA]+ ,S
Imm12

rD 8 [
rA] rA

S
Imm12 :
sbr
4,[
r
2]+ ,0x4
(
6)sbrD,[
rA,S
Imm12]+

rD 8 [
rA+S
Imm12]

rA :
sbr
4,[
r
2,0x0123]+

2.l
bu
l
bu :

(
1)l
burD,[
rA,S
Imm15]
[
rA+S
Imm15] ,

rD :
l
bur
4,[
r
2,0x1234]
(
2)l
burD,[
rA]+ ,S
Imm12

[
rA] , rD
rA S
Imm12 :
l
bur
4,[
r
2]+ ,0x4

(
3)l
burD,[
rA,S
Imm12]+
[
rA+S
Imm12] ,

rD rA :
l
bur
4,[
r
2,

0x0123]+
3.l
h/
s
h/

l
h ,
sh

,,

l
h sh

(
1)l
hrD,[
rA,S
Imm15]
[
rA+S
Imm15] ,

rD :
l
hr
4,[
r
2,0x1234]
(
2)l
hrD,[
rA]+ ,S
Imm12

[
rA] , rD

rA S
Imm12 :
l
hr
4,[
r
2]+ ,0x4
(
3)l
hrD,[
rA,S
Imm12]+

[
rA+S
Imm12] ,
rD rA :
l
hr
4,[
r
2,

0x0124]+
(
4)shrD,[
rA,S
Imm15]

rD 16 [
rA+S
Imm15]

:
shr
4,[
r
2,0x124]
(
5)shrD,[
rA]+ ,S
Imm12

rD 16 [
rA] rA

S
Imm12 :
shr
4,[
r
2]+ ,0x4
(
6)shrD,[
rA,S
Imm12]+

rD 16 [
rA+S
Imm12]

rA :
shr
4,[
r
2,0x0124]+
4.l
hu

l
hu

(
1)l
hurD,[
rA,S
Imm15]
[
rA+S
Imm15] ,

rD :
l
hur
4,[
r
2,0x1234]

(
2)l
hurD,[
rA]+ ,S
Imm12
[
rA] , rD

rA S
Imm12 :
l
hur
4,[
r
2]+ ,0x4
(
3)l
hurD,[
rA,S
Imm12]+

[
rA+S
Imm12] ,
rD rA :
l
hur
4,[
r
2,

0x0123]+
5.lw/
sw/

lw ,
sw

, ,

lw sw

:
lwr
4,[
r
2,0x1234]
(
2)lwrD,[
rA]+ ,S
Imm12

(
1)lwrD,[
rA,S
Imm15]
[
rA+S
Imm15] , rD

[
rA] , rD
rA S
Imm12 :
lwr
4,[
r
2]+ ,0x4

(
3)lwrD,[
rA,S
Imm12]+
[
rA+S
Imm12] , rD

rA :
lwr
4,[
r
2,0x0124]+

(
4)swrD,[
rA,S
Imm15]
rD [
swr
4,
rA+S
Imm15] :

[
r
2,0x124]
(
5)swrD,[
rA]+ ,S
Imm12

rD [
rA] rA

S
Imm12 :
swr
4,[
r
2]+ ,0x4

(
6)swrD,[
rA,S
Imm12]+
rD [
rA+S
Imm12]

rA :
swr
4,[
r
2,0x0124]+
6.l
d
i 16

:
l
b
irD,S
Imm16
l

d
i
16 rDl
d
i

,l
d
i

.
data

sum:.
word0x
0

//

.
text
...

lar
4,sum
ldir
2,0x
1234

// sum
// r
2

ldir
3,0x
5678

// r
3

addr
1,r
2,r
3
,[
,
swr
1 r
4 0]

//

// sum

...

7.l
d
i
s
:
l
d
i
srD,Imm16

l
ds
i 16 16 rDl
d
i
s

:
l
d
ir
4,0xABCD

8.l
c
b
:
l
cb [
rA]+

l
cb LCR(
LoadComb
i
neReg
i
s
t
e
r)
,rA&0xFFFFFFFC ,rA 4
rA ,

l
cw
l
c
e

9.l
cw
:
l
cwrD,[
rA]+

2.
3 LCR ,

l
cw LCR(
LoadComb
i
neReg
i
s
t
e
r)

, rA&0xFFFFFFFC , rA 4 ,
, End
i
an rA 2 LCR
,
rA ,l
cb
l
c
e

10.l
c
e
:
l
c
erD,[
rA]+

l
c
e LCR(
LoadComb
i
neReg
i
s
t
e
r)
, rA&0xFFFFFFFC , rA 4 ,
, End
i
an rA 2 LCR
, rA 2 0,
LCR l
c
e rA

, l
cb
l
cw

2.
3

11.s
c
b
:
s
cbrD,[
rA]+

s
cb rD SCR(
S
t
o
r
e
Comb
i
neReg
i
s
t
e
r),, rA&0xFFFFFFFC
, rA 4 End
i
an

rA 2 rA ,
s
cw
s
c
e
2.
4 SCR rD

: 2.
3 .
24 SPCE3200 S+c
o
r
e

12.s
cw
:
s
cwrD,[
rA]+

s
cw SCR ,
rA&0xFFFFFFFC , rA 4 , rD
SCR End
i
an rA 2 ,
rA ,

2.
4

s
cb
s
c
e

13.s
c
e
:
s
c
e[
rA]+

s
c
e SCR ,rA&0xFFFFFFFC
, rA 4 End
i
an

rA 2 rA ,
s
cb
s
cw

2.
3.
2

S+c
o
r
e7 :
.
c ,

2.
5 S+c
o
r
e7
2.
5 S+c
o
r
e7

add{.
c}

addc{.
c}

add{.
c}rD,rA,rB

addc{.
c}rD,rA,rB

2.
5

TCS}.
c
cmp{
cmp
i.
c

cmp
z{
TCS}.
c
mu
l

mu
l
u

d
i
v

d
i
vu

and{.
c}

and
i{.
c}

and
i
s{.
c}
and
r
i{.
c}
o
r{.
c}

o
r
i{.
c}

o
r
i
s{.
c}
o
r
r
i{.
c}
xo
r{.
c}
no
t{.
c}

t{
c
ond}
b
i
t
t
s
t.
c

b
i
t
s
e
t.
c
b
i
t
c
l
r.
c

b
i
t
t
l.
c
g

mv{
c
ond}
mt
c
r
mf
c
r

r
o
l{.
c}
r
o
l
c.
c

sub
i
s{.
c}rD,S
Imm16

Imm14
subr
i{.
c}rD,rA,S

neg{.
c}rD,rB

TCS}.
crA,rB
cmp{

cmp
i.
crA,S
Imm16

cmp
z{
TCS}.
crA

neg{.
c}

sub
i{.
c}rD,S
Imm16

mu
lrA,rB

subr
i{.
c}

subc{.
c}rD,rA,rB

mu
l
urA,rB

sub
i
s{.
c}

sub{.
c}rD,rA,rB

d
i
vrA,rB

sub
i{.
c}

add
r
i{.
c}rD,rA,S
Imm14

d
i
vurA,rB

subc{.
c}

add
i
s{.
c}rD,S
Imm16

sub{.
c}

Imm16
add
i{.
c}rD,S

add
r
i{.
c}

add
i
s{.
c}

add
i{.
c}

()

and{.
c}rD,rA,rB

and
i{.
c}rD,Imm16

and
i
s{.
c}rD,Imm16

and
r
i{.
c}rD,rA,Imm14
o
r{.
c}rD,rA,rB

o
r
i{.
c}rD,Imm16

o
r
i
s{.
c}rD,Imm16

o
r
r
i{.
c}rD,rA,Imm14
xo
r{.
c}rD,rA,rB
no
t{.
c}rD,rA

t{
c
ond}

b
i
t
t
s
t.
crD,BN

b
i
t
s
e
t.
crD,rA,BN

b
i
t
c
l
r.
crD,rA,BN

b
i
t
t
l.
crD,rA,BN
g
mv{
c
ond}rD,rA
mt
c
rrD,CRn
mf
c
rrD,CRn

r
o
l{.
c}rD,rA,rB
r
o
l
c.
crD,rA,rB

2.
5

r
o
r
i
c.
c

s
l
l{.
c}

s
l
l
i{.
c}

s
r
a{.
c}

s
r
a
i{.
c}

s
r
l{.
c}

s
r
l
i{.
c}

ex
t
sb{.
c}

ex
t
zb{.
c}

ex
t
sh{.
c}
ex
t
zh{.
c}

r
o
l
i
c.
crD,rA,Imm5

r
o
r{.
c}rD,rA,rB

r
o
r
c.
crD,rA,rB

r
o
r
i{.
c}rD,rA,Imm5

r
o
r
i
c.
crD,rA,Imm5

s
l
l{.
c}rD,rA,rB

s
l
l
i{.
c}rD,rA,Imm5

s
r
a{.
c}rD,rA,rB

s
r
a
i{.
c}rD,rA,Imm5

s
r
l{.
c}rD,rA,rB

s
r
l
i{.
c}rD,rA,Imm5

r
o
r
i{.
c}

r
o
l
i{.
c}rD,rA,Imm5

ex
t
sb{.
c}rD,rA

r
o
r
c.
c

ex
t
zb{.
c}rD,rA

r
o
r{.
c}

ex
t
sh{.
c}rD,rA

r
o
l
i
c.
c

ex
t
zh{.
c}rD,rA

r
o
l
i{.
c}

1.add
:
add{
ex
t
end}{.
c}rD,ope
r
and2

add ,{.
c},

.
c,; op
-

e
r
and2 ;
ex
t
end , 5
,
ope
r
and2 :
add{.
c}rD,rA,

rB, rD=rA+rB

c ,
ope
r
and2 :
addc{.
c}rD,rA,
rB, rD=rA+rB+c

i ,
ope
r
and2 , :
add
i{.
c}
rD,S
Imm16, rD=rD+S
Imm16

i
s ,
ope
r
and2 , :
add
i
s
{.
c}rD,S
Imm16, rD=rD+ (
S
Imm16<<16)

r
i ,
ope
r
and2 ,
:
add
r
i{.
c}rD,rA,S
Imm14, rD=rA+S
Imm14
:
addr
4,r
2,r
1

add.
cr
4,r
2,r
1

//r
4=r
2+r
1,
//r
4=r
2+r
1,

addcr
4,r
2,r
1
addisr
4,0x
1234

//r
4=r
2+r
1+c,

//r
4=r
4+0x
12340000,
//r
4=r
2+0x
123,

addrir
4,r
2,0x
123

2.s
ub
:
sub{
ex
t
end}{.
c}rD,ope
r
and2

sub ,
ex
t
end
, 5

,
ope
r
and2 , :
sub{.
c}rD,rA,

rB, rD=rA-rB

c ,
ope
r
and2 , :
subc{.
c}rD,rA,
rB, rD=rA-rB-c

i ,
ope
r
and2 , :
sub
i{.
c}

Imm16, rD=rD-S
Imm16
rD,S

i
s ,
ope
r
and2 , :
sub
i
s

{.
c}rD,S
Imm16, rD=rD- (
S
Imm16<<16)

r
i ,
ope
r
and2 ,

:
sub
r
i{.
c}rD,rA,S
Imm14, rD=rA-S
Imm14
:
subr
4,r
2,r
1
sub.
cr
4,r
2,r
1

//r
4=r
2-r
1,

//r
4=r
2-r
1,
//r
4=r
2-r
1-c,

subcr
4,r
2,r
1
,
subisr
4 0x
1234

//r
4=r
4-0x
12340000,

//r
4=r
2-0x
123,

subirr
4,r
2,0x
123

3.ne
g
:
neg{.
c}rD,rB

neg 0-rB , rD ,()


:
negr
4,r
2

//r
4=0-r
2

4.cmp
:
cmp{
TCS}.
crA,rB

cmp rA-rB ,,
add ,
cmp .
c , ;

{
TCS} T , ,
TCS 2
2.
6
2.
6 TCS

CMPTEQ.
c

TCS

, Z=1 T, T

2.
6

1

CMPTMI.
c

CMP.
c

TCS

, N=1 T, T

( CMP.
c)

:
cmp.
cr
4,r
2

//r
4r
2,

/mu
5.mu
l
l
u
:
mu
lrA,rB

mu
l rA rB rA
, rB , Cus
t
om Eng
i
ne CEL ,
CEH

mu
l
u , CEL CEH
:

mulr
4,r
2
mulur
4,r
2

/d
6.d
i
v
i
vu
:
d
i
vrA,rB

d
i
v rA rB rA ,
rB , Cus
t
om Eng
i
ne CEL ,

CEH 0, Cus
t
om Eng
i
ne ,

d
i
vu , CEL CEH
:
divr
4,r
2
divur
4,r
2

1.and
:
and{
ex
t
end}{.
c}rD,ope
r
and2

and ,
ex
t
end ,
ex
t
end 4
,
ope
r
and2 , :
and{.
c}rD,

rA,rB, rD=rA&rB

i ,
ope
r
and2 , :
and
i{.
c}rD,

Imm16, rD=rD&Imm16

i
s ,
ope
r
and2 , :
and
i
s{.

c}rD,Imm16, rD=rD&(
Imm16<<16)

r
i ,
ope
r
and2 ,
:
and
r
i{.
c}rD,rA,Imm14, rD=rA&Imm14
:
andr
4,r
2,r
1
and.
cr
4,r
2,r
1

//r
4=r
2&r
1,

//r
4=r
2&r
1,
//r
4=r
4&
0x
12340000,

andisr
4,0x
1234
,
andrir
4 r
2,0x
123

//r
4=r
2&
0x
123,

2.o
r
:
o
r{
ex
t
end}{.
c}rD,ope
r
and2

o
r ,
ex
t
end , 4
,
ope
r
and2 , :
o
r{.
c}rD,

rA,rB, rD=rA|rB

i ,
ope
r
and2 , :
o
r
i{.
c}rD,

Imm16, rD=rD|
Imm16

ope
r
and2 ,:
o
r
i
s{.
c}
i
s ,

rD,Imm16, rD=rD|(
Imm16<<16)

r
i ,
ope
r
and2 ,

:
o
r
r
i{.
c}rD,rA,Imm14, rD=rA|
Imm14
:

orisr
4,0x
1234
orrir
4,r
2,0x
123

orr
4,r
2,r
1
or.
cr
4,r
2,r
1

//r
4=r
2|r
1,
//r
4=r
2|r
1,

//r
4=r
4|0x
12340000,
//r
4=r
2|0x
123,

3.xo
r
:
xo
r{.
c}rD,rA,rB

xo
r rA rB rD

:
xorr
4,r
2,r
3

//r
4=r
2xorr
3,

4.no
t
:
no
t{.
c}rD,rA

no
t rA rD
:
notr
4,r
2

//r
4= (
r
2 ),

5.t T
:
t{
cond}

t T T (
PCE) T
PCE ,
c
ond EC(
EXECUTE CONDI
-

TION)( 2.
7),, T ,,
T
2.
7 EC c
ond

C 1

C 1 Z 0

C & ~Z

Z 1

t
g

Z 0 N V

(
Z=0)&(
N=V)

ge

N V

c
s

c
c

t
u
g

l
eu

ne

eq

l
e

l
t

~C

C 0 Z 1

~C|Z

Z 0

~Z

(
Z=1)&(
N! =V)

Z 1 N V
N V

N=V

V! =V

N 1

12

v
s

V 1

14

l
p

13

v
c

15

a
l

tge

V 0

~N

~V

N 0

11

mi

10

C 0

c
ond

// N 0 T

1.b
i
t
t
s
t.
c
:
b
i
t
t
s
t.
crA,BN

Z ,
b
i
t
t
s
trA BN ,
N
:
bittstr
4,10

// r
4 bit
10

2.b
i
t
s
e
t.
c 1
:
b
i
t
s
e
t.
crD,rA,BN

b
i
t
s
e
t rA BN 1, Z ,
N

:
bitset.
cr
4,r
5,10

// r
5 bit
10 1, r
4

3.b
i
t
c
l
r.
c 0
:
b
i
t
c
l
r.
crD,rA,BN

b
i
t
c
l
r rA BN 0, Z ,
N

:
bitclr.
cr
4,r
5,10

// r
5 bit
10 0, r
4

4.b
i
t
t
l.
c
g
:
b
i
t
t
l.
crD,rA,BN
g

b
i
t
t
l rA BN , Z ,
N
g

:
bittgl.
cr
4,r
5,10

// r
5 bit
10 , r
4

1.mv{
c
ond}
:
mv{
c
ond}rD,rA

mv rA rD
,
c
ond EC(
Excu
t
eCond
i
t
i
on, ) (

2.
7),,, rD

:
ldir
4,0x
100
,
cmpr
2 r
4

// r
2>=0x
100, r
2 r
4

mvger
4,r
2

// r
2 0x
100

2.mt
c
r
:
mt
c
rrD,CRn

mt
c
r rD CRn,
n
, PSR c
r
a 1,

:
mtcrr
4,CR
16

// r
4 LDM CR
16

3.mf
c
r
:
mf
c
rrD,CRn

mf
c
r CRn rD,
n
mt
c
r,, PSR c
r
a 1,

:
mfcrr
4,CR
16

// LDM CR
16 r
4


1.r
o
l
:
r
o
l{
i}{
c}{.
c}rD,rA,ope
r
and2

r
o
lrA ope
r
and2 ,rD
,
i ope
r
and2 5 ,

5 ;
c,, 2.
5
, 2.
6

, .
c, C

2.
6

2.
5

// , r
3
// , r
,

rolr
4,r
2,r
3
,
rolc.
cr
4 r
2,r
3

rolir
4,r
2,0x
0A
rolic.
cr
4,r
2,0x
03

// , 0x
0A

// , 0x
03

2.r
o
r
:
r
o
r{
i}{
c}{.
c}rD,rA,ope
r
and2

r
o
r rA ope
r
and2 , rD
,
i ope
r
and2 5 ,

5 ;
c,, 2.
7
, 2.
8

, .
c, C

2.
7

2.
8

:
rorr
4,r
2,r
3
,
rorc.
cr
4 r
2,r
3

rorir
4,r
2,0x
0A
roric.
cr
4,r
2,0x
03

// , r
3

// , r
3

// , 0x
0A
// , 0x
03

3.s
l
l
:
s
l
l{
i}{.
c}rD,rA,ope
r
and2

s
l
l rA ope
r
and2 , rD
,
i ope
r
and2 5 ,

:
sllr
4,r
2,r
3
sllir
4,r
2,0x
0A

// , r
3

// , 0x
0A

4.s
r
l
:
s
r
l{
i}{.
c}rD,rA,ope
r
and2

s
r
l rA ope
r
and2 , rD
,
i ope
r
and2 5 ,

// , r
3

srlr
4,r
2,r
3
,
,
srlir
4 r
2 0x
0A

5.s
r
a
:
s
r
a{
i}{.
c}rD,rA,ope
r
and2

// , 0x
0A

s
r
arA ope
r
and2 ,
, rD ,
i ope
r
and2 5

, 5

srar
4,r
2,r
3
srair
4,r
2,0x
0A

// , r
3

// , 0x
0A

1.e
x
t
s
b
:
ex
t
sb{.
c}rD,rA

ex
t
sb rA , rD
,
rD rA (
b
i
t
7 ),

2.
9

2.
9

:
ldir
2,0x
80
extsbr
4,r
2

// r
4 0xFFFFFF
80

ldir
2,0x
70
extsb.
cr
4,r
2

// r
4 0x
00000070,

2.e
x
t
z
b
:
ex
t
zb{.
c}rD,rA

ex
t
zb rA , rD
,
rD 0, 2.
10

2.
10

ldir
2,0x
80
,
extzbr
4 r
2

// r
4 0x
00000080

ldir
2,0x
70
extzb.
cr
4,r
2

3.e
x
t
s
h
:
ex
t
sh{.
c}rD,rA

// r
4 0x
00000070,

e
x
t
s
h rA ,rD
,
rD rA (
b
i
t
15 ), 2.
11

2.
11

:
ldir
2,0x
8000
extshr
4,r
2

ldir
2,0x
7000
extsh.
cr
4,r
2

// r
4 0xFFFF
8000
// r
4 0x
00007000,

4.e
x
t
zh
:
ex
t
zh{.
c}rD,rA

ex
t
zh rA , rD

,
rD 0, 2.
12

2.
12

:
ldir
2,0x
8000
extzhr
4,r
2

// r
4 0x
00008000

ldir
2,0x
7000
extzh.
cr
4,r
2

// r
4 0x
00007000,

2.
3.
3

2.
8 S+c
o
r
e7 ,
l

r
3

,
2.
8 S+c
o
r
e7

br

abe
l
b{
c
ond}{
l}l

br{
c
ond}{
l}rA

:
l}l
abe
l
j{

l}l
abe
l
j{

1.j

j , 16 MB
l
abe
l 24 : 24
, 7 ,
:
jlabel
jllabel

// label

// label ,

2.b
:
b{
c
ond}{
l}l
abe
l

b cond BC(
Br
anchCond
i
t
i
on,)
l
abe
l 19
PC
BC cond 2.
9

2.
9 BC c
ond

c
ond
c
s{
l}

C 1

t
u{
l}
g

C 1 Z 0

C & ~Z

l}
eq{

Z 1

t{
l}
g

Z 0 N V

(
Z=0)&(
N = V)

l}
ge{

N V

N=V

mi{
l}

N 1

12

v
s{
l}

V 1

14

cnz{
l}

l
eu{
l}

ne{
l}

4
6

l
e{
l}

l
t{
l}

10
11
13
15

l{
l}
p

v
c{
l}
a
l{
l}

~C|Z

Z 0

~Z

(
Z=1)&(
N ! = V)

Z 1 N V

V! =V

N V

N 0
V 0

CNT>0

~N

~V

CNT>0
-

C 0 Z 1

~C

C 0

c
c{
l}

//Z=0 label
//N V label

beqlabel
bgellabel

//

3.b
r
:
br{
cond}{
l}rA

b
r rA
cond 2.
9
:

//Z=0 r
3

breqr
3

//N V r
3

brgelr
3

2.
3.
4
S+c
o
r
e7 :
Cus
t
om Eng
i
ne
Ca
che 2.
10 S+c
o
r
e7
2.
10 S+c
o
r
e7

c
e
i
ns
t


Cus
t
om Eng
i
ne


c
e
i
ns
tf
unc
5,rA,rB,USD1,USD2

2.
10


mt
c
e
lrD

mt
c
ex

Cus
t
om Eng
i
ne

mf
c
ex

Cus
t
om Eng
i
ne

mt
s
r

c
ond}So
f
twa
r
e_Pa
r
ame
t
e
r(
Imm5)
t
r
ap{

s
c
a
l
lSo
f
twa
r
e_Pa
r
ame
t
e
r(
Imm15)
ys

s
l
e
ep

f
l
ush
p
d
r
t
e

c
a
chec
a
che_op,[
rA,S
Imm15]

c
a
che

r
t
e

n
mf
s
rrD,Sr

s
l
e
ep

s
dbbp

mt
s
rrA,Sr
n

s
dbbpc
ode(
Imm5)

Debug

s
c
a
l
l
ys

mf
c
ehrD

mf
c
eh
lrD,rA

f
l
ush
p

t
r
ap

mf
c
e
lrD

c
a
che

mt
c
eh
lrD,rA

debug

Cus
t
om Eng
i
ne

r
t
e

d
r
t
e

mf
s
r

mt
c
ehrD

Cus
t
om Eng
i
ne Cus
t
om Eng
i
ne Cus
t
om Eng
i
ne
CEH CEL
1.c
e
i
n
s
tCu
s
t
om Eng
i
ne

:
c
e
i
ns
tf
unc
5,rA,rB,USD1,USD2
c
e
i
ns
t cus
t
omeng
i
ne f
unc
5

Cus
t
om Eng
i
ne,
rA rB , ,

USD1 USD2 ,
,, Cus
t
om Eng
i
ne

,
:
ceinst0x
00,r
2,r
4,0x
01,0x
02

2.mt
c
e
x Cu
s
t
om Eng
i
ne
:mt
c
e
lrD
mt
c
ehrD

mt
c
eh
lrD,rA
mt
c
ex Cus
t
om Eng
i
ne CEL CEH mt
c
e
l rD CEL;
mt
c
eh rD CEH;mt
c
eh
l

rD CEH, rA CEL
:
// r
4 CEL

mtcelr
4

3.mf
c
e
x Cu
s
t
om Eng
i
ne
:mf
c
e
lrD
mf
c
ehrD

mf
c
eh
lrD,rA
mf
c
ex Cus
t
om Eng
i
ne CEL CEH mf
c
e
l CEL rD ;
mf
c
eh CEH rD ;
mf
c
eh
l

CEH
rD
CEL
rA
:

// CEL r
4

mfcelr
4

1.mt
s
r
:
mt
s
rrA,Srn

mt
s
r rA Srn(
n )
:

mtsrr
4,Sr
1

2.mf
s
r
:
mf
s
rrD,Srn

mfsrr
4,Sr
1

mf
s
r Srn(
n ) rD
:

Ca
che

c
a
cheCa
che
:
c
a
chec
a
che_op,[
rA,S
Imm15]

c
a
che c
a
che_op Ca
cherA 15
S
Imm15 , MMU

c
a
che_op 2.
11

2.
11 Ca
ch
eOP

c
a
che_op[
4:
0]

0x00

0x01
0x02

/D-Ca
I-Ca
che
che

I-Ca
che

I-Ca
che
I-Ca
che

Ca
che

rA + S
Imm15

Ca
che

rA + S
Imm15

Ca
che

rA + S
Imm15

2.
11
c
a
che_op[
4:
0]

/D-Ca
I-Ca
che
che

0x03

I-Ca
che

PFN S
i
z
e LIM

0x04

I-Ca
che

PFN S
i
z
e LIM

0x08
0x09

0x0A

PFN rA

S
i
z
e S
Imm15

D-Ca
che

Ca
che

rA + S
Imm15

D-Ca
che

Ca
che

rA + S
Imm15

Ca
che

D-Ca
che

rA + S
Imm15
PFN rA

0x0B

D-Ca
che

PFN S
i
z
e LDM

0x0C

D-Ca
che

0x0D

D-Ca
che

0x0E

D-Ca
che

0x10

I-Ca
che

Ca
che

S
i
z
e S
Imm15

LDM PFN S
i
z
e

rA + S
Imm15

Ca
che

PFN rA

S
i
z
e S
Imm15

rA + S
Imm15

Ca
che

Ca
che

D-Ca
che

D-Ca
che(/)

0x1E

D-Ca
che

0x1F

D-Ca
che

0x11

I-Ca
che

0x1B

0x1D

D-Ca
che

0x1A

D-Ca
che

0x18

D-Ca
che

D-Ca
che

D-Ca
che

:
cache0x
00,[
r
2,0x
0123]

1.t
r
ap
:
t
r
ap{
cond}So
f
twa
r
e_Pa
r
ame
t
e
r(
Imm5)

t
r
ap ,, PSR c
r
a1

t
r
ap cond EC ( 2.
7)
,,
:

(
PSR)IEc UMcIEs UMs;
(
CR1) Tc
Nc
Zc
Cc Vc Ts
Ns
Zs
Cs Vs;

(
ECR) Exc_c
ode 10;
EPC t
r
ap{
c
ond}
:
trapeq0x
008E

2.s
s
c
a
l
l
y
:
sys
c
a
l
lSo
f
twa
r
e_Pa
r
ame
t
e
r(
Imm15)

s
c
a
l
l , ,
ys
:

(
ECR) Exc_c
ode 7;
EPC s
c
a
l
l
ys

(
PSR)IEc UMcIEs UMs;
(
CR1) Tc
Nc
Zc
Cc Vc Ts
Ns
Zs
Cs Vs;

syscall0x
008E

3.s
l
e
e
p
:
s
l
e
ep

s
l
e
ep , ( SPCE3200 40
) Debug , PSR

IE ECR IM

, PSR c
r
a 1
4.s
dbbp De
bug
:
sdbbpc
ode(
Imm5)

,
sdbbp Debug ,
(
ICE)(
Pr
obe) ,
Debug

(
DREG), (
DEPC) sdppb
,
c
ode 5
,

:
sdbbp0x
0E

5.p
f
l
u
s
h
:
f
l
ush
p

, bubb
l
e( nop ),

, LCR mf
s
r,

3 nop ,, p
f
l
ush , nop ,

f
l
ush ,
p
,(
f
l
ush+4),
p
6.r
t
e
:
r
t
e

r
t
e,(
b
r)
r
t
e,(
PC) EPC ,,

(
PSR) UMcIEc UMsIEs; Tc
Nc
Zc
Cc
Vc Ts
Ns
Zs
Cs Vs, PSR
c
r
a 1

7.d
r
t
e De
bug
:
r
t
e

r
t
e Debug r
t
e , (
PC)
DEPC , PSR c
r
a

2.
3.
5

CPU ,,
S+c
o
r
e7

,,
,

chu 2.
12 S+c
o
r
e7

2.
12 S+c
o
r
e7

COPn

(
n )

MTCn

MTCCn
MFCn

MFCCn
LDCn

STCn


COPnc
op_c
ode
20

COPnCrD,CrA,CrB,c
op_c
ode
5
MTCnrD,CrA

MTCCnrD,CrA
MFCnrD,CrA

MFCCnrD,CrA

LDCnCrA,[
rD,S
Imm12]

STCnCrA,[
rD,S
Imm12]

1.COPn
:
COPnc
op_c
ode
20 COPnCrD,CrA,CrB,c
op_c
ode
5

,
n 1~3, ;
c
op_c
ode
20 20 ;
CrD,
CrA,
CrB ;
c
op_c
ode
5 5

, 20 5

,(
PSR) CU ,

,,
2.MTCn
:
MTCnrD,CrA

,
n 1~3, rD
CrA, (
PSR) cu ,

:
mtc
3r
14,CR
15

3.MTCCn
:
MTCCnrD,CrA

,
n 1~3, rD
CrA, (
PSR) cu ,

mtcc
3r
14,CR
15

4.MFCn
:
MFCnrD,CrA

,
n 1~3, CrA
rD,(
PSR) cu ,

mfc
2r
4,CR
8

5.MFCCn
:
MFCCnrD,CrA

,
n 1~3, CrA
rD,(
PSR) cu ,

:
mfcc
3r
4,CR
8

6.LDCn
:
LDCnCrA,[
rD,S
Imm12]

,
n 1~3,
CrA , rD 2 10

Imm10 ,,,

(
PSR) cu ,

:
ldc
3CR
8,[
r
4,0x
0012]

7.STCn
: STCnCrA,[
rD,S
Imm12]

,
n 1~3, CrA
rD 2 10
Imm10 , ,
,(
PSR) cu ,

stc
3CR
8,[
r
4,0x
0012]

2.
4 16

S+c
o
r
e7 16 32 ,
(
c
omp
i
l
e
r),,

16 , 16

,;, , 32
16 (
r
0~r
15) 16 , 16

32 , 16 nop! ,

S+c
o
r
e7 16 /32 ,
S+c
o
r
e7 16 !, 32
32 ! 16

2.
4.
1

16 / :
, : , push! pop!

, 2.
13 S+c
o
r
e7 16
2.
13 S+c
o
r
e7 16 /

l
bu{
p}!

l
h{
p}!


l
bu! rDg0,[
rAg0]

l
h! rDg0,[
rAg0]

l
bup! rDgo,Imm5
l
hp! rDg0,Imm6

2.
13


lw! rDg0,[
rAg0]

sb! rDg0,[
rAg0]

sh! rDg0,[
rAg0]

lw{
p}!

lwp! rDg0,Imm7

sb{
p}!

sbp! rDg0,Imm5

sh{
p}!

shp! rDg0,Imm6

sw{
p}!

swp! rDg0,Imm7

push!
pop!

l
d
i
u! rDg0,Imm8

()
()

rAg0]
push! rDg0,[
rAg0]
pop! rDg0,[

l
d
i
u!

sw! rDg0,[
rAg0]

1.l
d
i
u!
l
d
i
u! rDg0 ,Imm8

, 8 Imm8

rDg0
:

// 0x
80 r
3

2.
<opc
ode> ! rDg0 ,[
rAg0]

ldiu! r
3,0x
80

lh! r
3,[
r
2]
!
,[
sw r
3 r
2]

/
// r
2 r
3
// r
3 r
2

3.
<opc
ode>p! rDg0 ,Imm

r
2

/ p ,
/,
:
lhp! r
3,0x
04
swp! r
3,0x
10

// r
2 0x
04
// r

// r
2 0x
10
// r
3

4. pu
s
h!
:

rAg0]
push! rDg0 ,[
rAg0 4 ,,

, rAg0 push! rDg0

,,
:
15,[
r
2]
push! r

//r
2 4, r
15 r
2

5. pop!
:

rAg0]
pop! rDg0 ,[
rAg0 , ,

, rAg0 4pop!
rDg0

,,

// r
2 r
15

15,[
r
2]
pop! r

2.
4.
2

S+c
o
r
e7 16 :
32 ,
16

.
c 2.
14 S+c
o
r
e7 16

addc!

adde
i!
sub!

16

add!

2.
14 S+c
o
r
e7 16

16

16
16

add! rDg0,rAg0

rDg0 = rDg0 + rAg0

adde
i! rDg0,Imm4

rDg0 = rDg0 + 2Imm4

addc! rDg0,rAg0
sub! rDg0,rAg0

rDg0 = rDg0 + rAg0 + C


rDg0 = rDg0 - rAg0

sube
i!

16

sube
i! rDg0,Imm4

cmp!

16

cmp! rDg0,rAg0

o
r!

16

o
r! rDg0,rAg0

rDg0 = rDg0 rAg0

no
t!

16

no
t! rDg0,rAg0

rDg0 = rAg0

neg!

and!
xo
r!

16

16

16

t{
c
ond}! 16 T
b
i
t
t
s
t!

16

neg! rDg0,rAg0

and! rDg0,rAg0
xo
r! rDg0,rAg0

t{
c
ond}!

b
i
t
t
s
t! rDg0,
BN(
Imm5)

rDg0 = rDg0 2Imm4


rDg0 = -rAg0

rDg0 - rAg0

rDg0 = rDg0 rAg0

rDg0 = rDg0 rAg0


32 t

rDg0 BN N Z

2.
14

b
i
t
s
e
t! rDg0,BN

mh
f
l!
s
l
l!

s
l
l
i!

s
r
a!
s
r
l!

s
r
l
i!

rDg0 BN 0

b
i
t
t
l! rDg0,BN
g

b
i
t
t
l.
c
g
ml
f
h!

rDg0 BN 1

b
i
t
c
l
r! rDg0,BN

b
i
t
c
l
r.
c
mv!

rDg0 BN

mv! rDg0,rAg0

1
6( )

1
6( )

ml
f
h! rDg0,rAg1

16

s
l
l! rDg0,rAg0

rDg0 = rAg0
rDg0 = rAg1

mh
f
l! rDg1,rAg0

1
6( )

rDg1 = rAg0

rDg0 rAg0 rDg0

s
l
l
i! rDg0,Imm5

16

16

rDg0 Imm5 rDg0

s
r
a! rDg0,rAg0

rDg0 rAg0 rDg0

s
r
l
i! rDg0,Imm5

rDg0 Imm5 rDg0

s
r
l! rDg0,rAg0

16
16

rDg0 rAg0 rDg0

b
i
t
s
e
t!

2.
4.
3

1.j{
l}!
:
l}! l
abe
l
j{

S+c
o
r
e7 j{
l}!
b{
c
ond}! b
r{
c
ond}!
:

j! label
jl! label

GPRr3
:

l
abe
l 11 1 , 20
,, l ,

// label , 2KB
// l
a
b
e
l,

2.b{
c
ond}!
:
b{
c
ond}! l
abe
l
cond 2.
7l
abe
l 8 (
7

1 ),
:
beq! label

//Z=0 label

3.b
r{
c
ond}!
:
br{
cond}! rAg0

b
r rA
c
ond 2.
9
:

breq! r
3

//Z=0 r
3

2.
4.
4
S+c
o
r
e7 16 :
sdbbp!, Debug

:
sdbbp! c
ode(
Imm5)
32 sdbbp
:
sdbbp! 0x
00

2.
4.
5
S+c
o
r
e7 (
PCE) 16
|| ,

ADD! r
2,r
7||SUB! r
2,r
7

T T=t
rue ,

, ADD! r
2,r
7; T=f
a
l
s
e,, SUB! r
2,r
7

T T T

2.
5

S+co
r
e7 32 ,,

1.l
i
:
l
irD,Imm32

32 rD

(
1)Imm32>-32768 Imm32<32767 ,l
d
irD,S
Imm16,l
ir
3,
0x1234;
(
2)Imm32 ,l
d
i
srD,S
Imm16,l
ir
3,0x12340000;
(
3) , :
l
d
i
srD,Hi
16(
Imm32);
o
r
irD,Lo16
(
Imm32):
l
ir
3,0x12345678
2.l
a
:

l
arD,l
abe
l
l
arD,va
l
ue

32 rD ,

l
abe
l,
va
l
ue 32
(
1)l
arD,l
abe
l:

l
d
i
srD,Hi
16(
l
abe
l);
o
r
irD,Lo16(
l
abe
l):
l
ar
3,l
abe
l
(
2)l
arD,va
l
ue:

l
d
i
srD,Hi
16(
va
l
ue);
o
r
irD,Lo16(
va
l
ue):
l
ar
3,0x1234
3.l
b
: l
brD,[
rA]
l
brD,l
abe
l
l
brD,va
l
ue

rD ,
l
abe
l

,
va
l
ue 32 ,()
(
1)l
brD,[
rA]l
brD,[
rA,0x0000]:
l
br
2,[
r
3]

(
2)l
brD,l
abe
l:
l
ar
1,l
abe
l;
l
brD,[
r
1]:
l
br
6,l
abe
l
l
abe
lsbs
ssda
t
a,l
brD,
l
abe
ll
brD,[
f
f
s
e
t],
o
f
f
s
e
t
gp,o

l
ar
1,va
l
ue;
l
brD,[
r
1]

l
abe
l r
28
(
3)l
brD,va
l
ue:

4.l
bu
: l
burD,[
rA]

l
burD,l
abe
l
l
burD,va
l
ue

va
l
ue:
l
br
2,0

lbur
2,[
r
3]
lbur
6,label

l
b

rD ,

// lbur
2,[
r
3,0]

// lar
1,label lbur
6,[
r
1]

lbur
2,0

// , lar
1,0 lbur
2,[
r
1]

5.l
h
: l
hrD,[
rA]
l
hrD,l
abe
l
,
l
hrD va
l
ue

rD ,

l
b
:
lhr
2,[
r
3]
lhr
6,label
lhr
2,0

// lhr
2,[
r
3,0]

// lar
1,label lhr
6,[
r
1]

// , lar
1,0 lhr
2,[
r
1]

6.l
hu
:

l
hrD,[
rA]
l
hrD,l
abe
l

l
hrD,va
l
ue

rD ,

l
b
:
lhur
2,[
r
3]
lhur
6,label

// lhur
2,[
r
3,0]
// lar
1,label lhur
6,[
r
1]

lhur
2,0

// , lar
1,0 lhur
2,[
r
1]

7.lw
lw rD,[
rA]
lw rD,l
abe
l

lw rD,va
l
ue

rD ,l
b
lwr
2,[
r
3]
,
lwr
6 label

// lwr
2,[
r
3,0]
// lar
,
1 label lwr
6,[
r
1]

// , lar
1,0 lwr
2,[
r
1]

lwr
2,0

8.s
b

sbrD,[
rA]
sbrD,l
abe
l

sbrD,va
l
ue

rD 8 , l
b

:
sbr
2,[
r
3]

sbr
6,label
sbr
2,0

// sbr
2,[
r
3,0]
// lar
1,label sbr
6,[
r
1]

// , lar
1,0 sbr
2,[
r
1]

9.s
h
:

shrD,[
rA]
shrD,l
abe
l
shrD,va
l
ue

rD 16 ,l
b

:
shr
2,[
r
3]

// shr
2,[
r
3,0]
// lar
1,label shr
6,[
r
1]

shr
6,label
shr
2,0

// , lar
1,0 shr
2,[
r
1]

10.sw
:

sw rD,[
rA]
sw rD,l
abe
l

sw rD,va
l
ue
rD ,l
b
:
swr
2,[
r
3]
swr
6,label

// swr
2,[
r
3,0]

// lar
1,label swr
6,[
r
1]

// , lar
1,0 swr
2,[
r
1]

swr
2,0

mu
lrD,rA,rB
mu
l
urD,rA,rB

/mu
11.mu
l
l
u

rArB , CEL rD :

mulr
4,r
6,r
7
mulur
4,r
6,r
7

/d
12.d
i
v
i
vu

mu
lrA,rB(
mu
l
urA,rB);
mf
c
e
lrD
:

d
i
vrA,rB
d
i
vurA,rB

rArB , CEL rD :
d
i
vrA,rB(
d
i
vu

rA,rB);
mf
c
ehrD
:
divr
4,r
6
divur
4,r
6

13.r
em/r
emu
:

r
emrD,rA,rB
r
emurD,rA,rB

d
i
vrD,rA,rB d
i
vurD,rA,rB

Das könnte Ihnen auch gefallen