TMS320C5x DSP STARTER KIT USER'S GUIDE
TMS320C5x DSP STARTER KIT USER'S GUIDE TMS320C5x DSP STARTER KIT USER'S GUIDE
Directives That Initialize Memory5.5 Directives That Initialize MemoryEach of these directives, with the exception of the .byte and .string directives,aligns the object to a 16-bit word boundary. The .byte directive places one or more 8-bit values into consecutive wordsof the current section. The .word directive places one or more 16-bit values into consecutivewords in the current section. The .string directive places 8-bit characters from one or more characterstrings into the current section. The .long directive places one or more 32-bit values into consecutive32-bit fields in the current section. The .int directive places one or more 16-bit values into consecutive wordsin the current section. The .qxx directive places one or more 16-bit, signed 2s-complement valuesinto consecutive words in the current section. Note that the decimal pointis displaced xx places from the LSB. The .lqxx directive places one or more 32-bit, signed 2s-complement valuesinto consecutive 32-bit fields in the current section. Note that the decimalpoint is displaced xx places from the LSB. The .float directive calculates 32-bit IEEE floating-point representationsof single precision floating-point value and stores it in two consecutivewords in the current section. The .bfloat directive calculates a 16-bit, signed 2s-complement exponentand a 32-bit, signed 2s-complement mantissa. The .efloat directive calculates a 16-bit, signed 2s-complement exponentand a 16-bit, signed 2s-complement mantissa. The .tfloat directive calculates a 32-bit, signed 2s-complement exponentand a 64-bit, signed 2s-complement mantissa. The .double directive calculates a 64-bit IEEE floating-point representationof a double precision floating-point value and stores it in four consecutivewords in the current section.5-8
Directives That Initialize MemoryFigure 5–1. The .space Directive The .space directive reserves a specified number of bits in the currentsection. The assembler advances the SPC and skips the reserved words.When you use a label with .space, it points to the first word of the reservedblock.Figure 5–1 shows an example of the .space directives. Assume the followingcode has been assembled for this example:.ps 0a00h.word 100h, 200hRES_1: .space 30h ;Reserve 48 bits or 3 words.word 15Res_1 points to the first byte in the space reserved by .space.3 wordsreservedRes_1 = 0a02hAssembler Directives5-9
- Page 7 and 8: If You Need AssistanceIf You Need A
- Page 9 and 10: ContentsContentsPart I: Hands-On In
- Page 11: ContentsPart III: Debugger Descript
- Page 14 and 15: Running Title—Attribute Reference
- Page 16 and 17: Key Features1.1 Key FeaturesThis se
- Page 18 and 19: Memory1.3 MemoryThe ’C5x DSK is o
- Page 20 and 21: MemoryFigure 1-3. DSK to RS-232 Con
- Page 22 and 23: What You’ll Need2.1 What You’ll
- Page 24 and 25: What You’ll NeedDSK module connec
- Page 26 and 27: Step 2: Installing the DSK Software
- Page 28 and 29: Step 4: Modifying the PATH Statemen
- Page 30 and 31: Step 5: Verifying the InstallationI
- Page 32 and 33: Description of the DSK Assembler3.1
- Page 34 and 35: Developing Code for the DSK3.3 Deve
- Page 36 and 37: Getting Started2) Enter the followi
- Page 38 and 39: Getting Started5) Now you are ready
- Page 40 and 41: Creating DSK Assembler Source Files
- Page 42 and 43: Creating DSK Assembler Source Files
- Page 44 and 45: Creating DSK Assembler Source Files
- Page 46 and 47: Symbols4.3 SymbolsSymbols are used
- Page 48 and 49: Assembling Your Program4.5 Assembli
- Page 50 and 51: 4-12
- Page 52 and 53: Using the DSK Assembler Directives5
- Page 54 and 55: Directives That Define Sections5.2
- Page 56 and 57: Directives That Reference Other Fil
- Page 60 and 61: Miscellaneous Directives5.6 Miscell
- Page 62 and 63: .byte/.stringDirectives ReferenceSy
- Page 64 and 65: .copy/.includeDirectives ReferenceL
- Page 66 and 67: .endDirectives ReferenceSyntax.endD
- Page 68 and 69: .float/.bfloat/.double/.efloat/.tfl
- Page 70 and 71: .if/.else/.endifDirectives Referenc
- Page 72 and 73: .liston/.listoffDirectives Referenc
- Page 74 and 75: .lqxx/.qxxDirectives ReferenceSynta
- Page 76 and 77: .mmregsDirectives ReferenceTable 5-
- Page 78 and 79: .setDirectives ReferenceSyntax symb
- Page 80 and 81: .spaceDirectives ReferenceListing f
- Page 82 and 83: .text / .psDirectives ReferenceExam
- Page 84 and 85: 5-34
- Page 86 and 87: Invoking the Debugger6.1 Invoking t
- Page 88 and 89: Invoking the DebuggerSetting the co
- Page 90 and 91: Using Pulldown Menus in the Debugge
- Page 92 and 93: Using Pulldown Menus in the Debugge
- Page 94 and 95: Using Pulldown Menus in the Debugge
- Page 96 and 97: Using Pulldown Menus in the Debugge
- Page 98 and 99: Using Dialog BoxesYou can omit entr
- Page 100 and 101: Using Software Breakpoints6.4 Using
- Page 102 and 103: Quick-Reference Guide6.5 Quick-Refe
- Page 104 and 105: Quick-Reference GuideTable 6-14.Deb
- Page 106 and 107: Circuit Board DimensionsFigure A-1.
Directives That Initialize Memory5.5 Directives That Initialize MemoryEach of these directives, with the exception of the .byte and .string directives,aligns the object to a 16-bit word boundary. The .byte directive places one or more 8-bit values into consecutive wordsof the current section. The .word directive places one or more 16-bit values into consecutivewords in the current section. The .string directive places 8-bit characters from one or more characterstrings into the current section. The .long directive places one or more 32-bit values into consecutive32-bit fields in the current section. The .int directive places one or more 16-bit values into consecutive wordsin the current section. The .qxx directive places one or more 16-bit, signed 2s-complement valuesinto consecutive words in the current section. Note that the decimal pointis displaced xx places from the LSB. The .lqxx directive places one or more 32-bit, signed 2s-complement valuesinto consecutive 32-bit fields in the current section. Note that the decimalpoint is displaced xx places from the LSB. The .float directive calculates 32-bit IEEE floating-point representationsof single precision floating-point value and stores it in two consecutivewords in the current section. The .bfloat directive calculates a 16-bit, signed 2s-complement exponentand a 32-bit, signed 2s-complement mantissa. The .efloat directive calculates a 16-bit, signed 2s-complement exponentand a 16-bit, signed 2s-complement mantissa. The .tfloat directive calculates a 32-bit, signed 2s-complement exponentand a 64-bit, signed 2s-complement mantissa. The .double directive calculates a 64-bit IEEE floating-point representationof a double precision floating-point value and stores it in four consecutivewords in the current section.5-8