r/CodingHelp • u/ImadeapromiseMrfrod • Feb 23 '23
[Other Code] code in binary
Hello everyone, I know it may sound weird or strange as hell... But i would like to try to code in binary, I know it is super hard and not efficient, but I would like to try anyway.
Do you know where I can learn to do it ?
12
u/flooronthefour full stack web dev Feb 23 '23
Assembly exists so you don't have to 'code in binary'
https://en.wikipedia.org/wiki/Assembly_language
there are plenty of tutorials on how to count in binary.. less about actually coding in it.
13
Feb 23 '23
Well, nothing stopping OP from sitting there with a translation table and typing out the bits for each assembly instruction.
It would be ridiculous, and require even more work to produce a working executable from, but you COULD do it.
4
u/PordonB Feb 24 '23
Higher level languages also exist so you don’t have to code in assembly. Op just wants to do binary for some reason
5
5
u/atamicbomb Feb 24 '23
This would be extremely difficult on a modern CPU. If you want, you could build your own 8-bit or so CPU and write programs for it. This would be much more practical
6
u/happycrisis Feb 24 '23
Ben Eater makes a lot of videos like this that would probably go well with what OP is wanting to learn. I remember watching some of these videos while in college.
6
u/Charlito33 Developer Feb 24 '23
Help you design a tiny CPU + Learn how to code in assembly for your CPU
3
1
3
u/Askee123 Feb 24 '23
Nah not weird at all, it’s actually kind of fun to figure it out
We used this IDE in my college course on it: https://courses.missouristate.edu/kenvollmar/mars/
3
u/nightmurder01 Feb 23 '23
It is more than just the binary aspect. You have cpu/os things you must address. I had some pdf's on the subject but lost them with time. The right combo of search terms will point you to the right direction.
23
u/Essafar Feb 23 '23
If you're that motivated, just learn assembly, then learn how each instruction is converted to binary.