Lecture 2 Flashcards
What does the PC contain?
The address of the next instruction to be executed in main memory.
What does the IR contain?
The instruction currently being processed.
What does the MAR contain?
The address of the data in memory to be retrieved or written.
What does the MBR contain?
The data word.
What do the I/O AR and I/O BR contain?
Address and data word to be retrieved or written to I/O space.
What are registers in the CPU? (6)
PC (program counter), IR (instruction register), MAR, MBR, I/O AR and I/O BR.
What is an I/O module?
Consists of at least one buffer which provides space for data words or instructions. Each buffer location has unique address.
Describe Instruction Cycle (4 phases, two main).
Start, fetch next instruction, decide and execute instruction, halt.
Describe fetch cycle (3 parts).
Processor fetches instruction from memory location located in PC.
PC is incremented.
Fetched instruction loaded into IR.
Describe execute cycle, 4 instruction types.
Processor to memory (cpu to memory).
Processor to i/o (cpu to i/o module).
Data processing (arithmetic or logical operation on data).
Control (alteration of sequence of operations ie Jump).
How many bits is an instruction or data word?
16 bits long or 4 hex digits.
What is an op code? Where is it?
The left most hex digit is the op code. The address is the three right most hex digits.
Which computer functions are interrupts vital for? (3)
i/o management, error handling and multi-tasking.
What are the four classes of program interrupts?
Program (generated by instruction execution - division by zero etc).
Timer (generated by internal timer).
I/O
Hardware Failure.
What does ISR stand for?
Interrupt service routine. Also interrupt handler.