SW500009 Microchip Technology, SW500009 Datasheet - Page 110

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.7 DB
DB is used to initialize storage as bytes. The argument is a list of expressions, each of which will be
assembled into one byte. Each character of the string will be assembled into one memory location.
Examples:
Note that because the size of an address unit in ROM is 2 bytes, the DB pseudo-op will initialise a
word with the upper byte set to zero.
4.3.8.8 DW
DW operates in a similar fashion to DB, except that it assembles expressions into words. Example:
4.3.8.9 DS
This directive reserves, but does not initialize, memory locations. The single argument is the number
of bytes to be reserved. Examples:
4.3.8.10 FNADDR
This directive tells the linker that a function has its address taken, and thus could be called indirectly
through a function pointer. For example
tells the linker that func1() has its address taken.
4.3.8.11 FNARG
The directive
tells the linker that evaluation of the arguments to function fun1 involves a call to fun2, thus the
memory argument memory allocated for the two functions should not overlap. For example, the C
function calls
96
alabel: DB ’X’,1,2,3,4,
DW -1, 3664h, ‘A’, 3777Q
alabel: DS 23
xlabel: DS 2+3
FNADDR _func1
FNARG fun1,fun2
;Reserve 23 bytes of memory
;Reserve 5 bytes of memory
Macro Assembler

Related parts for SW500009