Monday, December 12, 2011

Programming in binary?

I was wondering how to program something completely in binary, i already know how binary works and how to make bytes of binary, i just want to know how(if possible) to make a program completely in binary, i just want to know how to read/write variables, print text, and read text. I'm just curious, I already know C++/c/c#, and i don't want to hear anything like this "I don't know", "Use C++(or any other lang.) its easyer", or "Thats stupid.". Thanks.|||Luckly, nobody programs in banary anymore.


The lowest level of software programing is ensambler.


That consists of moving, storing and loading data from the procesor to the registers and RAM memory.





So get an idea about binary programing:





to do a simple C = B + A





you would need many bits





for exaple:





Sum instruction A adress B Adress


1101 00001010 00000101





Store instrution C Adress A Adress


1001 01010100 00001010





Its crazy to program anything in Ensambler code, imagine how hard it would be to do it in Binary. The only ones that do so are the procesor developers. Good luck to them XD.|||I dont think that you could program in binary. And if you could, it would take thousands of lines of 1s and 0s to make even a simple command.|||Here's a few links that may help you.





http://forums.windrivers.com/printthread鈥?/a>





http://scienceblogs.com/goodmath/2007/03鈥?/a>





http://www.erikoest.dk/binary.htm





Apparently it depends on the processor but i'm really not sure.

No comments:

Post a Comment