Is there ever a situation when ASM just isn't low-level enough? After all, assembler still has to be assembled. Has anyone ever written a program in binary? I'm just wondering if there's ever a theoretical reason why doing so might be practical or even if it's possible on modern computers.
True, people almost never actually write binary. Instead, they code in a high- or low-level language which is closer to a natural language and easier to reason about. But by the time their program has been rendered down to something a piece of hardware can understand, there's nothing left but binary.
Binary codes are essential because without them, computers will not understand your instructions in programming. Meaning, even if the computer allows you to view text, images, or videos, they cannot understand any of these, and the only way for them to do it is through binary codes.
Uses of Binary Language Computers understand machine language, but to write strings upon strings of 1s and 0s code is tedious and time consuming. Programmers write instructions to a computer in high level languages such as Python, FORTRAN and Java. These instructions are user friendly but cannot be read by computers.
A binary code represents text, computer processor instructions, or any other data using a two-symbol system. The two-symbol system used is often "0" and "1" from the binary number system. The binary code assigns a pattern of binary digits, also known as bits, to each character, instruction, etc.
Back in 1997 I used to do this on TI-83 calculators when I was at school and didn't have access to a link cable.
Normally at that time, you would just write an assembly program, use TASM to build it, and then transfer it to the calculator via a link cable. But if I was bored and wanted to put something small together, I had memorized enough of the byte instructions to be able to type them in for certain things.
Side Note Of course this was fun if there was a bug in the program, because it could easily corrupt the entire calculator's RAM. So then you would have to hold down the ON button and/or remove the AAA batteries and hope that was enough to restore the calc (sans any programs that were in memory). Otherwise to do a hard reset, you would have to use a screwdriver to unscrew a special backup battery. Good times...
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