Review
Exercise B
Exercise B: Addressing
Exercise B: Addressing
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
Src
Src
Mode
Mode
Program
Program
ACC
ACC
DP
DP
AR1
AR1
AR2
AR2
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
Imm
Imm
: Immediate;
: Immediate;
Reg
Reg
: Register;
: Register;
Dir: Direct;
Dir: Direct;
Idr
Idr
: Indirect
: Indirect
ACC
ACC
DP
DP
XAR1
XAR1
XAR2
XAR2
In the table above, fill in the values for each of the registers for each of the instructions. Three
areas of data memory are displayed at the top of the diagram, showing both their addresses and
contents in hexadecimal. Watch out for surprises along the way. First, you should answer the
addressing mode for the source operand. Then, fill in the change values as the result of the in-
struction operation.
B - 14
C28x - Appendix B - Addressing Modes
Summary of Contents for C28 Series
Page 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Page 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Page 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Page 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Page 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Page 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Page 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Page 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Page 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Page 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...