+ Post New Thread
Page 3 of 3 FirstFirst 1 2 3
Results 41 to 48 of 48
  1. #41
    Advanced Member level 5
    Points: 17,510, Level: 32
    Achievements:
    7 years registered

    Join Date
    Nov 2012
    Posts
    3,201
    Helped
    793 / 793
    Points
    17,510
    Level
    32

    Re: public hex to asm possible to get

    c_mitra it does not work same only shows a dot,and i have re-tried last both files
    The source code files you have posted are different but compiles ok.

    I shall try to edit the hex file...



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

    Join Date
    Nov 2012
    Posts
    3,201
    Helped
    793 / 793
    Points
    17,510
    Level
    32

    Re: public hex to asm possible to get

    .Can you try the last one mw104.zip .
    Yes, I have finally modified the mw104.zip (this appears to be a newer file). The corrected file is attached here:final.zip

    You need to unzip and upload the final.hex - fortunately the code was not protected for modification.

    I have modified only the first line and you should now see REVE FM LEBANON displayed.

    If this works, I shall outline the steps on how to edit the text in the hex file.

    Good luck.


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  3. #43
    Member level 5
    Points: 2,281, Level: 11
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    leb
    Posts
    93
    Helped
    0 / 0
    Points
    2,281
    Level
    11

    Re: public hex to asm possible to get

    Thanks c_mitra my freind but i need for tomorrow to reply .
    regards.



  4. #44
    Member level 5
    Points: 2,281, Level: 11
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    leb
    Posts
    93
    Helped
    0 / 0
    Points
    2,281
    Level
    11

    Re: public hex to asm possible to get

    I can say C_mitra , we get what we need finally ,but there is minor error in the name LEBANON .



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

    Join Date
    Nov 2012
    Posts
    3,201
    Helped
    793 / 793
    Points
    17,510
    Level
    32

    Re: public hex to asm possible to get

    but there is minor error in the name LEBANON .
    It is my fault; I did not double check. I should have.

    Now that it is working, I can tell you how I did edit the hex file OR I can do the correction.

    I did edit the file in vim; it has context color and is not difficult.

    There may be other editors, but the hex file is a text file (this is intel format file; hex bytes are written in ASCII). There is a specific format for each line of text.

    I shall edit them and send you again.

    - - - Updated - - -

    I shall edit them and send you again.
    The error corrected file is here: final1.zip

    This is the last attempt! I am getting bored with editing!


    1 members found this post helpful.

  6. #46
    Member level 5
    Points: 2,281, Level: 11
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    leb
    Posts
    93
    Helped
    0 / 0
    Points
    2,281
    Level
    11

    Re: public hex to asm possible to get

    hi no please dont get bored ,yes i know it is boring but i need to learn a bit ,i hvae downloaded the vim software ,but i need the steps to ,if i want to change anything later thanks .i have teamviwer ?
    I can tell you how I did edit the hex file OR I can do the correction.

    - - - Updated - - -

    final1.zip it is not working only dots

    - - - Updated - - -

    34 46 33 34 35 41 33 34 33 32 33 34 34 33 33 34 37 32 0D 0A 3A 31 30 31 36 35 41 30 30 35 30 33 34 35 35 33 34 32 30 33 34 34 34 33 34 34 39 33 34 34 37 33 34 34 39 33 34 35 37 33 34 41 37 0D 0A 3A 31 30 31 36 36 41 30 30 34 31 33 34 35 34 33 34 35 34 33 34 34 44 33 34 34 35 33 34 35 34 33 34 34 35 33 34 35 32 33 34 36 41 0D 0A 3A 31 30 31 36 37 41 30 30 30 30 33 34 34 46 33 34 35 41 33 34 33 32 33 34 34 33 33 34 35 30 33 34 35 35 33 34 32 30 33 34 44 44 0D 0A 3A 31 30 31 36 38 41 30 30 34 34 33 34 34 39 33 34 34 37 33 34 34 39 33 34 35 37 33 34 34 31 33 34 35 34 33 34 35 34 33 34 35 33 0D 0A 3A 31 30 31 36 39 41 30 30 34 44 33 34 34 35 33 34 35 34 33 34 34 35 33 34 35 32 33 34 30 30 33 34 35 36 33 34 36 35 33 34 36 38
    is this where have you edit ?



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

    Join Date
    Nov 2012
    Posts
    3,201
    Helped
    793 / 793
    Points
    17,510
    Level
    32

    Re: public hex to asm possible to get

    Sorry, I must have made some mistake in the editing. I am outlining the steps to be followed with some screenshots.

    1. Start with the last working file, final.zip, extract it to get final.hex. This file has some mistakes and we wish to change /correct that.

    2. I use vim for this; when I use vim final.hex, I get the output. (pic below).

    Click image for larger version. 

Name:	Screenshot from 2019-11-19 09-51-02.png 
Views:	3 
Size:	62.2 KB 
ID:	156565

    This is the hex image in intel format. Each line is one record; first two chars (one byte) tells the number of bytes in the record. Next four chars (two bytes) are the address. Next 16 bytes (32 chars) are the data. Last two chars are the checksum for this record.

    The color coding has been done by vim.

    When we change a byte, we must also recalculate the checksum.

    Let us see how to locate the string. First we search for the char L:

    We type in vim /4C to look for the char L. But there may be some that are not part of the data string. So we cannot change at random.

    We type :%s/4C//gn in vim. We see that the char L occurs 50 times. So we go for another char. This time we search for "!"
    In vim I type /21. We see where they are present.

    Finally we locate them in address line 165A. Look up an ascii table ans see that the ascii codes for LEBANON are 4C 45 42 41 4E 4F 4E

    (see next post)

    - - - Updated - - -

    Searching is messy because they may not occur on the same line. ALso note that each char is separated by hex 34.

    Search /4C344534 and you will that it is presence only once ... (it should be present twice but because of the spelling error)

    Now we know that we have typed LF (by mistake) - so we search for /4C344634.

    We reach the line that needs correction. Address line 168A.

    in this line change 46 to 45. Also change 21 (code for !) to 41 (code for A). That is all.

    Wait, we have made some changes to the file and the checksum is now to be corrected.

    Open a calculator in hex mode. And add the following: 10 +16 +8A +20 +34 +4C+ 34 +45 +34 +42 +34 +41 +34 +4E +34+ 4F +34 +4E +34

    (number of bytes + address two bytes + data bytes (sixteen in this case): in this case 46F. We take twos complement and take the last byte: 91.

    We must put the correct checksum in line 168A (the last byte is the checksum). We replace B0 with 91.

    Now you save and exit. (command is in vim).

    That is all, load and run!

    - - - Updated - - -

    In the screenshot, vim is saying [dos] on the status line; by mistake I opened the file without the -b option. You should open the hex file in binary mode (i.e., vim -b final.hex)- otherwise other stuff may be written in the file.

    After the edit, the original file (you kept a copy, right?) and final file must have he same size.

    Also a diff orig.file chang.file should show only one line (because we have modified only one line).

    I hope I have made the basics clear.


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  8. #48
    Member level 5
    Points: 2,281, Level: 11
    Achievements:
    7 years registered

    Join Date
    Jul 2009
    Location
    leb
    Posts
    93
    Helped
    0 / 0
    Points
    2,281
    Level
    11

    Re: public hex to asm possible to get

    Hi i knew that you Helped me a lot lot ,and this thread began to be long and maybe boring for others ,and you put lots of energie and work and effort and time ,but thoses they are hard to me to understand because i dont have that basic ,i will try to learn what you did but i am sure it would took a lot of time and maybe i will not achieve my goal.so i would save thoses instructions guide for a to do ,OKAY i should try myself thoses simple instruction to learn a bit ,and if i will not succssed because i am not so familiar ,then i will ask to corrrect ,please keep an eye from moment to moment
    regards .
    thanks edaboard.
    Last edited by radium98; Today at 07:54. Reason: try myself



    •   AltAdvertisement

        
       

--[[ ]]--