answersLogoWhite

0

What is binary code format?

Updated: 10/3/2023
User Avatar

Wiki User

9y ago

Best Answer

There is no single format. Binary code is merely the representation of numeric information encoded in binary. Humans use the symbols 0 and 1 to symbolise the binary digits (bits), but computers have no notion of a number let alone the intelligence to interpret the difference between a 1 or a 0. However, binary information can be encoded in many different ways.

In the early days of computers, the computer was programmed through a front panel of switches. The computer had several modes of operation which could be configured by turning these individual switches on or off. Once a configuration was set it could be committed to the computer's memory, which effectively copied the state of these switches to a much larger set of switches laid out in a large array, where each element in the array represented a separate instruction. Once all instructions were stored, they could be executed by copying them one after the other to the instruction register, another series of switches that actually set the mode of operation. By rapidly switching from one mode to the next, the computer was able execute a sequence of very simple instructions extremely quickly.

In order to encode these instructions so that the programmer could configure the input switches correctly, the instructions were encoded in binary notation using 1s and 0s, where a 1 meant the switch was on while a 0 meant the switch was off. The early computers didn't have many instructions -- they were only capable of a handful of very simple operations -- so there were very few switches. With 4 switches we can configure the machine in exactly 16 different ways:

0000 0001 0010 0011

0100 0101 0110 0111

1000 1001 1010 1011

1100 1101 1110 1111

Each additional switch doubles the number of configurations thus if the computer has 17 to 32 instructions we would use at least 5 switches while 33 to 64 instructions would require at least 6 switches, and so on.

Each binary digit (bit) represents an increasing power of 2 where the least significant bit represents 2^0, followed by 2^1, 2^2, 2^3 and so on. This is no different to decimal notation where each digit represents an increasing power of 10 (10^0, 10^1, 10^2, 10^3 and so on). Knowing this we can easily convert from binary to decimal, such that 1101 means (from least significant to most significant digit):

1 = 1x(2^0) = 1x1 = 1

0 = 0x(2^1) = 0x2 = 0

1 = 1x(2^2) = 1x4 = 4

1 = 1x(2^3) = 1x8 = 8

1+0+4+8 = 13

Thus 1101 is the binary equivalent of 13 decimal.

If we say that 1101 represents a specific machine instruction, then we really mean instruction 13. What that instruction means to the machine depends on the machine itself -- it is a machine code and machine codes are always machine-dependent (only machines of the same type will understand what instruction 13 means). Since it represents a specific machine instruction then we call it an operation code, or an opcode for short.

Opcode 13 may require operands (one or more inputs). For instance, if opcode 13 were one of the machine's move instructions, it will need two operands: a source and a destination. These must also be encoded in binary and these codes will either represent a memory address or a CPU register, depending on the operand types expected by the opcode.

CPU registers are a bank of switches that are used to specify the inputs and outputs required by the instruction register (which is also a CPU register). Two special registers are used to keep track of the current and the next instruction. Normally, the next instruction is the one that immediately follows the current instruction in memory. However, if the current instruction is a jump instruction, the encoding in the next instruction register may change, thus allowing the computer to a make decision and possibly jump to the appropriate instruction code when the next instruction becomes the current instruction.

Of course, today, we do not program machines through a series of front panel switches. But just as we can encode the state of these switches from a numeric binary notation, we can also convert to any other binary encoding. On magnetic media we use the flux transitions between positively and negatively charged particle clusters upon a ferromagnetic material. These transitions can be "read" by a computer and decoded into a series of alternating electrical impulses which can then be encoded within an array of accumulators with high or low electrical charges each of which can be maintained by a transistor that can also independently switch the state of the accumulator.

There are no actual numbers inside a computer, of course, they are all merely the encoded representations of numbers that must be encoded, decoded and shunted from one location to another according to the machine's current opcode. For humans it is obviously easier to record the machine's "state" using numeric binary values, but this is merely an abstraction. The machine has no more concept of a number than it does of a what a human is. It is a machine -- it has no actual intelligence. It simply has a number of modes that we can configure, nothing more and nothing less. But because its native "language" is binary, we use numeric binary notation as a human convenience. It allows us to instruct the computer in the only language it knows -- including the instructions necessary to translate binary encoded information into information we can understand, whether it is decimal numbers, written words, a picture, a movie or a sound.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

ASCII

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is binary code format?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Do open source operating systems use binary code as a base like WindowsTM?

All operating systems have to use binary code in order to operate. The difference between open-source operating systems and Windows is that you can see the code before it is converted into a binary format.


What is the difference between binary code and extendible binary code?

There is no such thing as extendible (sic) binary code. However, there are two known variants: eXtendable Binary (XB) is a universal file format used for serialising binary trees. Extended Binary Coded Decimal Interchange Code (EBCDIC) was an 8-bit character encoding used by IBM in the 1960's. It's a non-standard encoding that was used by IBM prior to them switching to ASCII peripherals.


What is the binary code for 01001011?

That IS the binary code.


The code established so that all computers used the same binary code is called?

ASCII, the American Standard Code for Information Interchange, is the most commonly used way to represent character and numerical information in a seven-bit binary format, for values from 0 to 127. Most modern computer systems tend to use ASCII values of 128 and above for extended character sets. EBCDIC, the Extended Binary Coded Decimal Interface Code, is an eight-bit binary format used by various IBM mainframe operating systems.


How will be the format of information recived by gps?

The radio signal from the GPS satellites is a binary code . . . it is numbers composed of only "ones" and "zeros".


What is 36 in binary code?

100100 36 = 32 + 4 in binary format: 32 = 100000 (25) (1 with 5 0s) 4 = 100 (22) (1 with 2 0s) 100100 is the answer


What is -33 in binary code?

00100001 is the binary code for 33


What is the binary code for 53?

00110101 is the binary code for 53


Why is information stored in some kind of binary format in computers?

Information is stored in some kind of binary format in computers because computer memory is made out of binary digits (bits).


How do you convert image to binary format?

To convert image to binary, you just have to convert image to binary. Hope this helps.


Who discovered binary code?

Jamesgates discovered binary code instringtheory


How do you convert binary code to text code and text to binary?

You can are ASCII-tabellen. For converting binary to text