Chapter 3: ISA & Intro to Assembly Flashcards
For a stored program computer, the CPU…
reads instructions from memory and executes them
For a stored program computer, temporary data is stored…
in registers
For a stored program computer, the PC
(Program Counter) is a register that points at the next instruction (inside the memory) to be executed
For a stored program computer, the CCR
(Condition Code Register) contains the flag bits for the processor
Computers can execute instructions ranging from
8-bits wide to multi-bytes wide
The instruction format defines the anatomy of an instruction:
- Number of operands
- Number of bits devoted to defining each operation
- Format of each operation
The PC is
(Program Counter) points to the next instruction and is incremented after each execution
The stored-program computer operates in a
fetch/execute two-phase mode
In the stored-program computer’s fetch mode:
the next instruction is read from memory AND decoded
In the stored-program computer’s execute mode:
the instruction is interpreted and executed according to the CPU’s logic
What is pipelining?
When fetch and execute operations overlap
What are the features of a stored program computer?
- Register file (r0-ri)
- PC (Program Counter)
- IR (Instruction Register)
- MAR ( Memory Address Register)
- MBR (Memory Buffer Register)
What is the Register File?
(r0-ri) is a set of general-purpose registers that store temporary working data
A computer requires at least one ______ register
General purpose
What is the PC
(Program Counter) contains the address of the next instruction to be executed. I.e points to the location in memory containing the next instruction
What is the IR
(Instruction Register) holds the instruction most recently read from memory (the instruction currently being executed)
What is the MAR
(Memory Address Register) stores the address of the location in main memory that is currently being accessed by either a read or write operation
What is the MBR
(Memory Buffer Register) stores the data that has just been read from main memory OR data that is to be written to main memory
In the fetch-phase, the PC…
(Program Counter) supplies the address of the next instruction to be executed to the MAR (Memory Address Register) and is incremented by the size of an instruction
In the fetch-phase, the MAR…
(Memory Address Register) reads the instruction which will be sent to the MBR
In the fetch-phase, the MBR…
Receives the instruction pointed at by the MAR and sends it to the IR
In the fetch-phase, the IR…
Receives the instruction from the MBR and decodes it
In the execute-phase, operands may be…
read from the register file or transferred to the ALU (Arithmetic Logic Unit) where they are operated on
In the execute-phase, if the operation requires memory access, the address is read from the …
IR