What does CISC stand for?
Complex Instruction Set Computer
What does RISC stand for?
Reduced Instruction Set Computer
Why did CISC instruction sets become large and complex?
To simplify compilers and improve performance
What are the advantages of smaller CISC programs?
They use less memory and require fewer instruction bytes to fetch; more instructions fit in cache
What characterises CISC instructions?
Powerful, complex instructions with complicated decoding
What memory model does CISC arithmetic often use?
Register–memory architecture
What characterises RISC instructions?
Simple, uniform instructions typically executed in one cycle
What memory model does RISC arithmetic use?
Load/store architecture
Why CISC instruction sets became large
To simplify compilers
To improve performance
Advantages of smaller CISC programs
Use less memory
Fewer instruction bytes to fetch
More instructions fit in cache
CISC characteristics
Powerful multi‑step instructions
Complex decoding
Arithmetic may access memory directly
Fewer general‑purpose registers
RISC characteristics
Simple, uniform instructions
Usually one cycle per instruction
Load/store architecture
More general‑purpose registers
RISC trade‑offs
More instructions needed
More memory required
Compiler must do more work
What are the four stages of the fetch–decode–execute cycle?
Fetch, increment PC, decode, execute
What are data processing instructions used for?
Arithmetic and logical operations
What are data storage instructions used for?
Moving data into or out of registers or memory
What do control instructions do?
Change program flow by altering the program counter
What do I/O instructions do?
Transfer data between CPU/memory and external devices
What is an unconditional branch?
A branch that always changes the PC
What is a conditional branch?
A branch taken only if a condition is true
What is the purpose of flags?
To record ALU results for conditional branching
What does the Zero Flag (ZF) indicate?
The result of an operation is zero
What does the Sign Flag (SF) indicate?
The sign of the result (positive or negative)
What does the Carry Flag (CF) indicate?
A carry out occurred in an arithmetic operation