25.12.2012 Views

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

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.

Assembly Source Files<br />

File Formats<br />

Assembly source files (.asm) are text files containing assembly instructions,<br />

assembler directives, <strong>and</strong> (optionally) preprocessor comm<strong>and</strong>s. For information<br />

on assembly instructions, see the Programming Reference manual<br />

for your processor.<br />

The processor’s instruction set is supplemented with assembly directives.<br />

Preprocessor comm<strong>and</strong>s control macro processing <strong>and</strong> conditional assembly<br />

or compilation.<br />

For information on the assembler <strong>and</strong> preprocessor, see the<br />

<strong>VisualDSP++</strong> <strong>4.5</strong> Assembler <strong>and</strong> Preprocessor <strong>Manual</strong>.<br />

Assembly Initialization Data Files<br />

Assembly initialization data files (.dat) are text files that contain fixed- or<br />

floating-point data. These files provide initialization data for an assembler<br />

.VAR directive or serve in other tool operations.<br />

When a .VAR directive uses a .dat file for data initialization, the assembler<br />

reads the data file <strong>and</strong> initializes the buffer in the output object file (.doj).<br />

Data files have one data value per line <strong>and</strong> may have any number of lines.<br />

The .dat extension is explanatory or mnemonic. A directive to<br />

#include can take any file name <strong>and</strong> extension as an<br />

argument.<br />

Fixed-point values (integers) in data files may be signed, <strong>and</strong> they may be<br />

decimal, hexadecimal, octal, or binary based values. The assembler uses<br />

the prefix conventions listed in Table A-1 to distinguish between numeric<br />

formats.<br />

For all numeric bases, the assembler uses words of different sizes for data<br />

storage. The word size varies by the processor family,<br />

<strong>VisualDSP++</strong> <strong>4.5</strong> <strong>Loader</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Manual</strong> A-3

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

Saved successfully!

Ooh no, something went wrong!