HEX to Basic or any workage program


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Lebanon
    Posts
    2

    Default HEX to Basic or any workage program

    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

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by assouad View Post
    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.

  3. #3
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Cool Why not write the prog again

    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.
    Regards

    Sougata

  4. #4
    Join Date
    Apr 2007
    Location
    Lebanon
    Posts
    2


    Did you find this post helpful? Yes | No

    Default reply to Hex-basic program converter

    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


    Quote Originally Posted by sougata View Post
    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.

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink

    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
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. hex file inside PBP program for bootloading slave chips
    By grzes.r in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st December 2009, 10:47
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  4. using AND as an IF statement
    By dw_pic in forum mel PIC BASIC
    Replies: 27
    Last Post: - 8th June 2006, 18:05
  5. Basic to Hex file Code size ratio
    By barkerben in forum General
    Replies: 0
    Last Post: - 5th January 2006, 15:37

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts