SW500010 Microchip Technology, SW500010 Datasheet - Page 138

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.8.22 ALIGN
The ALIGN directive aligns whatever is following, data storage or code etc., to the specified bound-
ary in the psect in which the directive is found. The boundary is specified by a number following the
directive and it specifies a number of bytes. For example, to align output to a 2 byte (even) address
within a psect, the following could be used.
Note, however, that what follows will only begin on an even absolute address if the psect begins on
an even address. The ALIGN directive can also be used to ensure that a psect’s length is a multiple
of a certain number. For example, if the above ALIGN directive was placed at the end of a psect, the
psect would have a length that was always an even number of bytes long.
4.3.8.23 REPT
The REPT directive temporarily defines an unnamed macro, then expands it a number of times as
determined by its argument. For example:
will expand to
4.3.8.24 IRP and IRPC
The IRP and IRPC directives operate similarly to REPT, however instead of repeating the block
a fixed number of times, it is repeated once for each member of an argument list. In the case of
IRP the list is a conventional macro argument list, in the case or IRPC it is each character in one
argument. For each repetition the argument is substituted for one formal parameter.
138
For example:
ALIGN 2
REPT 3
addwf fred,w
ENDM
addwf fred,w
addwf fred,w
addwf fred,w
PSECT idata_0
ENDM
PSECT text0
IRP number,4865h,6C6Ch,6F00h
DW number
Macro Assembler

Related parts for SW500010