Autosite_Users_Manual - 第121页
Trans lation Fo rmats AutoSite User Manual B-23 MOS Technolo gy Format, Code 81 The data in each record are s andwiched between a 7-character prefix and a 4-character s uffix. The number of data bytes in each record must…

Translation Formats
B-22 AutoSite User Manual
Fairchild Fairbug, Code 80
In the Fairbug format, input and output requirements are identical; both
have 8-byte records and identical control characters. Figure B-8 shows a
Fairbug data file. A file begins with a 5-character prefix and ends with a
1-character suffix. The start-of-file character is an S, followed by the
address of the first data byte. Each data byte is represented by 2
hexadecimal characters. The programmer will ignore all characters
received prior to the first S.
Note: Address specification is optional in this format; a record with no address
directly follows the previous record.
Each data record begins with an X and always contains 8 data bytes. A
1-digit hexadecimal checksum follows the data in each data record. The
checksum represents, in hexadecimal notation, the sum of the binary
equivalents of the 16 digits in the record; the half carry from the fourth bit
is ignored.
The programmer ignores any character (except for address characters and
the asterisk character, which terminates the data transfer) between a
checksum and the start character of the next data record. This space can
be used for comments.
The last record consists of an asterisk only, which indicates the end
of file.
Figure B-8
An Example of Fairchild Fairbug
S0000
XFFFFFFFFFFFFFFFFC
XFFFFFFFFFFFFFFFFC
XFFFFFFFFFFFFFFFFC
XFFFFFFFFFFFFFFFFC
XFFFFFFFFFFFFFFFFC
XFFFFFFFFFFFFFFFFC
XFFFFFFFFFFFFFFFFC
XFFFFFFFFFFFFFFFFC
XFFFFFFFFFFFFFFFFC
XFFFFFFFFFFFFFFFFC
*
Start Record
S = Start Character
0000 = Address Field
End-of-File Record
Data Records
X =
FF =
C =
Data Record Start Character
2 Hex Characters (1 Byte)
Checksum. 1-digit summation
of data in record
0080-2

Translation Formats
AutoSite User Manual B-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 B-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 B-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

Translation Formats
B-24 AutoSite User Manual
Motorola EXORciser Format, Code 82
Motorola EXORciser data files may begin with an optional sign-on
record, which is initiated by the start characters S0. Valid data records
start with an 8-character prefix and end with a 2-character suffix.
Figure B-10 shows a series of valid Motorola data records.
Each data record begins with the start characters S1. The third and fourth
characters represent the byte count, which expresses the number of data,
address, and checksum bytes in the record. The address of the first data
byte in the record is expressed by the last 4 characters of the prefix. Data
bytes follow, each represented by 2 hexadecimal characters. The number
of data bytes occurring must be three less than the byte count. The suffix
is a 2-character checksum, which equals the one's complement of the
binary summation of the byte count, address, and data bytes.
The end-of-file record consists of the start characters S9, the byte count,
the address (in hex), and a checksum. The maximum record length is 250
data bytes.
Figure B-10
An Example of Motorola EXORciser Format
S1130000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC
S00B00004441544120492F4FF3
S1130010FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEC
S1130020FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC
S1130030FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCC
S1130040FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBC
S9030000FC
End-of-File Record
Start Character
Byte Count
Sumcheck
Address
End-of-File Record
Optional Sign-On Record
(S0 = Sign-On Characters)
Byte Count + 3
Start Character
Data
Records
Sumcheck
of record
LEGEND
Nonprinting Carriage Return, line feed,
and nulls determined by null count
0082-2