I have searched all over the internet for programming in Binary and the only responses people seem willing to give are: "Why would you want to program in Binary?" "It's stupid, use assembly." "There's nothing you could possibly get out of it, there's no point in learning."
If you are one of these people, I appreciate your opinion, but it does not answer my question.
While I don't intend on actually trying to program in Binary my reasons for knowing are:
I have an interest in knowing the Binary instructions behind the assembly commands.
I am designing an experiment where random binary instructions are generated. I want them to be valid binary commands and I want to be able to interpret what those commands would do if run.
With that said, does anyone know any resource where one could learn Binary programming?
In general there is a one-to-one mapping between assembly instructions and machine code (what you're calling binary). You can find these mappings in the instruction set architecture documentation for whatever machine you care about. Popular examples:
You'll be able to find a similar document for whichever architecture you want to work with. You can use the information in manuals like these to either to decode the machine instructions for a given program and identify how they were generated from the assembly source, or perhaps to hand-assemble your own program if you'd like.
Here's what I did to learn binary: 1. open command prompt and type "debug" as the command.
please note that to program in actual binary you'll need a hex editor. Here's the one I use:
http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm
another idea that I do to learn more complex languages (like c++) is do the same as assembly but open it up in the hex editor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With