Immediate Addressing
Immediate Addressing
Immediate Addressing
Immediate Addressing
–
–
“#”
“#”
Fixed value part of program memory
Fixed value part of program memory
instruction
instruction
Supports short (8
Supports short (8
-
-
bit) and long (16
bit) and long (16
-
-
bit)
bit)
immediate constants
immediate constants
Long immediate can include a shift
Long immediate can include a shift
Used to initialize registers, and operate
Used to initialize registers, and operate
with constants
with constants
OPCODE
OPCODE
8
8
-
-
bit OPERAND
bit OPERAND
one word instruction
one word instruction
OPCODE
OPCODE
16
16
-
-
bit OPERAND
bit OPERAND
two word instruction
two word instruction
Immediate addressing allows the user to specify a constant within an instruction mnemonic. Short
immediate are single word, and execute in a single cycle. Long (16-bit) immediate allow full
sized values, which become two-word instructions - yet execute in a single instruction cycle.
Immediate Addressing
Immediate Addressing
–
–
Example
Example
Long Immediate, 2 Words (AND)
Long Immediate, 2 Words (AND)
loc16
loc16
#16Bit
#16Bit
AND
AND
AND
AND
loc16,#16Bit
loc16,#16Bit
Ax
Ax
#16Bit
#16Bit
loc16
loc16
AND
AND
AND
AND
Ax,loc16,#16Bit
Ax,loc16,#16Bit
ACC
ACC
#16Bit
#16Bit
shift
shift
AND
AND
AND
AND
ACC,#16Bit,<<0
ACC,#16Bit,<<0
-
-
16
16
Short Immediate, 1 Word (ANDB)
Short Immediate, 1 Word (ANDB)
AND
AND
automatically replaced by
automatically replaced by
ANDB
ANDB
if IMM value is 8 bits or less
if IMM value is 8 bits or less
ANDB
ANDB
ANDB
ANDB
Ax,#8Bit
Ax,#8Bit
Ax
Ax
#8Bit
#8Bit
C28x - Appendix B - Addressing Modes
B - 7
Содержание 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 ...