13.07.2015 Views

TMS320C5x DSP STARTER KIT USER'S GUIDE

TMS320C5x DSP STARTER KIT USER'S GUIDE

TMS320C5x DSP STARTER KIT USER'S GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

.byte/.stringDirectives ReferenceSyntax .byte value 1 [, ... , value n ].string string 1 [, ... , string n ]DescriptionThe .byte and .string directives place one or more 8-bit values into consecutivebytes of the current section. A value or a string can be either: An expression that the assembler evaluates and treats as an 8-bit signednumber, or A character string enclosed in double quotes. Each character in a stringrepresents a separate value.The .byte directive places one or more 8-bit values into consecutive words ofthe current section.Unlike the .byte directive, the .string directive places the 8-bit values intomemory in a packed form in the order they are encountered. If a word is notfilled, the remaining bits are filled with zeros.ExampleThis example shows several 8-bit values placed into consecutive bytes inmemory. The label strx has the value a00h, which is the location of the first initializedbyte. The label stry has the value a07h, which is the location of the firstbyte initialized by the .string directive.00001 –––– 0a00 .ps 0a00h00002 0a00 000a strx: .byte 10,–1,2,0Ah,”abc”0a01 00ff0a02 00020a03 000a0a04 00610a05 00620a06 006300003 0a07 0aff stry: .string 10,–1,2,0Ah,”abc”0a08 020a0a09 61620a0a 6300>>>>> FINISHED READING ALL FILES>>>>> ASSEMBLY COMPLETE: ERRORS:0 WARNINGS:0In the above example, abc is converted into three ASCII characters.5-12

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

Saved successfully!

Ooh no, something went wrong!