|  | |
11-29-2008, 02:50 PM
|
#11 (permalink)
|
Software Developer Join Date: Mar 2006 Location: Columbus, OH Posts: 569
| Re: Writing a program in binary Quote:
You know how cool it would be to say "I programmed Hello World in binary"?
Where I come from, it would be *very* cool.
| In some assembly languages, there is a one-to-one mapping between assembly instructions and machine code instructions. In other words, each binary instruction is given a simple, quasi-English name. The reason for that is so the programmer does not have to remember all the bits. Machine code is intended only to be read by machines. Everything else is for humans. Quote: |
If he was able to find one of the much older computers (pre 80's) he could take a pop at it but it just isnt going to happen on modern hardware.
| He could do it with today's hardware. There's nothing present in more modern hardware to prevent it. |
| |
11-29-2008, 02:56 PM
|
#12 (permalink)
|
Join Date: Feb 2007 Posts: 6,346
| Re: Writing a program in binary No but modern hardware is vastly more complex that is what would prevent him from doing it.
__________________ I am not here for long I am deploying soon so please don't expect anything long winded. |
| |
11-29-2008, 06:35 PM
|
#13 (permalink)
|
Join Date: Jul 2008 Location: Kansas City Posts: 2,266
| Re: Writing a program in binary I'm with Saxon and a few others on this. While I'm sure you could find a program to emulate an environment in which binary will work and run as if it were a separate cmd line program there would be no purpose other than novelty. If you want to program something that will actually work and be useful use a tool like C++, VB, or Java and their compiling languages / packages.
There would be no way within todays environments to create a program that would really do anything. If you could it would take freaking forever to code it in binary.
I agree it would be kind of neat, but personally I would just go and write something that you could use and would be functional in VB or C++. And it doesn't have to be something huge and corporate, you could program something to keep track of your budget, grades, and a multitude of other things that would make every day life a little easier. |
| |
12-02-2008, 08:37 PM
|
#14 (permalink)
|
True Techie Join Date: Dec 2008 Location: Rx Counter Posts: 143
| Re: Writing a program in binary This chat reminds me of the days of teletype machines and punch cards those days are long gone for a reason! Just stick to low level languages like Assembly, you wont cry if you do :-P |
| |
12-08-2008, 05:40 PM
|
#15 (permalink)
|
Electrical Systems Design Join Date: Jun 2008 Location: Maine, USA Posts: 1,611
| Re: Writing a program in binary Quote:
Originally Posted by zedman3d Round here you'd get bashed. | :laughing: LOL |
| |
12-12-2008, 12:33 AM
|
#16 (permalink)
|
Newb Techie Join Date: Dec 2008 Posts: 27
| Re: Writing a program in binary I don't know any programming languages, well I know a little bit of some languages.
I used to have a friend who was around when computers were first being used by libraries. She worked in a library and no one knew how to use whatever machine it was that used the punch cards, so she learned how to do it because she figured she could play with it and not be disturbed. I'm not sure if she was using binary for that, but whatever she was doing she said it was frustrating.
I don't think even if given the opportunity I would want to learn binary writing. But if you want to at least be given some idea of what it was like, go find an oldy to talk to. Younger programmers probably have had fleeting thoughts about binary only to remember, oh hey, what is the point? Hehe.
I know how to convert binary to base 10, but I have no clue how to use it to make a computer do anything hehe. |
| |
12-12-2008, 09:32 PM
|
#17 (permalink)
|
Electrical Systems Design Join Date: Jun 2008 Location: Maine, USA Posts: 1,611
| Re: Writing a program in binary That's what people who compose assembly languages do, is use hex and all that, in order for the computer to ultimately write machine code, but they do it through the language and not directly entering 1's and 0's. The computer does the translation via the assembly language code. Imagine how exciting that would be if you actually entered every single binary bit of Microsoft Office for example!!!  :freak::laughing:
Last edited by oldskool; 12-12-2008 at 09:35 PM.
|
| |
12-31-2008, 12:34 PM
|
#18 (permalink)
|
Newb Techie Join Date: Dec 2008 Posts: 3
| Re: Writing a program in binary hey aetherh4cker, hello world in binary is, Code: 11101011000011000100100001100101011011000110110001101111001000000111011101101111011100100110110001100100001001001011101000000010000000011011010000001001110011010010000110110100001011001110110100100001
And in hex, Code: EB 0C 48 65 6C 6C 6F 20 77 6F 72 6C 64 24 BA 02 01 B4 09 CD 21 B4 4C CD 21
Find a way to save this as hello.com and run it from a command prompt. |
| |
01-01-2009, 05:46 AM
|
#19 (permalink)
|
HONK if you route packets Join Date: Sep 2003 Posts: 4,664
| Re: Writing a program in binary Quote:
Originally Posted by 0x123 hey aetherh4cker, hello world in binary is, Code: 11101011000011000100100001100101011011000110110001101111001000000111011101101111011100100110110001100100001001001011101000000010000000011011010000001001110011010010000110110100001011001110110100100001
And in hex, Code: EB 0C 48 65 6C 6C 6F 20 77 6F 72 6C 64 24 BA 02 01 B4 09 CD 21 B4 4C CD 21
Find a way to save this as hello.com and run it from a command prompt. | Do you even have any idea what you are talking about?
__________________ A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP |
| |
01-01-2009, 01:25 PM
|
#20 (permalink)
|
Join Date: Sep 2005 Location: Toronto, Canada Posts: 5,423
| Re: Writing a program in binary He does somewhat. If you write and save the hex file properly it can run in some compilers. The command prompt part won't do anything. The binary will do absolutely nothing too. |
| |  | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | |