SW500010 Microchip Technology, SW500010 Datasheet - Page 137

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
and passed as a decimal number, rather than as a string. This is useful if evaluation of the argument
inside the macro body would yield a different result.
By default, the assembly list file will show macro in an unexpanded format, i.e. as the macro was
invoked. Expansion of the macro in the listing file can be shown by using the EXPAND assembler
control, see Section 4.3.9.2,
4.3.8.21 LOCAL
The LOCAL directive allows unique labels to be defined for each expansion of a given macro. Any
symbols listed after the LOCAL directive will have a unique assembler generated symbol substituted
for them when the macro is expanded. For example:
when expanded will include a unique assembler generated label in place of more. For example:
expands to:
if invoked a second time, the label more would expand to ??0002.
If an argument is preceded by a percent sign %, that argument will be evaluated as an expression
The nul operator may be used within a macro to test a macro argument, for example:
IF nul
ELSE
ENDIF
down MACRO count
ENDM
down foobar
??0001 decfsz foobar
LOCAL more
more: decfsz count
goto more
...
...
goto ??0001
arg3
; argument was not supplied.
; argument was supplied
HI-TECH C Assembly Language
137

Related parts for SW500010