You are on page 1of 1

Data Definitions

Purpose:

Allows the insertion of data into the .HEX file. In particular,


this may be used to program the '84 data EEPROM, as
shown in the following example.
Note that if the #ROM address is inside the program memory
space, the directive creates a segment for the data, resulting
in an error if a #ORG is over the same area. The #ROM
data will also be counted as used program memory space.

Examples:

#rom

Example Files:

None

Also See:

#org

0x2100={1,2,3,4,5,6,7,8}

#SERIALIZE
Syntax:

#serialize(id=xxx, next=x | file=" filename.txt " |


listfile=" filename.txt," prompt="text",
log="filename.txt")
-Or#serialize(dataee=x,
binary=x,
next=x
|
file="filename.txt" | listfile=" filename.txt ", prompt=" text ",
log=" filename.txt ")

Elements:

id=xxx Specify a C CONST


int8,int16,int32 or char array

identifier,

may

be

Use in place of id parameter, when storing serial number


to EEPROM:
dataee=x The address x is the start address in the data
EEPROM.
binary=x
The integer x is the number of bytes to
be written to address specified.
-orstring=x
The integer x is the number of bytes to be
written to address specified.

59

You might also like