SCANTECH ID (Champtek company) Discovery SG-20 User Manual
Page 101

Scantech-ID Discovery SG-20
93
Type
A char[2] field. These characters describe the type of record
(S0, S1, S2, S3, S5, S7, S8, or S9).
Only records S0, S1, S2, S7, S8 and S9 are supported by the Discovery
Count
A char[2] field. These characters when paired and interpreted as a
hexadecimal value, display the count of remaining character pairs in the record.
Address
A char[4,6, or 8] field. These characters grouped and interpreted as a
hexadecimal value, display the address at which the data field is to be loaded into
memory. The length of the field depends on the number of bytes necessary to
hold the address. A 2-byte address uses 4 characters, a 3-byte address uses 6
characters, and a 4-byte address uses 8 characters.
Data
A char [0-64] field. These characters when paired and interpreted as hexadecimal
values represent the memory loadable data or descriptive information.
Checksum
A char[2] field. These characters when paired and interpreted as a
hexadecimal value display the least significant byte of the ones complement of
the sum of the byte values represented by the pairs of characters making up the
count, the address, and the data fields.
Record types supported by the Discovery :
S0 Record
The type of record is 'S0'. The address field is unused and will be filled with zeros
(0x0000). The Discovery only uses S0 records as indication of the start of the
file.
S1 Record
The type of record field is 'S1'. The address field is interpreted as a 2-byte
address. The data field is composed of memory loadable data.
S2 Record
The type of record field is 'S2'. The address field is interpreted as a 3-byte
address.