SW500010 Microchip Technology, SW500010 Datasheet - Page 124

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
HI-TECH C Assembly Language
4.3.5.4 Register Symbols
Code in assembly modules may gain access to the special function registers by including pre-defined
assembly header files. The appropriate file can be included by add the line:
to the assembler source file. Note that the file must be included using a C pre-processor directive and
hence the option to pre-process assembly files must be enabled when compiling, see Section 2.6.11.
This header file contains appropriate commands to ensure that the header file specific for the target
device is included into the source file.
macros for named bits within byte registers.
4.3.5.5 Symbolic Labels
A label is symbolic alias which is assigned a value equal to its offset within the current psect.
:. The definition may appear on a line by itself or be positioned before a statement. Here are two
examples of legitimate labels interspersed with assembly code.
Here, the label frank will ultimately be assigned the address of the mov instruction, and simon44
the address of the clrf instruction. Regardless of how they are defined, the assembler list file
produced by the assembler will always show labels on a line by themselves.
in any other way are assumed to be labels. Thus the code:
defined a symbol called bananas. Mis-typed assembler instructions can sometimes be treated as
labels without an error message being issued. Labels may be used (and are preferred) in assembly
code rather than using an absolute address. Thus they can be used as the target location for jump-type
instructions or to load an address into a register.
they are defined. They may be used by code above their definition. To make a label accessible in
other modules, use the GLOBAL directive. See Section
124
These header files contain EQU declarations for all byte or multi-byte sized registers and #define
A label definition consists of any valid assembly identifier and optionally followed by a colon,
Note that the colon following the label is optional, therefore symbols which are not interpreted
Like variables, labels have scope. By default, they may be used anywhere in the module in which
#include <aspic.h>
frank:
simon44:
mowlv 23h
bananas
movf 37h
movlw 1
goto fin
clrf _input
4.3.8.1
for more information.
Macro Assembler

Related parts for SW500010