SW500011 Microchip Technology, SW500011 Datasheet - Page 130

HI-TECH X PRO FOR PIC32

SW500011

Manufacturer Part Number
SW500011
Description
HI-TECH X PRO FOR PIC32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheet

Specifications of SW500011

No. Of User Licenses
1
Supported Families
PIC32
Core Architecture
PIC
Supported Hosts
Windows XP, Vista, Linux, Mac OS X
Software Edition
Professional
Kit Contents
Software And Docs
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
032
778-1007
778-1007
HI-TECH C Assembly Language
4.3.10.17 ALIGN
The ALIGN directive aligns whatever is following, data storage or code etc., to the specified boundary
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.10.18 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.10.19 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.
130
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 SW500011