Solutions
B - 18
C28x - Appendix B - Addressing Modes
Solutions
Exercise B: Addressing
Exercise B: Addressing
-
-
Solution
Solution
1001B2 0320
1001B2 0320
Given
Given
:
:
DP = 4000
DP = 4000
DP = 4004
DP = 4004
DP = 4006
DP = 4006
Address/Data (hex)
Address/Data (hex)
100030
100030
0025
0025
100100
100100
0105
0105
100180
100180
0100
0100
Fill in the
Fill in the
100031
100031
0120
0120
100101
100101
0060
0060
100181
100181
0030
0030
table below
table below
100032
100032
100102
100102
0020
0020
100182
100182
0040
0040
Imm
Imm
MOVW
MOVW
DP,#4000h
DP,#4000h
MOVL
MOVL
XAR1,#100100h
XAR1,#100100h
MOVL
MOVL
XAR2,#100180h
XAR2,#100180h
MOV
MOV
AL,@31h
AL,@31h
ADD
ADD
AL,*XAR1++
AL,*XAR1++
SUB
SUB
AL,@30h
AL,@30h
ADD
ADD
AL,*XAR1++
AL,*XAR1++
MOVW
MOVW
DP,#4006h
DP,#4006h
ADD
ADD
AL,@1
AL,@1
SUB
SUB
AL,*XAR1
AL,*XAR1
ADD
ADD
AL,*XAR2
AL,*XAR2
SUB
SUB
AL,*+XAR2[1]
AL,*+XAR2[1]
ADD
ADD
AL,#32
AL,#32
SUB
SUB
AL,*+XAR2[2]
AL,*+XAR2[2]
MOV
MOV
@32h,AL
@32h,AL
Src
Src
Mode
Mode
Program
Program
4000
4000
Imm
Imm
100100
100100
Imm
Imm
100180
100180
Dir
Dir
120
120
Idr
Idr
225
225
100101
100101
Dir
Dir
200
200
Idr
Idr
260
260
100102
100102
Imm
Imm
4006
4006
Dir
Dir
290
290
Idr
Idr
270
270
Idr
Idr
370
370
Idr
Idr
340
340
Imm
Imm
360
360
Idr
Idr
320
320
Dir
Dir
100180
100180
100180
100180
ACC
ACC
DP
DP
XAR1
XAR1
XAR2
XAR2
Imm
Imm
: Immediate;
: Immediate;
Reg
Reg
: Register;
: Register;
Dir: Direct;
Dir: Direct;
Idr
Idr
: Indirect
: Indirect
Содержание C28 Series
Страница 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Страница 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Страница 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Страница 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Страница 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Страница 275: ...Appendix eZdsp F2812 eZdsp F2812 Connector Header and Pin Diagram C28x Appendix A eZdsp F2812 A 3 ...
Страница 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Страница 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Страница 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Страница 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Страница 281: ...Appendix JP7 JP8 JP11 JP12 Boot Mode Select JP9 PLL Disable DS1 DS2 LEDs C28x Appendix A eZdsp F2812 A 9 ...
Страница 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...