PDA

View Full Version : HEX to Basic or any workage program



assouad
- 1st April 2007, 21:02
I have lost my source code, is it possible to reconstruct a source code, in basic or C language, understandable from an Hex file?
I know that we could reconstruct it to assembly, but since there is an interrupt and goto function, it become hard to follow the program, If I want to modify any thing on it.
if any body could help, I would appreciate it.
thanks
Assouad

skimask
- 2nd April 2007, 04:05
I have lost my source code, is it possible to reconstruct a source code, in basic or C language, understandable from an Hex file?
I know that we could reconstruct it to assembly, but since there is an interrupt and goto function, it become hard to follow the program, If I want to modify any thing on it.
if any body could help, I would appreciate it.
thanks
Assouad

Yep, sure is, piece of cake. Just print out the disassembly and convert it over to PBP.

sougata
- 2nd April 2007, 13:50
Hi,

Since it is your own prog why not write and test it again. What I don't get is you have written your own program, lost it and then ask whether it can be converted to PBP or C ? Did you forget in which compiler you wrote it ? What is it all about may be someone can write it from scratch for you for $$$ ? I am in India and India is cheaper in terms of BPO.

assouad
- 3rd April 2007, 06:53
Hi
thanks for your reply, I have the previous and and next version of the program, you may say I coudl use the newer version, but if I do, I have to have the end customer retest all the process, it is very delicate situation, it is involve in precision measurement, 0.1% for A/D and D/A, and some condition, I have compared tha thex which was named ; 51127Sepu to 51129Sepu, I found some changes, this program was written in 2005 November 27 and 29,
my main objective is to keep the main program as it is, and do the modification on its last part which deal with calibration.
a friend suggested to print the dissembler, then converter it to PBH, is thta possible?

thank you, as I mention, it is importnat to keep the original program and be able to modify some part of it.
regards
Assouad



Hi,

Since it is your own prog why not write and test it again. What I don't get is you have written your own program, lost it and then ask whether it can be converted to PBP or C ? Did you forget in which compiler you wrote it ? What is it all about may be someone can write it from scratch for you for $$$ ? I am in India and India is cheaper in terms of BPO.

Acetronics2
- 3rd April 2007, 14:38
Hi, Assouad

The main problem when disassembling an hex program ... is the labels an aliases.

IF you really own a version of the source ... no problem to re-affect aliases and follow your program ... assembler is not so difficult !!!

And moreover if you only want to modify a part ( cal. section ... if I understood ) ... a "goto - goto" can easily be added at the end of your decompiled lines, just to bypass the unwanted sector or add missing lines in the cal section, if too small .

I've often done that with programs found on the web ( screen translations or ouput devices changes ) ... but only for my private use ...!!!

Alain