โ Computer Organization & Architecture learning pathComputer Organization & Architecture ยท Module 3 of 10
Instruction sets and addressing
Formats, modes and RISC vs CISC.
๐ Key ideas
- An instruction has an opcode and operand fields; formats may be fixed or variable length.
- Addressing modes: immediate, register, direct, indirect, indexed, base plus offset and relative.
- RISC: few simple fixed-length instructions, load/store design, many registers (ARM, RISC-V).
- CISC: many complex, variable-length instructions (x86).
- Instruction types: data transfer, arithmetic and logic, control (branch, call), and I/O.
๐ก Real-life example: RISC is a kitchen with a few sharp knives used skilfully; CISC is a kitchen full of special gadgets, each for one job.
OpcodeField naming the operation
RISCReduced instruction set computer
CISCComplex instruction set computer
Indexed addressingAddress = base + index register