SW500011 Microchip Technology, SW500011 Datasheet - Page 128

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
In this example, if ABC is non-zero, the first jmp instruction will be assembled but not the second or
third. If ABC is zero and DEF is non-zero, the second jmp will be assembled but the first and third
will not. If both ABC and DEF are zero, the third jmp will be assembled. Conditional assembly blocks
may be nested.
4.3.10.15 MACRO and ENDM
These directives provide for the definition of macros. The MACRO directive should be preceded by
the macro name and optionally followed by a comma-separated list of formal parameters. When the
macro is used, the macro name should be used in the same manner as a machine opcode, followed
by a list of arguments to be substituted for the formal parameters.
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, ;;.
128
For example:
A comment may be suppressed within the expansion of a macro (thus saving space in the macro
ELSE
ENDIF
;macro: storem
;args: arg1 - the NAME of the source variable
;
;descr: Loads two registers with the value in the variable:
ldtwo
ENDM
goto denver
goto grapes
movlw &arg2
movwf &arg1
storem tempvar,2
movlw 2
movwf tempvar
arg2 - the literal value to load
MACRO
arg1,arg2
Macro Assembler

Related parts for SW500011