SW500009 Microchip Technology, SW500009 Datasheet - Page 116

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.8.23 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.
would expand to:
Note that you can use local labels and angle brackets in the same manner as with conventional
macros.
space characters.
will expand to:
102
For example:
The IRPC directive is similar, except it substitutes one character at a time from a string of non-
For example:
PSECT idata_0
ENDM
PSECT text0
PSECT idata_0
PSECT text0
PSECT romdata,class=CODE,delta=2
ENDM
PSECT text
PSECT romdata,class=CODE,delta=2
PSECT text
IRP number,4865h,6C6Ch,6F00h
DW number
DW 4865h
DW 6C6Ch
DW 6F00h
IRPC char,ABC
DB ’char’
DB ’A’
DB ’B’
DB ’C’
Macro Assembler

Related parts for SW500009