Record type 02, the extended address record, defines bits 4
to 19 of the segment base address. It can appear randomly
anywhere within the object file and in any order; i.e., it
can be defined such that the data bytes at high addresses
are sent before the bytes at lower addresses. Figure A-17
illustrates how the extended address is used to determine a
byte address.
Example of How to Calculate Address
Problem: Find address for the first data byte for the
following file.
:02 0000 02 1230 BA
:10 0045 00 55AA FF ...... BC
Solution:
Step 1: Find the record address for the byte. The first
data byte is 55. Its record address is 0045 from above.
Step 2: Find the base address (offset). The base address
is 1230 from above.
Step 3: Shift the base address one place to the teft and
then add to the record address.
Base Address
1230
(upper 16 bits)
+
Record Address
0045
(lower 16 bits)
- - - -
Address for first data byte
=
12345
(20-bit address)
Figure A-17. Calculating an Address Using the
Intel MCS-86 (Code 88) Extended
Address Board
NOTE
Aways specify the address offset when
using this format, even when the offset
is zero.
During output translation, the firmware will force the
record size to 16 (decimal) if the record size is specified
greater than 16. There is no such limitation for record sizes
specified less than 16.
• HEWLETT-PACKARD 64000 ABSOLUTE FORMAT,
CODE 89
Hewlett-Packard Absolute is a binary format with control
and data-checking characters. See figure A-18.
Data fiies begin with a Start-of-File record including the
data bus width,
data width base, transfer address, and
a
checksum of the bytes in the record.
Data records follow the Start-of-File record. Each begins
with 2 byte counts: the first expresses the number of
16"."bit words in the record not including the checksum and
itself; the second expresses the number of 8-bit data bytes
in the record. Next comes a 32-bit address, which
describes the storage location of the following data byte.
Data bytes follow; after the last data byte comes a
checksum of every byte in the record except the first byte.
The End-of-File record consists only of a byte count, which
is always zero.
• TEXAS INSTRUMENTS SDSMAC FORMAT,
CODE 90
Data files in the SDSMAC format consist of a Start-of-File
record, data records, and an End-of-File record. See
figure A-19.
Each record is composed of a series of small fields, each
initiated by a tag character. The programmer recognizes
and acknowledges the foiiowing tag characters:
0 - always followed by a file header.
7 - always foliowed by a checksum which the
programmer acknowledges.
8 - always followed by a checksum which the
programmer ignores.
9 - always followed by a load address.
B - always followed by 4 data characters.
F - denotes the end of a data record.
The Start-of-File record begins with a tag character and a
12-character file header. Next come interspersed address
fields and data fields (each with tag characters). If any data
fields appear before the first address field in the file, the
first of those data fields is assigned to address 0000.
Address fields may be expressed for any data byte, but
none are required. The record ends with a checksum field
initiated by the tag character 7 or 8, a 4-character
checksum, and the tag character F.
Data records follow the same format as the Start-of-File
record but do not contain a file header.
The End-of-File record consists of a colon (:) only. The
output translator sends a control S after the colon.
A-17
10-990-0013
Need help?
Do you have a question about the 298 and is the answer not in the manual?
Questions and answers