+ Post New Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 20 of 55
  1. #1
    Full Member level 1
    Points: 2,301, Level: 11
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    leb
    Posts
    95
    Helped
    0 / 0
    Points
    2,301
    Level
    11

    public hex to asm possible to get

    Hello.
    how possible to read or to convert an already public Hex file to asm file ,already i saw it done ,but i really dont know how
    i need to put my name at the start up if possible to help me ?
    i attach the file it goes to a pic16f876a
    thanks.

  2. #2
    Super Moderator
    Points: 81,957, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,443
    Helped
    4484 / 4484
    Points
    81,957
    Level
    69

    Re: public hex to asm possible to get

    You need a "disassembler". Many assember packages also include one. You could try the demo Oshonsoft BASIC IDE for example. Note that a dissassembled file will show you the instructions but not the program structure and it will not name variables or show comments as they may have been in the original source file as these are lost during assembly.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.


    1 members found this post helpful.

  3. #3
    Full Member level 1
    Points: 2,301, Level: 11
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    leb
    Posts
    95
    Helped
    0 / 0
    Points
    2,301
    Level
    11

    Re: public hex to asm possible to get

    than how he did it ? you need the video that show his name instead of OZ2CPU ?



  4. #4
    Super Moderator
    Points: 81,957, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,443
    Helped
    4484 / 4484
    Points
    81,957
    Level
    69

    Re: public hex to asm possible to get

    I'm sorry but I am away on vacation at the moment using a mobile phone and it can't open .rar files.

    In theory, if you disassemble a file it should be easy to see what is instructions and what is embedded text. If you edit the text then run the file through an assembler it will convert it back to a hex file with your changes in it. Note that the new hex file might be quite different to the one you started with but it should still function properly. The reason is that different assemblers and linkers may optimize the code in different ways.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.


    1 members found this post helpful.

  5. #5
    Full Member level 1
    Points: 2,301, Level: 11
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    leb
    Posts
    95
    Helped
    0 / 0
    Points
    2,301
    Level
    11

    Re: public hex to asm possible to get

    Thank you ,As you helped me before i hope when you are back from vacation you can do it for me i need to put
    REVE FM at start up thanks



    •   AltAdvertisement

        
       

  6. #6
    Advanced Member level 2
    Points: 5,282, Level: 17
    Achievements:
    7 years registered
    ZASto's Avatar
    Join Date
    Jan 2008
    Location
    Messy Corner, 44°47'31.56"N, 20°28'9.16"E
    Posts
    636
    Helped
    131 / 131
    Points
    5,282
    Level
    17

    Re: public hex to asm possible to get

    Here you have .asm file.
    Now you can do your changes.

    milliwat 104 beta.zip
    Make no mistake between my personality and my attitude.
    My personality is who I am.
    My attitude depends on who you are.


    1 members found this post helpful.

  7. #7
    Advanced Member level 5
    Points: 17,759, Level: 32
    Achievements:
    7 years registered

    Join Date
    Nov 2012
    Posts
    3,242
    Helped
    807 / 807
    Points
    17,759
    Level
    32

    Re: public hex to asm possible to get

    i need to put my name at the start up if possible to help me ?
    Say it displays "XYZABC" at the start. You want that string to change "ABRACA", right?

    It is easy if the new string is smaller than the old string (no of chars) and they display ASCII (char set).

    You open any hex editor and look for the string XYZABC and replace that with ABRACA.

    If the program after modifying gives a checksum error, you need to add a few NOP at the end (this is left as an exercise).

    If the current string is longer than the older string, but there is sufficient RAM left, you need to store the new string at some free area.

    Next you need to identify the calling routine: here some skill is needed. You need to change the address from the old string to the new string.


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  8. #8
    Full Member level 1
    Points: 2,301, Level: 11
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    leb
    Posts
    95
    Helped
    0 / 0
    Points
    2,301
    Level
    11

    Re: public hex to asm possible to get

    let me test and reply thanks .

    - - - Updated - - -

    @Zasto can you lead me where i have to read to change the reading i need to put

    REVE FM

    and compile it with mplab



    •   AltAdvertisement

        
       

  9. #9
    Advanced Member level 2
    Points: 5,282, Level: 17
    Achievements:
    7 years registered
    ZASto's Avatar
    Join Date
    Jan 2008
    Location
    Messy Corner, 44°47'31.56"N, 20°28'9.16"E
    Posts
    636
    Helped
    131 / 131
    Points
    5,282
    Level
    17

    Re: public hex to asm possible to get

    @c_mitra: No text is visible in given hex.

    @radium98: You have .asm, read it and modify per your needs. I have no intention to reverse engineer the code further. You were advised to search for any kind of disassembler for PIC uC. Use your logic to find in the .asm file where you have to make changes. That way you will also LEARN assembler.
    Make no mistake between my personality and my attitude.
    My personality is who I am.
    My attitude depends on who you are.


    1 members found this post helpful.

  10. #10
    Super Moderator
    Points: 81,957, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,443
    Helped
    4484 / 4484
    Points
    81,957
    Level
    69

    Re: public hex to asm possible to get

    I would be very surprised if the text was directly readable. Look for the ASCII codes of the original text to locate it. You can then substitute the characters with the ASCII code of your new text.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.


    1 members found this post helpful.

  11. #11
    Full Member level 1
    Points: 2,301, Level: 11
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    leb
    Posts
    95
    Helped
    0 / 0
    Points
    2,301
    Level
    11

    Re: public hex to asm possible to get

    Sorry for mistaken ,or understood,my problem is what software do i need steps to read the asm file and make change ,is it only a hex editor eg. NEO ? so i can learn



  12. #12
    Super Moderator
    Points: 81,957, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,443
    Helped
    4484 / 4484
    Points
    81,957
    Level
    69

    Re: public hex to asm possible to get

    An asm file is plain text so use any text editor you wish. The problem is not the type of file, it is how to recognize what is inside it.
    When creating the original source code, the author would have given meaningful names (labels) to the routines and variables in it. For example if they wrote routine to update a display they might call it 'show_me' and from there on they would use the instruction 'show_me' to update it with new characters. However, an assembler or compiler has no need to know the routine names or the names of variables because it translates them to real memory addresses that the target processor understands. The resulting hex file contains the addresses, not the names so a degree of manual 'decoding' is needed to follow the program flow and work out which addresses hold instructions and which hold data.
    What you should look for is consecutive addresses holding the hex values corresponding to the ASCII characters in the original text and edit those.

    Question: have you tried contacting the original author, they may be willing to give you the source code.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



  13. #13
    Advanced Member level 5
    Points: 17,759, Level: 32
    Achievements:
    7 years registered

    Join Date
    Nov 2012
    Posts
    3,242
    Helped
    807 / 807
    Points
    17,759
    Level
    32

    Re: public hex to asm possible to get

    I would be very surprised if the text was directly readable. Look for the ASCII codes of the original text to locate it. You can then substitute the characters with the ASCII code of your new text.
    You are right. But I use hexedit (great for editing hex files) and it shows both ASCII and hex side by side. For hexcodes that do not have a printable representation, it just shows a dot (period).

    You can edit binary (hex files) with vim too but the learning curve is rather steep.

    My personal opinion is that most of the disassemblers do not work for most modern compilers: it is impossible to figure out the compiler directives that have been used in the process of compilation. If you recompile the disassembler output (hoping that it will cleanly compile), it will rarely get the working program.

    Something like the chinese whispers game children play.



  14. #14
    Advanced Member level 2
    Points: 5,282, Level: 17
    Achievements:
    7 years registered
    ZASto's Avatar
    Join Date
    Jan 2008
    Location
    Messy Corner, 44°47'31.56"N, 20°28'9.16"E
    Posts
    636
    Helped
    131 / 131
    Points
    5,282
    Level
    17

    Re: public hex to asm possible to get

    @c_mitra: open hex from first post and you will see no text. In disassembled, quite visible :)
    Click image for larger version. 

Name:	Screenshot from 2019-11-04 14-36-03.png 
Views:	3 
Size:	328.9 KB 
ID:	156347

    Click image for larger version. 

Name:	Screenshot from 2019-11-04 14-38-08.png 
Views:	3 
Size:	160.5 KB 
ID:	156348
    Make no mistake between my personality and my attitude.
    My personality is who I am.
    My attitude depends on who you are.



  15. #15
    Full Member level 1
    Points: 2,301, Level: 11
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    leb
    Posts
    95
    Helped
    0 / 0
    Points
    2,301
    Level
    11

    Re: public hex to asm possible to get

    First thank you all for the really clarifiyng ways and discussion to me .In the time i have pm the author Thomas Scherrer but he does not reply it was a long time but today i think i have found the source code and everything ,is it now possible to someone to put my name ?if yes to upload the code



  16. #16
    Full Member level 1
    Points: 2,301, Level: 11
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    leb
    Posts
    95
    Helped
    0 / 0
    Points
    2,301
    Level
    11

    Re: public hex to asm possible to get

    Hi again
    i tried and failed , so i will attach the source file maybe someone can give me a try and help ,thanks .
    // change this to your own callsign and name if you like.
    const char TEXT6[] = "REVE FM LEBANON";

    [moderator action: links removed]
    Last edited by BradtheRad; 7th November 2019 at 07:18. Reason: Removed links to external server site



  17. #17
    Advanced Member level 5
    Points: 17,759, Level: 32
    Achievements:
    7 years registered

    Join Date
    Nov 2012
    Posts
    3,242
    Helped
    807 / 807
    Points
    17,759
    Level
    32

    Re: public hex to asm possible to get

    // change this to your own callsign and name if you like.
    I cannot download either files.



  18. #18
    Full Member level 1
    Points: 2,301, Level: 11
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    leb
    Posts
    95
    Helped
    0 / 0
    Points
    2,301
    Level
    11

    Re: public hex to asm possible to get

    here it is again uploaded in the forum source file



  19. #19
    Advanced Member level 5
    Points: 17,759, Level: 32
    Achievements:
    7 years registered

    Join Date
    Nov 2012
    Posts
    3,242
    Helped
    807 / 807
    Points
    17,759
    Level
    32

    Re: public hex to asm possible to get

    here it is again uploaded in the forum source file
    The default text strings are present in tex.h file; change them as appropriate and recompile.



  20. #20
    Full Member level 1
    Points: 2,301, Level: 11
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    leb
    Posts
    95
    Helped
    0 / 0
    Points
    2,301
    Level
    11

    Re: public hex to asm possible to get

    recompile not working with me did you see the photo



    •   AltAdvertisement

        
       

--[[ ]]--