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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Macro AssemblerHI-TECH C Assembly LanguageTable 4.6: PSECT flagsFlagabsbitclass=namedelta=sizegloballimit=addresslocalovrldpurepad=amountreloc=boundarysize=maxspace=areawidth=sizewith=psectMeaningPsect is absolutePsect holds bit objectsSpecify class name for psectSize of an addressing unitPsect is global (default)Upper address limit of psectPsect is not globalPsect will overlap same psect in other modulesPsect is to be read-onlyZero pads psect up to specified alignmentStart psect on specified boundaryMaximum size of psectRepresents area in which psect will resideSets maximum number of bytes used per addressPlace psect in the same page as specified psect4.3.8.2 ENDEND is optional, but if present should be at the very end of the program. It will terminate the assemblyand not even blank lines should follow this directive. If an expression is supplied as an argument,that expression will be used to define the start address of the program. Whether this is of any usewill depend on the linker. Example:ENDstart_label4.3.8.3 PSECTThe PSECT directive declares or resumes a program section. It takes as arguments a name and,optionally, a comma-separated list of flags. The allowed flags are listed in Table 4.6, below.Once a psect has been declared it may be resumed later by another PSECT directive, however theflags need not be repeated.• abs defines the current psect as being absolute, i.e. it is to start at location 0. This doesnot mean that this module’s contribution to the psect will start at 0, since other modules maycontribute to the same psect.77

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

Saved successfully!

Ooh no, something went wrong!