Binary Codes
Every microprocessor architecture has a specific set of instructions that are embedded into the processor itself and each instruction correspond to a specific opcode. Data and instructions in memory are represented in an address format.
Find out how are keyboard letters represented as binary data.
Computers don't actually work with 1s and 0s; they are simply human-readable notations for the binary representations that a computer actually works with. We refer to them as binary digits or simply bits. Inside a computer, bits are represented in a variety of ways, including high or low voltage within a capacitor, positively or negatively charged particles upon a magnetic disk or tape, long and short scores burned into an optical disk. Anything that can switch between two possible states and maintain that state (temporarily or permanently) can be used to encode binary information. We use 1s and 0s because it is the most convenient notation for binary arithmetic and logic operations, precisely mimicking the operations within the machine. We also use other notations that are more concise, including hexadecimal notation (where each hex digit represents 4 binary digits) and octal (where each octal digit represents 3 binary digits). The computer doesn't understand these notations any more than it knows the difference between a 1 and 0, but we can program it to convert all of these human notations into binary data (machine code) that it can understand. We can also program it to convert decimal notation to binary, which is convenient when we're working with real numbers such as currency, length, temperature, speed, etc.
A program is a sequence of instructions for a computer. Programs are written to tell a computer how to do a specific task.
Every decimal number can be represented by a binary number - and conversely.
They are simply convenient notations. In fact, in binary, 10 is two.
Use inline assembly instructions. Then compile your C++ program to produce the machine code.
Most assemblers support binary, decimal, hexadecimal and octal notations.
1111 in binary is 15 in decimal. 1111 in decimal is 10001010111‬ in binary.
0
1010 is the number 10 represented in binary form.