CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

HEX representation for higher memory ????????

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
moutinho



Joined: 12 May 2005
Posts: 31
Location: BRAZIL

View user's profile Send private message Visit poster's website MSN Messenger

HEX representation for higher memory ????????
PostPosted: Tue May 17, 2005 12:40 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue May 17, 2005 1:15 pm     Reply with quote

If you search http://www.google.com for the quoted string,
"hex file format", you will get over 2000 hits.
Guest








PostPosted: Tue Aug 16, 2005 10:57 am     Reply with quote

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!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group