Binary Code Notes
Binary Code Notes
Definition:
Binary code is a system of representing data and instructions using binary digits
(bits), which are 0s and 1s.
It forms the fundamental language of computers, where all data is processed and
stored in binary format.
Binary System:
Uses base-2 numbering system (0 and 1) to represent numeric values and characters.
Each digit in a binary number is called a bit (binary digit).
Representation:
Numeric Values: Binary numbers represent integers using powers of 2 (e.g., 1011 in
binary is 1×2^3 + 0×2^2 + 1×2^1 + 1×2^0 = 11 in decimal).
Characters: Binary code can represent text characters using character encoding
schemes like ASCII (American Standard Code for Information Interchange) or Unicode.
Instructions: Binary instructions (machine language) direct computer operations at
the lowest level.
Conversion:
Computing: All data and instructions within a computer system are ultimately
represented and processed in binary.
Digital Communication: Binary is used for transmitting data over networks and
storing data on digital devices.
Programming: Machine language instructions and low-level programming languages
directly manipulate binary code.
Binary Operations:
AND, OR, NOT: Basic logical operations used in binary arithmetic and Boolean
algebra.
Shift and Rotate: Move bits left or right in a binary number.
Bit Depth:
Refers to the number of bits used to represent each pixel in an image or sample in
audio (e.g., 8-bit, 16-bit, 32-bit).
Binary and Computing: