Thread: writing programme through hex in bin files

  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    5

    Lightbulb writing programme through hex in bin files

    as starter of programming

    dear members how is it possible to write a programme through hex how to search break points and also the resembling prorogrammes of the particular address

  2. #2
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    What exactly are you trying to do?
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  3. #3
    Registered User
    Join Date
    Aug 2011
    Posts
    5
    the main i wants to write the programme through hex in binary

  4. #4
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Note: I don't know why you would want to, but:

    Then you need to learn assembly. Once you learn assembly, you can lookup the hex values of the opcodes and manually translate the code into hex and/or binary if you want to. Note, this will only create a flat binary file or com file like they used to be called in DOS. To make a .exe file you would have to look up the applicable format (PE for windows) and then hardcode that as well.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  5. #5
    Registered User
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    733
    Nah, it is better to make changes directly to the disk. I recommend taking magnetic needle and scratching the surface of your HDD, good luck.

  6. #6
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by kmdv View Post
    Nah, it is better to make changes directly to the disk. I recommend taking magnetic needle and scratching the surface of your HDD, good luck.
    Why not try making the needle too ?

  7. #7
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by manasij7479 View Post
    Why not try making the needle too ?
    haha....Now where is my hammer?
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  8. #8
    Registered User
    Join Date
    Aug 2011
    Posts
    5

    Lightbulb confusion to be reduced now

    you all still not getting my points wat i exctly means


    Free File Hosting & Video Downloads, Free File Sharing, Online Friends Network - Ziddu Dump.rar.html

    i have read microprcessor with the help of jtag seagger from which i able to get data in 4 mb bin format file which i have uploaded

    after opening it i only found several addresses and hex values

    so i want to read all the programmes at the corresponding addresses through hex values
    wat to do so now

  9. #9
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Perhaps you could try a well-known file sharing service.
    Because I've lost interest after several minutes of "Our Server Is too Busy,Please Try Again . "

    Also, when using technical terms, you really need to work on the spelling, otherwise we either get the wrong idea or have no idea what you're talking about.
    Like what is "seagger".

    It seems to me you've just grabbed the ROM code from some device, and now you want to disassemble it.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  10. #10
    Registered User
    Join Date
    Aug 2011
    Posts
    5

    Thumbs up again uploaded on different server

    segger is a jtag device which can easily read the microprocessor of the device

    through the connecting pin outs of the processor through jtag

    now i have uploaded on other server

    2601Dump.bin

    the data which i read it comes in .bin format which i uploaded

    i opened in bin opening tool there it is giving only hex values on other part several address

    how i be able to read the programmes which are written in these corresponding addresses with the help of hex values


    now i can say that all can understand my problems

  11. #11
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Ok, so a slight modification to my original suggestion:
    1. Learn assembly
    2. Look up the hexcodes for the opcodes of microprocessor in question
    3. convert the hexcodes to assembly

    Or, if you can find a disassembler for the microprocessor in question, use that. You will still have to learn assembly though.

    This should be in the tech forum.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  12. #12
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by scorpionssarhan View Post
    how i be able to read the programmes which are written in these corresponding addresses with the help of hex values
    You need a DISASSEMBLER for that particular microprocessor's instruction set... and about the only place you're going to get that is from the uC manufactuer themselves... if it even exists.

    Reverse engineering isn't as easy as you hoped ... is it?

  13. #13
    Registered User
    Join Date
    Aug 2011
    Posts
    5
    yaaa exactly i mean reverse engineering so regarding this in this forum anyone has ideas wats the basics i have to work and also guide the best tools which help me on this field

  14. #14
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    You mean so we can help you steal proprietary microcode from uC operated devices?

    Ummm... count me out.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing to other files
    By Liz320 in forum C Programming
    Replies: 19
    Last Post: 05-26-2009, 06:41 PM
  2. Writing to .DAT files
    By Xinco in forum C++ Programming
    Replies: 7
    Last Post: 11-25-2006, 02:53 PM
  3. Writing in files that are in use?
    By Yuri in forum C++ Programming
    Replies: 10
    Last Post: 11-16-2005, 09:25 AM
  4. Writing to files
    By earth_angel in forum C++ Programming
    Replies: 13
    Last Post: 06-21-2005, 11:26 AM
  5. Writing files to a CD
    By SyntaxBubble in forum Windows Programming
    Replies: 1
    Last Post: 04-16-2003, 04:43 PM