Two Steps:: Instruction Cycle y
Two Steps:: Instruction Cycle y
Fetch F t h Execute
Fetch Cycle y Program Counter (PC) holds address of next instruction to fetch Processor fetches instruction from memory l location pointed to b PC i i d by C Increment PC
Unless told otherwise
Instruction loaded into Instruction Register (IR) Processor interprets instruction and performs required actions
Processor I/O
Data transfer between CPU and I/O module
Data processing p g
Some arithmetic or logical operation on data
Control
Alteration of sequence of operations e g jump e.g.
Combination of above
Interrupts p Mechanism by which other modules (e.g. I/O) may interrupt normal sequence of processing Program
e.g. overflow, division by zero
Timer
Generated by internal processor timer y p Used in pre-emptive multi-tasking
I/O
from I/O controller
Hardware failure
e.g. memory parity error
Define priorities
Low priority i t L i it interrupts can be interrupted by t b i t t db higher priority interrupts When higher priority interrupt has been When processed, processor returns to previous interrupt