1.

Solve : how to rum binary codes??

Answer»

Hello.
How to run Binary codes?
I know i should place 'em in something like Notepad
but do not know how to run it.
Example-Code:
my name "Milad" in Binary will be:
1001101 1101001 1101100 1100001 1100100
I can place it in a Notepad but, don't know how to see the
result (Milad).
i want write those 0s & 1s, then see Milad.
How, please?
Thank you.Easiest would be a binary to ascii interpreter in which a program reads in a text file that is in binary and then performs the binary to ascii conversion which is not very hard to do.

Do you know how to program in any specific computer languages so I can show you an example in a language you are familiar with?

There is also this here to avoid reinventing the wheel if you dont want to go through making one of your own creation: http://sourceforge.net/projects/ttbconvert/That isn't really "binary code" - It's just ASCII text encoded into binary. You would just need to convert that back to ASCII using a program. There are loads of "Binary to ASCII" converters online, you can even work it out on paper with relative ease.

Actual binary computer code is very low level and while it can be run it requires a deep understanding of how the CPU and memory.etc operate, running it on the raw CPU is very hard to do as you would at that point be pretty much writing an operating system, however there are CPU simulators you can play about with. While it is possible to write this code in binary there is no reason to, the lowest level of code a human would write would be assembly code which is then compiled line-by-line into binary.

That said, it's not an easy task and unless you have or want to learn a very low level view of how the CPU operates, your time would be much better spent learning and using a HIGH level programming language.Good point Camerongray... I assumed that it wasnt low level because of the reference to notepad, and just as you stated it also is not binary code its just the ASCII encoded to Binary.hi. Thank you so much for your advise.
I'm actually a beginner In programming.
I STUDY C language.

I've written a program which gets the binary codes
and convert 'em into ASCII codes.
you know:
binary: 1001101
DECIMAL: 77
result: M
but using Array [?], i could reach WORD.

the truth Is that, I didn't yet compile it. Because I dont access
my computer now.
anyway, it isn't difficult. I have written instructions in my phone and
will compile it as soon as i kiss my computer again.Yes an array would be the best method and either use a space delimiter or set a timing for 7 bit groups to be read out and decoded back to ASCII. The space delimiter with error checking is probably the best method as first shown below. The second method below in which you end up with a smaller text file with binary is not as good, but could be given an error correction routine to avoid getting tripped up, but is more complex to correct for a missing bit or an EXTRA bit etc.

1001101 1001101 with space delimiter to register as MM, and space delimiter used as an end bit read indicator so that it reads in only 7 bits, performs the conversion to ASCII, and then concatenates the next valid binary 7 bit read in of array, until EOF concatenating the print to display the ASCII text result. (( This here would be better in that you can look at the binary text file with your eyes and see were corruption is within a group of 7 bits, as well as if there was corruption in the file of say binary "Hello World" , because of the space delimiter you know that the corruption is contained only within 1 CHARACTER place and it doesnt trip up the rest of the binary decode to ASCII, so if there was a missing bit and your not testing for 7 bits to be read you could end up with "Hello Wo7ld" instead of "Hello World" because the binary for the ( r ) binary place holder is only = decimal of 55 instead of 114. As stated it would be best to go this route and test for 7 bit reads and if its any greater or any lesser than 7 bits print to display a dash - or asterisk * to indicate that there was a failed binary 7 bit conversion for each character place that is broken/corrupt. So instead of getting "Hello Wo7ld" you would instead get "Hello Wo*ld" or "Hello Wo-ld" which stands out as a failed binary read for a single character. )

- OR -

10011011001101 with reading in every 7 bits so that 1001101 is the first group of 7 bits Array ( 0 to 6 ) and then the next group of 7 bits is Array (7 to 13) for the other 1001101, and so on to EOF of the text file containing the ASCII that is in Binary format, and for every group of 7 bits decoded back to ASCII text it concatenates to a single line the output to the display.
(( The only problem I can see with this is that if you had an extra bit or are missing a bit, its completely corrupt from where it gets tripped up with the corruption... so if you had "Hello World" and the corruption of an extra bit or missing a bit in the text file that contains binary, you may see "Hello Wo}à╝♥ instead or lesser ASCII displayed if you missing many bits in the file. ))Thank you so much.
I will keep them in mind.Glad to help!

BTW: Looking back at this after posting earlier I realized that my example of "Hello Wo}à╝♥ is only an example of corruption and actually is in error, by which because you are using only 7 bits for a maximum of 128, you are confined within a readin of 0 to 127 and so you would instead have corruption that shows within the ASCII range of 0 to 127, and so the corruption could appear as "Hello Wof2Cj as confined within the 0-127 range of 7 bits. In order to have extended ASCII showing "Hello Wo}à╝♥ you would need to have 8 bits!



Discussion

No Comment Found