Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 21st April 2008, 01:11 AM   (permalink)
Smile question ???????

hi for ALL

is there program convert from HEX to C or from ASM to C
jownstar is offline  
Old 21st April 2008, 01:23 AM   (permalink)
Default

I think there is, but it's only useful in very very special cases since the code generated would be unreadable by a human. Also, they're not free.

You're better off running through the assembler line by line.

Otherwise people would have all their code stolen if it was that easy.
__________________
NO, that picture isn't me so don't bother asking if we can be friends.
dknguyen is offline  
Old 21st April 2008, 01:39 AM   (permalink)
Default

thanks , I hope have one ,
jownstar is offline  
Old 21st April 2008, 01:56 AM   (permalink)
Default

Yes I agree completely with Dknguyen. It would be easier to do the assembler.
Krumlink is offline  
Old 21st April 2008, 06:32 AM   (permalink)
Default

Quote:
Originally Posted by jownstar
hi for ALL

is there program convert from HEX to C or from ASM to C
Yes, they are in a class of software called "decompilers". You need one which can handle the specific target architecture and language variant in which you're interested. However, you need to be pretty darn good with hex, assembler, and C to decide which one you need, how to use it, and how to read the output. There is a good chance that a decompilation suite for the specific job you have in mind does not exist, although a generic one might get you close.

What exactly are you trying to do? It would probably be simpler just to write your own code.


Torben
Torben is offline  
Old 22nd April 2008, 02:01 AM   (permalink)
Default

sorry ,I was busy...........
thanks ALL...
I have some hex files for projects (pic microcontroller).........

and I like use c language more ASM language, I know

c language more ASM language too .

However c language easier from ASM .....

I now use DISASSEMBLER but I want program convert

from hex to c or asm to c

what I do ???
jownstar is offline  
Old 22nd April 2008, 02:12 AM   (permalink)
Default

Quote:
Originally Posted by jownstar
what I do ???
Not much you can do, except ask the maker for their source code. If you're trying to steal their code, then they're probably going to say no. How did you get hex files that you have no source code to?
__________________
NO, that picture isn't me so don't bother asking if we can be friends.
dknguyen is offline  
Old 22nd April 2008, 02:46 AM   (permalink)
Default

Quote:
Originally Posted by dknguyen
Not much you can do, except ask the maker for their source code. If you're trying to steal their code, then they're probably going to say no. How did you get hex files that you have no source code to?

well I will am truthful , there electronic magazine in

my country put hex files only for projects , this

projects work form good, and I want analysis this

program line by line .
hope help me !!!!
jownstar is offline  
Old 22nd April 2008, 02:52 AM   (permalink)
Default

Quote:
Originally Posted by jownstar
well I will am truthful , there electronic magazine in

my country put hex files only for projects , this

projects work form good, and I want analysis this

program line by line .
hope help me !!!!
What is your country? Can you give a link to the magazine website? Did you download the HEX file from the website or did it come on CD with the magazine?


Torben
Torben is offline  
Old 22nd April 2008, 02:56 AM   (permalink)
Default

Well you're going to have to learn assembly, I've never seen a hex file converted (disassembled) to anything except uncommented assembly. To make matters worse if the original was in C or some other high level language the disassembly version will be cryptic.

Sounds like you're trying to figure out this, why not just build it with the same PIC?
http://www.ivica-novakovic.from.hr/IrOn-Off-eng.htm
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 22nd April 2008 at 03:00 AM.
blueroomelectronics is offline  
Old 22nd April 2008, 03:02 AM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
Well you're going to have to learn assembly, I've never seen a hex file converted (disassembled) to anything except uncommented assembly. To make matters worse if the original was in C or some other high level language the disassembly version will be cryptic.
This is true. The disassembler (or decompiler) has to create its own symbol names etc. and unless you are handy with assembly it'll look like digital porridge.

Reverse-engineering is something which takes practice. I used to do it quite a bit on Intel boxes but I'm rusty. I used lots of notes on paper to keep track of what was going on. I've never tried it from a HEX file.


Torben
Torben is offline  
Old 22nd April 2008, 03:41 AM   (permalink)
Default

well I will Learn Assembly

thanks ALL
jownstar is offline  
Old 22nd April 2008, 03:43 AM   (permalink)
Default

Quote:
Originally Posted by jownstar
well I will Learn Assemble

thanks ALL
Why are you mad at us? We didn't make the world the way it is.

Some things are hard. That's why not everybody does them.


Torben
Torben is offline  
Old 22nd April 2008, 03:44 AM   (permalink)
Default

Quote:
Originally Posted by jownstar
mad:
Hehe. Yeah, it sucks.
__________________
NO, that picture isn't me so don't bother asking if we can be friends.
dknguyen is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Capacitor Charge/Discharge question ThermalRunaway General Electronics Chat 25 12th August 2008 05:48 PM
Basic Transmission question CamNuge General Electronics Chat 2 8th March 2006 11:08 PM
High speed data logging question cubdh23 Micro Controllers 3 19th August 2004 12:54 PM
Data Logging question with high speed!!!! cubdh23 General Electronics Chat 4 16th August 2004 07:33 PM
PBX question waqar Electronic Projects Design/Ideas/Reviews 0 30th March 2003 07:21 PM



All times are GMT. The time now is 07:02 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker