[an error occurred while processing this directive]
|
Record Format
An Intel HEX file is composed of any number of HEX records. Each record is
made up of five fields arranged in the following format:
:llaaaatt dd... cc
Each group of letters corresponds to a different field, and each letter represents a
single hexadecimal digit. Each field is composed of at least two hexadecimal
digits—which make up a byte—as described below:
: the colon that starts every Intel HEX record.
ll is the record-length field that represents the number of data
bytes (dd) in the record.
aaaa is the address field that represents the starting address for
subsequent data in the record.
tt is the field that represents the HEX record type, which can be
one of the following types:
00 data record
01 end-of-file record
02 8086 segment address record
04 extended linear address record
dd is a data field that represents one byte of data. A record can
have several data bytes. The number of data bytes in the record
must match the number specified by the ll field.
cc is the checksum field that represents the checksum of the record.
The checksum is calculated by adding the values of all
Example:
End-of-File (EOF) Record
An Intel HEX file must end with an end-of-file (EOF) record. This record must
have the value 01 in the record type field. An EOF record always appears as
follows:
:00000001FF
where:
00 is the number of data bytes in the record.
0000 is the address where the data are to be located in memory. The
address in end-of-file records is meaningless and is ignored. An
address of 0000h is typical.
01 is the record type 01 (an end-of-file record).
FF is the checksum of the record and is calculated as
01h + NOT(00h + 00h + 00h + 01h).
E-mail: info@telesys.ru