When writing HEX to output file, the segment address is output in LSB byte order while it must use MSB
Example 1 - First record at the beginning of the file :
Segment offset is 0x0800 and full data address is 0x08008000 (correct)
:020000040800F2
:10800000F0FC0020493D03083140030835400308D7
Written file contains
:020000040008F2
:10800000F0FC0020493D03083140030835400308D7
Segment offset is 0x0008 and full data address is 0x00088000 which is obviously wrong
Example 2 - Segment address record somewhere in the file
Segment offset is 0x0802 and full data address is 0x08020000 (correct)
:020000040802F0
:1000000002D1E4B2002C07D068714FF4FA6168792C
Written file contains
:020000040208F0
:1000000002D1E4B2002C07D068714FF4FA6168792C
Segment offset is 0x0208 and full data address is 0x02080000 (wrong)
When writing HEX to output file, the segment address is output in LSB byte order while it must use MSB
Example 1 - First record at the beginning of the file :
Segment offset is 0x0800 and full data address is 0x08008000 (correct)
:020000040800F2
:10800000F0FC0020493D03083140030835400308D7
Written file contains
:020000040008F2
:10800000F0FC0020493D03083140030835400308D7
Segment offset is 0x0008 and full data address is 0x00088000 which is obviously wrong
Example 2 - Segment address record somewhere in the file
Segment offset is 0x0802 and full data address is 0x08020000 (correct)
:020000040802F0
:1000000002D1E4B2002C07D068714FF4FA6168792C
Written file contains
:020000040208F0
:1000000002D1E4B2002C07D068714FF4FA6168792C
Segment offset is 0x0208 and full data address is 0x02080000 (wrong)