Autosite_Users_Manual - 第146页

Trans lati on Form ats B-48 AutoSite User Manual The load address determines where the object code will be located. This is a variabl e length nu mber that ma y contain u p to 17 charact ers. The first number determin es…

100%1 / 175
Translation Formats
AutoSite User Manual B-47
Extended Tektronix Hexadecimal Format, Code 94
The Extended Tektronix Hexadecimal format has three types of records:
data, symbol, and termination records. The data record contains the
object code. Information about a program section is contained in the
symbol record (the programmer ignores symbol records), and the
termination record signifies the end of a module. The data record (see
sample below) contains a header field, a load address, and the object
code. Figure B-20 lists the information contained in the header field.
Character Values for
Checksum Computation
The number of fields in the file will vary, depending on whether a data or
a termination block is sent. Both data and termination blocks have a
6-character header and a 2-to-17 character address.
Figure B-20
An Example of Tektronix Extended
Format
Item
No. of ASCII
Characters Description
% 1 Signifies that the record is the Extended
Tek Hex format.
Block length 2 Number of characters in the record,
minus the %.
Block type 1 6 = data record
3 = symbol record (ignored by the
programmer)
8 = termination record
Checksum 2 A 2-digit hex sum, modulo 256, of all the
values in the record except the % and
the checksum.
Character(s)
Value (decimal)
Character(s)
Value
(decimal)
0 . . 9 0 . . 9 . (period) 38
A . . Z 10 . . 35 _(underline) 39
$ 36 a . . z 40 . . 65
%37
%1561C310020202020202
SUMCHECK: 1CH = 1+5+6+3+1+0+0+0+2+0+2+...
OBJECT CODE: 6 BYTES
LOAD ADDRESS: 100 H
BLOCK TYPE: 6 (DATA)
HEADER CHARACTER
BLOCK LENGTH: 15H = 21
0092-2
Translation Formats
B-48 AutoSite User Manual
The load address determines where the object code will be located. This
is a variable length number that may contain up to 17 characters. The first
number determines the address length, with a zero signifying a length of
16. The remaining characters of the data record contain the object code, 2
characters per byte.
When you copy data to the port or to RAM, set the high-order address if
the low-order is not at the default value.
Translation Formats
AutoSite User Manual B-49
Motorola 32-Bit Format, Code 95
The Motorola 32-bit format closely resembles the Motorola EXORmacs
format, the main difference being the addition of the S3 and S7 start
characters. The S3 character is used to begin a record containing a 4-byte
address. The S7 character is a termination record for a block of S3 records.
The address field for an S7 record may optionally contain the 4-byte
instruction address that identifies where control is to be passed and is
ignored by the programmer. Figure B-21 shows a sample of the Motorola
32-bit format.
Motorola data files may begin with an optional sign-on record, initiated
by the start characters S0 or S5. Data records start with an 8- or
10-character prefix and end with a 2-character suffix.
Each data record begins with the start characters S1, S2, or S3: S1 if the
following address field has 4 characters, S2 if it has 6 characters, S3 if it
has 8 characters. 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 (6 characters for addresses above
hexadecimal FFFF, and 8 characters for addresses above hexadecimal
FFFFFF). Data bytes follow, each represented by 2 hexadecimal
characters. The number of data bytes occurring must be 3, 4, or 5 less than
the byte count. The suffix is a 2-character checksum, the one's
complement (in binary) of the preceding bytes in the record, including
the byte count, address, and data bytes.
The end-of-file record begins with an S8 or S9 start character. Following
the start characters are the byte count, the address, and a checksum. The
maximum record length is 250 data bytes.
Figure B-21
An Example of Motorola S3 Format
S00B00004441544120492F4FF3
S31500000000AA55AA55AA55AA55AA55AA55AA55AA55F2
S30D00000010AA55AA55AA55AA55E6
S70500000000FA
Start
Character
Byte Count
Address
Checksum
Optional Sign-On Record
Data
Records
0093-3