SW500010 Microchip Technology, SW500010 Datasheet - Page 127

HI-TECH C PRO FOR PIC10/12/16

SW500010

Manufacturer Part Number
SW500010
Description
HI-TECH C PRO FOR PIC10/12/16
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC10/12/16r
Datasheets

Specifications of SW500010

Supported Families
PIC10, PIC12, PIC16
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC10/12/16
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC10, PIC12, PIC14, PIC16, PIC16E
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
019P
778-1006
778-1006
Macro Assembler
Note that even though the two blocks of code in the text psect are separated by a block in the rbss
psect, the two text psect blocks will be contiguous when loaded by the linker. In other words, the
incf _fred instruction will be followed by the clrf instruction in the final output. The actual
location in memory of the text and rbss psects will be determined by the linker.
psect.
4.3.8 Assembler Directives
Assembler directives, or pseudo-ops, are used in a similar way to instruction mnemonics, but either
do not generate code, or generate non-executable code, i.e. data bytes. The directives are listed in
Table 4.5, and are detailed below.
4.3.8.1 GLOBAL
GLOBAL declares a list of symbols which, if defined within the current module, are made public. If
the symbols are not defined in the current module, it is a reference to symbols in external modules.
Example:
4.3.8.2 END
END is optional, but if present should be at the very end of the program. It will terminate the
assembly and 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 use will depend on the linker. Example:
Code or data that is not explicitly placed into a psect will become part of the default (unnamed)
PSECT text0,class=CODE,delta=2
clear_fred
GLOBAL
END
DS 2
clrf _fred
return
start_label
lab1,lab2,lab3
HI-TECH C Assembly Language
127

Related parts for SW500010