SW500009 Microchip Technology, SW500009 Datasheet - Page 102

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
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.4.11.
This header file contains appropriate commands to ensure that the header file specific for the target
device is included into the souce 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 issuesd. Labels may be used (and are prefered) 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 accessable in
other modules, use the GLOBAL directive. See Section
88
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 SW500009