Chapter 4: Processor Fundamentals Flashcards
How are interrupts handled
An interrupt flag is raised in the (interrupt) register
At the end of the current FE cycle // at the start of the next FE cycle
The system checks the interrupt register for higher priority interrupts
than current process
If true, it stores the current contents of the registers on the stack
The appropriate interrupt service routine (ISR) for the key press is
called
The input data from the keyboard is processed
The contents of the registers are restored from the stack
… and control is passed back to previous process
What are the special registers
CIR
IX
MAR
MDR
PC
Sr
What does the CIR do
Stores the current instruction being decoded and executed
What does the MAR do
Stores the address of the memory location being read from or written to
What does the PC do
Stores the address where the next instruction to be read can be found
What does the MDR do
Stores data that has just been read from memory or which is about to be written to memory
What is the FE Cycle
MAR <— [PC]
PC <— [PC] +1
MDR <—[[MAR]]
CIR <—[MDR]