The Language of the CPU - Understanding How Computers Execute Commands
A computer instruction is a binary code that directs the computer to perform a specific operation. These instructions are fundamental to how a computer processes information, specifying a sequence of micro-operations for the computer to execute.
■ Mode Bit (I) | ■ Opcode | ■ Address
Instructions can refer to memory locations in different ways:
Format: I (Mode) bit + 3-bit Opcode (000-110) + 12-bit address
xxx - Represent 12-bit address for Memory
Format: 0 (I bit) + 111 (Opcode bit) + 12-bit operation
Format: 1 (I bit) + 111 (Opcode bit) + 12-bit I/O operation
Pseudo-instructions provide information to the assembler but do not translate into machine code themselves. They control the assembly process and define program structure.
Computer instructions are executed through a sequence of subcycles:
Binary codes (0s and 1s) that the computer directly understands and executes.
Symbolic program using operation codes and addresses instead of binary values.