Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Program for converting HEX to ASM

Status
Not open for further replies.

TheSniper

Member level 3
Joined
Sep 18, 2004
Messages
67
Helped
4
Reputation
8
Reaction score
0
Trophy points
1,286
Activity points
591
Hi everybody
am doing a project on 8752(i think it is INTEL and it is maybe the same as 89c52?) MCU.
and i have downloaded the programme and found that it was a HEX file
so i have searched the web using google for a (HEX to ASM programme) so i a can
read the program and understand it.
but i did not find any thing
so pleas if anybody has any idea just hit me with one !!!!!:cry:

Thanks

TheSniper (+)
 

Re: HEX to ASM ?

What you need is a disassembler.
This will convert (or at leas try to) a HEX file into assembly text file.
For 8051 you can try on of those:
**broken link removed**
If you don't like the result try different on. There are plenty to choose from ..
 

    TheSniper

    Points: 2
    Helpful Answer Positive Rating
Re: HEX to ASM ?

I tried one of them, it's quite good. I used them to disassemble a full version HEX file, while a 'demo' version was available open source and heavily commented. Luckily, most parts of the full HEX version was similar to the demo, so it was quite easy to understand.
 

    TheSniper

    Points: 2
    Helpful Answer Positive Rating
Re: HEX to ASM ?

hi
check this link

goodluck
 

    TheSniper

    Points: 2
    Helpful Answer Positive Rating
HEX to ASM ?

Thanks guys
i have downloaded the Tsim8051
and tried it and as you said the result
was not quite good but it is ok!
the question is, do you think that because the code is written for 8752 MCU, it gave this result?
i mean is there any deference in the assembly instructions between 89c52 and 8752?

once again thaks guys

TheSniper (+)
 

Re: HEX to ASM ?

HI
MAY BE THIS ONE WILL GIVE YOU ABETTER RESULT
elektronik.kai-uwe-schmidt.de/software/t8051m.zip
 

    TheSniper

    Points: 2
    Helpful Answer Positive Rating
Re: HEX to ASM ?

Probably a dumb question...

but I will ask

Are those programs (all programs) a general Hex to ASM dissambler? aka.. will work to dissamble my hex file off my AVR, PIC, ARM, etc into ASM?

Or do you have to have a certain HEX to ASM dissambler per iC/uC?

From clicking on the links.. It looks like you have to have a dissambler per iC/uC brand.. but why?


thanks!
Lee
 

    TheSniper

    Points: 2
    Helpful Answer Positive Rating
Re: HEX to ASM ?

Most of disassemblers were written for the basic 8051 core.
If you compare what differencies are between 8051 and, say, 8751 (8752, ...) you will find out that the latter has added timers, PCA (programmable Counter Array) et cetera and this is reflected in the Special Function Register table ie. new addresses in the SFR memory which are not part of the 8051 core.
Standard 8051 disassembler will not cover all of these added features and therefore will generate some ugly-looking assembler-text file.
So rest is in your hands: you will have to identify new addresses and translate some code lines one-by one by yourself ..
 

    TheSniper

    Points: 2
    Helpful Answer Positive Rating
Re: HEX to ASM ?

Hello
The link for the simulator t8051m (The 8051 Machine) is dead.
I have found it in http://www.jroweb.de/8051/t8051m.zip.
It works on XP with good speed of simulation.


WHY ARE YOU DIGGING OUT 5 YEAR OLD TOPIC AND ANSWERING IT??
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top