Jump to content
PC Pete

Hex File Formatter Now Available

Recommended Posts

G'day all,

 

I've written a small hex file parser that might be useful for understanding these files. I've found it so useful, I've decided to made it available for free.

 

It will expand and examine each line in the hex file, and display a much easier to understand breakdown of each line, including the full load address, all data, and even character data in a dump-like format.

 

Please note : This is NOT a disassembler or reverse assembler or anything like that. It's a simple tool to help eliminate the mindless tedium of counting ASCII characters and adding base addresses. And I'm not planning on making such a tool, there are better alternatives freely available!

 

The formatter is a single windows executable, and it should run on most windows systems. There's no registry or installation, it's a single standalone executable that can be used as-is. If you do have problems running it, I'm happy to help figure out something to get you running. You may PM me here, or send email to the address in the zip file. Please remember that you get the exact level of support you pay for - and since it's free software, that's the support level you'll get! :(

 

If you'd like to try it, feel free to download the latest version (1.1.3, build 69) from my website's software section. The URL is here. The version number will change as I expand it and fix any issues and add features, but the URL will never change.

 

By default, the tool will save each file examined in a simple history list text file in the same directory as the tool's exe. This allows you to re-open or examine previously viewed files. That's handy, since many compilers and language toolsets put their project files all over the place!

 

As an example, here's the hex code (from one of my first BoostC projects!) :

:020000040000FA
:0400000049EF00F0D4
:080008000252000001E11200A8
:10001000F90EFF0FD8A4FDD70000022EF9D7120069
:100020000252000001E11200180EFF0FD8A4FDD704
:100030000000022EF9D7120092683F0E936E900EC8
:10004000946E956A030E966E12001CEC00F0818C83
:10005000818EFA0E026E04EC00F0819CFA0E026EA4
:1000600004EC00F0818C819EFA0E026E04EC00F02C
:10007000819CFA0E026E04EC00F0016AFF0E016032
:10008000E6D70150836E800E026E10EC00F0012A5C
:06009000F5D725EF00F09A
:020000040030CA
:0E000000FF32E3F4FFF9BBFFFFFFFFFFFFFF3E
:00000001FF

 

When parsed, you'll get the following information:

====================================== Formatted file contents ==============================
Line   1 : [XLin] New high address offset : $0000 (New base start address : $00000000)
Line   2 : [Data] Address : $00000000 Data : 49,EF,00,F0   : I   
Line   3 : [Data] Address : $00000008 Data : 02,52,00,00,01,E1,12,00   :  R	  
Line   4 : [Data] Address : $00000010 Data : F9,0E,FF,0F,D8,A4,FD,D7,00,00,02,2E,F9,D7,12,00   :			.	
Line   5 : [Data] Address : $00000020 Data : 02,52,00,00,01,E1,12,00,18,0E,FF,0F,D8,A4,FD,D7   :  R			  
Line   6 : [Data] Address : $00000030 Data : 00,00,02,2E,F9,D7,12,00,92,68,3F,0E,93,6E,90,0E   :	.	 h?  n  
Line   7 : [Data] Address : $00000040 Data : 94,6E,95,6A,03,0E,96,6E,12,00,1C,EC,00,F0,81,8C   :  n j   n		
Line   8 : [Data] Address : $00000050 Data : 81,8E,FA,0E,02,6E,04,EC,00,F0,81,9C,FA,0E,02,6E   :	  n		 n
Line   9 : [Data] Address : $00000060 Data : 04,EC,00,F0,81,8C,81,9E,FA,0E,02,6E,04,EC,00,F0   :			n	
Line  10 : [Data] Address : $00000070 Data : 81,9C,FA,0E,02,6E,04,EC,00,F0,01,6A,FF,0E,01,60   :	  n	 j   `
Line  11 : [Data] Address : $00000080 Data : E6,D7,01,50,83,6E,80,0E,02,6E,10,EC,00,F0,01,2A   :	P n   n	 *
Line  12 : [Data] Address : $00000090 Data : F5,D7,25,EF,00,F0   :   %   
Line  13 : [XLin] New high address offset : $0030 (New base start address : $00300000)
Line  14 : [Data] Address : $00300000 Data : FF,32,E3,F4,FF,F9,BB,FF,FF,FF,FF,FF,FF,FF   :  2			
Line  15 : [EndF] *** EOF Record ***
==================================== END formatted file contents ============================

You'll note that the config fuse addresses are clearly provided, as well as other things you might find useful (like data characters!).

 

I'm currently working on configuration options to allow you to configure the tool to suit you, including a shorter/nicer address & data format, justification, and colours/fonts. I'll post here when/if I get a chance to get these features working.

 

If you download it and find any problems, please let me know, and I'll get them fixed ASAP.

 

I hope this is useful!

 

Kind regards,

PCPete

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...