SW500008 Microchip Technology, SW500008 Datasheet - Page 118

PICC-18 STD

SW500008

Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500008

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015
778-1001
778-1001
HI-TECH C Assembly Language
When used, this macro will expand to the 2 instructions in the body of the macro, with the formal
parameters substituted by the arguments. Thus:
expands to:
A point to note in the above example: the & character is used to permit the concatenation of macro
parameters with other text, but is removed in the actual expansion.
storage) by opening the comment with a double semicolon, ;;.
comma (or other delimiter such as a space) in an argument then angle brackets < and > may be used
to quote the argument. In addition the exclamation mark, ! may be used to quote a single character.
The character immediately following the exclamation mark will be passed into the macro argument
even if it is normally a comment indicator.
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,
104
A comment may be suppressed within the expansion of a macro (thus saving space in the macro
When invoking a macro, the argument list must be comma-separated. If it is desired to include a
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:
;descr: Loads two registers with the value in the variable:
ldtwo
ENDM
IF nul
ELSE
ENDIF
movlw &arg2
movwf &arg1
storem tempvar,2
movlw 2
movwf tempvar
...
...
MACRO
arg3 ; argument was not supplied.
arg1,arg2
; argument was supplied
Macro Assembler

Related parts for SW500008