Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/10/00 04:16
Read: times


 
#1742 - RE: Hex file parser
> So the question is how to distinguish actual program code
> from bytes assembled with .db directive.

You can't distinguish. The only way would be to give the user the option to subsequently tell the Simulator "this byte is data value, not an instruction." (feel free to see how I did it in the Pinnacle product, http://www.vaultbbs.com/pinnacle, check out the Disassembly window).

A less reliable way is to keep track of the bytes that are executed, and assume that any bytes that are never executed are data bytes. This isn't very reliable, but it could work in most cases.

> Is there any other format besides Intel HEX, which offers more
> information, and offcourse where can I get specifications?

OMF-51 is what it is called and has the information you are looking for. The format is much more complex than a standard Intel HEX file. Not sure where to get the specification. Search for it in the Internet, or on the Intel site. Another 8052.com user once sent it to me and I printed it, but somewhere along the way I deleted the PDF file and only have the printed version.

Craig Steiner


List of 8 messages in thread
TopicAuthorDate
Hex file parser            01/01/70 00:00      
RE: Hex file parser            01/01/70 00:00      
RE: Hex file parser            01/01/70 00:00      
RE: Hex file parser            01/01/70 00:00      
RE: Hex file parser            01/01/70 00:00      
RE: Hex file parser            01/01/70 00:00      
RE: Hex file parser            01/01/70 00:00      
RE: Hex file parser            01/01/70 00:00      

Back to Subject List