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 LanguagePSECT romdata,class=CODE,reloc=4,delta=2IRPC char,ABCDB ’char’ENDMPSECT textwill expand to:PSECT romdata,class=CODE,reloc=4,delta=2DB ’A’DB ’B’DB ’C’PSECT text4.3.8.17 PROCESSORThe output of the assembler may vary depending on the target device. The device name is typicallyset using the --CHIP option to the command-line driver DSPICC, see Section 2.4.21, or using theassembler -P option, see Table 4.1, but can also be set with this directive, e.g.PROCESSOR 30F60144.3.8.18 SIGNATThis directive is used to associate a 16-bit signature value with a label. At link time the linker checksthat all signatures defined for a particular label are the same and produces an error if they are not. TheSIGNAT directive is used by the HI-TECH C compiler to enforce link time checking of C functionprototypes and calling conventions.Use the SIGNAT directive if you want to write assembly language routines which are called fromC. For example:SIGNAT _fred,8192will associate the signature value 8192 with the symbol _fred. If a different signature value for_fred is present in any object file, the linker will report an error.4.3.9 Assembler ControlsAssembler controls may be included in the assembler source to control assembler operation such aslisting format. These keywords have no significance anywhere else in the program. The control isinvoked by the directive OPT followed by the control name. Some keywords are followed by one ormore parameters. For example:85

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

Saved successfully!

Ooh no, something went wrong!