TMS320C5x DSP STARTER KIT USER'S GUIDE

TMS320C5x DSP STARTER KIT USER'S GUIDE TMS320C5x DSP STARTER KIT USER'S GUIDE

13.07.2015 Views

.lqxx/.qxxDirectives ReferenceSyntax .lqxx value 1 [, ... , value n ].qxx value 1 [, ... , value n ]DescriptionExampleThe .qxx and .lqxx directives generate signed, 2s-complement fractional integersand long integers whose decimal points are displaced xx places from the LSB.Here’s an example of the .qxx directive.00001 –––– 0400 .ds 0x40000002 0400 2000 .Q15 0.2500003 0401 4000 .Q15 0.500004 0402 6000 .Q15 0.7500005 0403 e000 .Q15 –0.25,–0.5,–0.750404 c0000405 a00000006 0406 0000 .LQ24 9,100407 09000408 00000409 0a00>>>>> FINISHED READING ALL FILES>>>>> ASSEMBLY COMPLETE: ERRORS:0 WARNINGS:05-24

Directives Reference.mmregsSyntaxDescription.mmregsThe .mmregs directive defines global symbolic names for the TMS320 registersand places them in the global symbol table. It is equivalent to executinggreg .set 5, imr .set 4, etc. The symbols are local and absolute. Using the.mmregs directive makes it unnecessary to define these symbols. Thesymbols are placed as shown in Table 5–2.Table 5–2. Memory-Mapped RegistersAddressName DEC HEX Description0–3 0–3 ReservedIMR 4 4 Interrupt mask registerGREG 5 5 Global memory allocation registerIFR 6 6 Interrupt flag registerPMST 7 7 Processor mode status registerRPTC 8 8 Repeat counter registerBRCR 9 9 Block repeat counter registerPASR 10 A Block repeat program address start registerPAER 11 B Block repeat program address end registerTREG0 12 C Temporary register used for multiplicandTREG1 13 D Temporary register used for dynamic shift countTREG2 14 E Temporary register used as bit pointer indynamic bit testDBMR 15 F Dynamic bit manipulation registerAR0 16 10 Auxiliary register 0AR1 17 11 Auxiliary register 1AR2 18 12 Auxiliary register 2AR3 19 13 Auxiliary register 3AR4 20 14 Auxiliary register 4AR5 21 15 Auxiliary register 5Assembler Directives5-25

.lqxx/.qxxDirectives ReferenceSyntax .lqxx value 1 [, ... , value n ].qxx value 1 [, ... , value n ]DescriptionExampleThe .qxx and .lqxx directives generate signed, 2s-complement fractional integersand long integers whose decimal points are displaced xx places from the LSB.Here’s an example of the .qxx directive.00001 –––– 0400 .ds 0x40000002 0400 2000 .Q15 0.2500003 0401 4000 .Q15 0.500004 0402 6000 .Q15 0.7500005 0403 e000 .Q15 –0.25,–0.5,–0.750404 c0000405 a00000006 0406 0000 .LQ24 9,100407 09000408 00000409 0a00>>>>> FINISHED READING ALL FILES>>>>> ASSEMBLY COMPLETE: ERRORS:0 WARNINGS:05-24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!