SW500010 Microchip Technology, SW500010 Datasheet - Page 132

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
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 DABS
This directive allows one or more bytes of memory to be reserved at the specified address. The
general form of the directive is:
where memory_space is a number representing the memory space in which the reservation will
take place, address is the address at which the reservation will take place, and bytes is the
number of bytes that is to be reserved. This directive differs to the DS directive in that it does not
allocate space at the curernt location in the current psect, but instead can be used to reserve memory
at any location.
psects. Devices with a single flat memory space will typically always use 0 as the space value;
devices with separate code and data spaces typically use 0 for the code space and 1 for the data
space.
variables that have been allocated an address by the code generator.
132
The memory space number is the same as the number specified with the space flag option to
The code generator issues a DABS directive for every user-defined absolute C variable, or for
alabel: DB
DW -1, 3664h, ‘A’, 3777Q
alabel: DS 23
xlabel: DS 2+3
DABS memory_space,address,bytes
’X’,1,2,3,4,
;Reserve 23 bytes of memory
;Reserve 5 bytes of memory
Macro Assembler

Related parts for SW500010