Autosite_Users_Manual - 第120页
Trans lati on Form ats B-22 AutoSite User Manual Fairchild Fairbu g, Code 80 In the Fairbug f ormat, input and ou tput requirements are identica l; both have 8-byte records and identical control char acters. Figure B-8 s…

Translation Formats
AutoSite User Manual B-21
RCA Cosmac Format, Code 70
Data in this format begin with a start record consisting of the start
character (!M or ?M), an address field, and a space. See Figure B-7.
The start character ?M is sent to the programmer by a development
system, followed by the starting address and a data stream which
conforms to the data input format described in the ASCII-Hex and Octal
figure. Transmission stops when the specified number of bytes has been
transmitted.
Address specification is required for only the first data byte in the
transfer. An address must have 1 to 4 hex characters and must be
followed by a space. The programmer records the next hexadecimal
character after the space as the start of the first data byte. (A carriage
return must follow the space if the start code ?M is used.) Succeeding
bytes are recorded sequentially.
Each data record is followed by a comma if the next record is not
preceded by an address, or by a semicolon if it starts with an address.
Records consist of data bytes expressed as 2 hexadecimal characters and
followed by either a comma or semicolon, and a carriage return. The
programmer ignores any characters received between a comma or
semicolon and a carriage return.
The carriage return character is significant to this format because it can
signal either the continuation or the end of data flow; if the carriage
return is preceded by a comma or semicolon, more data must follow; the
absence of a comma or semicolon before the carriage return indicates the
end of transmission.
Output data records are followed by either a comma or a semicolon and a
carriage return. The start-of-file records are expressed exactly as for
input.
Figure B-7
An Example of RCA Cosmac
Format
!M0000 ,
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Start Record
!M or ?M = Start Characters
0000 = Address
End-of-File Record
1
2
Data Records
FF =
, =
; =
2 Hex Characters = (1 Byte)
Bytes per record is variable
End of Record Character
End of Record Character
if followed by expressed
address
LEGEND
Nonprinting line feed, carriage return, and nulls
Nonprinting carriage return
1
2
0079-2

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