[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Structure of the FORCE memory file (.mem)
The file is composed of a sequence of variable length records surrounded by two
signature words.
signature word
the first record
the second record
.
.
.
the Nth record
signature word
The starting signature word is 0xdead (in hex) and the ending is 0ffffh (-1, in
hex). Each record contained data for each memory variable saved. A record has
the following format:
2 bytes(word) length of record
2 bytes(word) length of variable name (NULL terminated)
N bytes ascii variable name
2 bytes(word) length of data
N bytes variable data
An example .mem file...assuming the following declaration:
VARDEF
CHAR(10) aname = "1234567890"
ENDDEF
word 0xDEAD
word 0x17 && length of record (does not include
&& the 0xdead signature)
word 6
bytes 'aname',0 && ascii variable name
word 0xA (10decimal) && length of data
bytes '0123457890'
word 0xffff
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson