TMS320C5x DSP STARTER KIT USER'S GUIDE
TMS320C5x DSP STARTER KIT USER'S GUIDE TMS320C5x DSP STARTER KIT USER'S GUIDE
.copy/.includeDirectives ReferenceListing file:00001 –––– 0e00 .ds 0e00h ;filename:source.asm00002 –––– –––– ;filename:source.asm00003 0e00 0010 .space 10h ;filename:source.asm00004 –––– –––– .include ”byte.asm” ;filename:source.asm******************************************** OPENING INCLUDE FILE byte.asm*******************************************00001 –––– –––– ;filename:byte.asm00002 0e01 0061 .byte ”a”,0ah,32 ;filename:byte.asm0e02 000a0e03 002000003 –––– –––– .include ”word.asm” ;filename:byte.asm******************************************** OPENING INCLUDE FILE word.asm*******************************************00001 –––– –––– ;filename:word.asm00002 0e04 abcd .word 0abcdh,56 ;filename:word.asm0e05 003800003 –––– –––– ;filename:word.asm>>>>> FINISHED READING ALL FILES******************************************** CLOSING FILE word.asm*******************************************00004 0e06 000b .byte 11,12,13 ;filename:byte.asm0e07 000c0e08 000d******************************************** CLOSING FILE byte.asm*******************************************00005 –––– –––– ;filename:source.asm00006 0e09 0020 .space 20h ;filename:source.asm>>>>> FINISHED READING ALL FILES>>>>> ASSEMBLY COMPLETE: ERRORS:0 WARNINGS:05-14
Directives Reference.data/.dsSyntax.data.ds [address]DescriptionThe .data and .ds directives tell the assembler to begin assembling source codeinto data memory. The .data and .ds sections are normally used to contain tablesof data or preinitialized variables.address is an optional parameter that specifies a 16-bit address. Normally, thesection program counter is set to 0 the first time the .data or .ds section isassembled; you can use this parameter to assign an initial value to the SPC.Note that the assembler assumes that .text is the default section. Therefore,at the beginning of an assembly, the assembler assembles code into the .textsection unless you specify a section control directive.ExampleThis example shows the assembly of code into the .data and .text sections..ps 0a00h ;set up load and run addresses.entry.include ”VECT.ASM”.ds 0400h.textsetup: mar *,AR0 ;initialize the CPU registerslar AR0,#0lar AR1,#0lar AR2,#0lar AR3,#0val_1:.data.int 0,1,2,3,4,5,6,7 ;init. integer values.textloop: mar *+,AR1mar *+,AR2mar *+,AR3b loop,*+,AR0;continue with some codeval_2:.data.float 0,1,2,3,4,5,6,7 ;init. flt–pt valuesAssembler Directives5-15
- 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 58 and 59: Directives That Initialize Memory5.
- Page 60 and 61: Miscellaneous Directives5.6 Miscell
- Page 62 and 63: .byte/.stringDirectives ReferenceSy
- 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.
- Page 108 and 109: Schematic DiagramP1594837261CONNECT
- Page 110 and 111: Schematic DiagramEODR\OUT-AUXIN-TCL
- Page 112 and 113: GlossaryCWindows that show code, te
.copy/.includeDirectives ReferenceListing file:00001 –––– 0e00 .ds 0e00h ;filename:source.asm00002 –––– –––– ;filename:source.asm00003 0e00 0010 .space 10h ;filename:source.asm00004 –––– –––– .include ”byte.asm” ;filename:source.asm******************************************** OPENING INCLUDE FILE byte.asm*******************************************00001 –––– –––– ;filename:byte.asm00002 0e01 0061 .byte ”a”,0ah,32 ;filename:byte.asm0e02 000a0e03 002000003 –––– –––– .include ”word.asm” ;filename:byte.asm******************************************** OPENING INCLUDE FILE word.asm*******************************************00001 –––– –––– ;filename:word.asm00002 0e04 abcd .word 0abcdh,56 ;filename:word.asm0e05 003800003 –––– –––– ;filename:word.asm>>>>> FINISHED READING ALL FILES******************************************** CLOSING FILE word.asm*******************************************00004 0e06 000b .byte 11,12,13 ;filename:byte.asm0e07 000c0e08 000d******************************************** CLOSING FILE byte.asm*******************************************00005 –––– –––– ;filename:source.asm00006 0e09 0020 .space 20h ;filename:source.asm>>>>> FINISHED READING ALL FILES>>>>> ASSEMBLY COMPLETE: ERRORS:0 WARNINGS:05-14