View previous topic :: View next topic |
Author |
Message |
moutinho
Joined: 12 May 2005 Posts: 31 Location: BRAZIL
|
HEX representation for higher memory ???????? |
Posted: Tue May 17, 2005 12:40 pm |
|
|
HI,
The HEX file has the following fields:
:BBAAAATTHHHH....HHHCC
BB - byte count
AAAA - adddress
TT - record type
00-data record
01-end of file record
02-segment address record
04-linear address record
HH - data byte
CC - checksum
I can represent with AAAA up to FFFF or 64KBytes
How does HEX file represent data in 0xFFFF higher memory ? such as 0x1FFFF
Thank,
Andre |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue May 17, 2005 1:15 pm |
|
|
If you search http://www.google.com for the quoted string,
"hex file format", you will get over 2000 hits. |
|
|
Guest
|
|
Posted: Tue Aug 16, 2005 10:57 am |
|
|
When people say:
Quote: |
If you search http://www.google.com for the quoted string,
"hex file format", you will get over 2000 hits.
|
What they mean is "I don't know."
However, I do.
Here is the format again:
:BBAAAATTHHHH....HHHCC
BB - byte count
AAAA - adddress
TT - record type
00-data record
01-end of file record
02-segment address record
04-linear address record
HH - data byte
CC - checksum
That "04-linear address record" is important. What it is saying is "hey, I am now switching to a new location that is beyond 0xffff". For example:
:020000040030CA
Says to change the address so the following will be at 0x0030nnnn. The next record will then be at 0x0030nnnn. You might think of it as something like bank switching.
Hope that makes some sense! |
|
|
|