11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

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.

HI-TECH C Assembly LanguageMacro Assemblerwill move the location counter to the beginning of the current psect plus 100h. The actual locationwill not be known until link time.In order to use the ORG directive to set the location counter to an absolute value, the directivemust be used from within an absolute, overlaid psect. For example:PSECT absdata,abs,ovrldORG 50h4.3.8.5 EQUThis pseudo-op defines a symbol and equates its value to an expression. For examplethomas EQU 123hThe identifier thomas will be given the value 123h. EQU is legal only when the symbol has notpreviously been defined. See also Section 4.3.8.6.4.3.8.6 SETThis pseudo-op is equivalent to EQU except that allows a symbol to be re-defined. For examplethomas SET 0h4.3.8.7 DBDB is used to initialize storage as bytes. The argument is a list of expressions, each of which will beassembled into one byte. Each character of the string will be assembled into one memory location.Examples:alabel: DB’X’,1,2,3,4,Note that because the size of an address unit in ROM is 2 bytes, the DB pseudo-op will initialise aword with the upper byte set to zero.4.3.8.8 DWDW operates in a similar fashion to DB, except that it assembles expressions into words. Example:DW -1, 3664h, ‘A’, 3777Q80

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

Saved successfully!

Ooh no, something went wrong!