User manual

Translation Formats
ProMaster 2500 User Manual D-23
MOS Technology Format, Code 81
The data in each record are sandwiched between a 7-character prefix and
a 4-character suffix. The number of data bytes in each record must be
indicated by the byte count in the prefix. The input file can be divided
into records of various lengths.
Figure D-9 shows a series of valid data records. Each data record begins
with a semicolon. The programmer will ignore all characters received
prior to the first semicolon. All other characters in a valid record must be
valid hexadecimal digits (0-9 and A-F). A 2-digit byte count follows the
start character. The byte count, expressed in hexadecimal digits, must
equal the number of data bytes in the record. The byte count is greater
than zero in the data records, and equals zero (00) in the end-of-file
record. The next 4 digits make up the address of the first data byte in the
record. Data bytes follow, each represented by 2 hexadecimal digits. The
end-of-file record consists of the semicolon start character, followed by a
00 byte count, the record count, and a checksum.
The checksum, which follows each data record, is a 2-byte binary
summation of the preceding bytes in the record (including the address
and byte count), in hexadecimal notation.
Figure D-9
An Example of MOS Technology Format
;100000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF1000
;100010FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF1010
;100020FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF1020
;100030FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF1030
;100040FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF1040
;0000050005
Sumcheck of record including
data, address and byte count
Data Records
End-of-File Record
Record Count Sumcheck
Start Character
Byte Count
Address Field
LEGEND
Nonprinting Carriage Return, line feed,
and nulls determined by null count
0081-2