Register Addressing
Register Addressing
Register Addressing
Register Addressing
Allows for efficient register to register
Allows for efficient register to register
operation
operation
16
16
-
-
bit and 32
bit and 32
-
-
bit Register Address modes
bit Register Address modes
Reduces code overhead, memory
Reduces code overhead, memory
accesses, and memory overhead
accesses, and memory overhead
AR0
AR0
–
–
AR7
AR7
AH
AH
AL
AL
PH
PH
PL
PL
T
T
TL
TL
DP
DP
SP
SP
16
16
-
-
bit Registers
bit Registers
XAR0
XAR0
–
–
XAR7 ACC P XT
XAR7 ACC P XT
32
32
-
-
bit Registers
bit Registers
Register addressing allows the exchange of values between registers, and with certain instructions
can be used in conjunction with other addressing modes, yielding a more efficient instruction set.
Remember that any ‘mem’ field allows the use of a register as the operand, and that no special
character (such as @, *, or #) need be used to specify the register mode.
Register Addressing
Register Addressing
–
–
Example
Example
MOVL loc32,ACC
MOVL loc32,ACC
MOVL @XT,ACC
MOVL @XT,ACC
MOV loc16,Ax,COND
MOV loc16,Ax,COND
MOV @AR1,AL,GT
MOV @AR1,AL,GT
MOV Ax,loc16
MOV Ax,loc16
MOV AH,@AL
MOV AH,@AL
User Guide &
User Guide &
Dis
Dis
-
-
assembler
assembler
use @ for second register
use @ for second register
Format
Instruction
Format
Instruction
B - 6
C28x - Appendix B - Addressing Modes
Содержание 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 ...