The Instruction Cycle Flashcards
What are the three subcategories of the instruction cycle?
Fetch
Execute
Interrupt
Describe FETCH
Gets next instruction
Describe EXECUTE
interpret opode and perform operation
Describe INTERRUPT
When interrupt occurs, save currently running process and service interrupt.
What is indirect cycle?
The use of additional memory accesses to obtain operands
What are the 5 general steps for instruction flow
PC has next instruction
MAR has that address
Result at address placed on data bus and moved to MBR
Result moves to IR
PC incremented
What does the control do in the instruction cycle?
It checks the IR. If the IR requires indirect addressing, then an indirect addressing cycle is performed.
What happens for interrupt cycle?
Contents of PC saved
New addesses loaded to PC
Fetch continues as with normal instruction cycle