SW500010 Microchip Technology, SW500010 Datasheet - Page 131

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
4.3.8.4 ORG
The ORG directive changes the value of the location counter within the current psect. This means
that the addresses set with ORG are relative to the base address of the psect, which is not determined
until link time.
The argument to ORG must be either an absolute value, or a value referencing the current psect. In
either case the current location counter is set to the value determined by the argument. It is not
possible to move the location counter backward. For example:
will move the location counter to the beginning of the current psect plus 100h. The actual location
will not be known until link time.
must be used from within an absolute, overlaid psect. For example:
4.3.8.5 EQU
This pseudo-op defines a symbol and equates its value to an expression. For example
The identifier thomas will be given the value 123h. EQU is legal only when the symbol has not
previously been defined. See also Section 4.3.8.6.
4.3.8.6 SET
This pseudo-op is equivalent to EQU except that allows a symbol to be re-defined. For example
In order to use the ORG directive to set the location counter to an absolute value, the directive
The much-abused ORG directive does not necessarily move the location counter to the
absolute address you specify as the operand. This directive is rarely needed in programs.
ORG 100h
PSECT absdata,abs,ovrld
thomas EQU 123h
thomas SET 0h
ORG 50h
HI-TECH C Assembly Language
131

Related parts for SW500010