Posted: Tue Jun 28, 2011 4:29 am
Quote:
If you could post a short example of loader format
Code: Select all
:02000004FFFFxx
:08E000000001020304050607xx
:08E0080008090A0B0C0D0E0Fxx
:00000001FF
Code: Select all
;02000004FFFFxx
;10E0000000000001000200030004000500060007xx
;10E0080000080009000A000B000C000D000E000Fxx
;00000001FF
- the "record start" character changes from ":" to ";"
- the "data byte count" remains octet-correct
- the "address offset" is 16-bit correct
Data lines get longer because I multiply the "chunk size" of a line (8-32, default 16) by the "byte size". That seemed to be the simplest way to avoid the possibility of "breaking" a "byte" across two lines, given that I allow "chunk" sizes to be odd-numbered values. However it does mean in this implementation the maximum number of octets rises to 32*4=128 (with a 32-bit "byte") and that in turn means up to 256 data chars.
Makes a pretty long output line.
I still like the idea of boosting the record type, but if I pursue that I'll probably wait for the next version of HXA. The compiler likes to allocate things in 8K chunks and I'm bumping up against the end of one of those now. On the plus side, it's given me the opportunity to revise some code into shorter versions. More understandable, even.