Section 7.5
Review Questions
Fetch/decode/execute cycle
-
Order the four main stages of the fetch/decode/execute cycle.
Write 1 next to the first one, 2 next to the second one, etc.
_______ operand fetch
_______ instruction fetch
_______ execute
_______ opcode decode
answer...
___3___ operand fetch
___1___ instruction fetch
___4___ execute
___2___ opcode decode
-
During which stage is the PC register always incremented?
answer...
instruction fetch stage
-
What do we call data that is actually inside the instruction itself and
doesn't have to be fetched from memory after the instruction is in the IR
register?
answer...
immediate
-
Which instructions alter the PC register later in the cycle?
answer...
jump (also called called branch or goto) instructions
-
Which instructions of the CSC-1 are unconditional jumps?
answer...
JMP, CAL, RET
-
Which instructions of the CSC-1 are conditional jumps?
answer...
JZ, JC, JP, JN, JV
-
List several commonly used synonyms for jump.
answer...
branch, goto
-
List the instruction that does nothing, but merely wastes 1 cycle.
answer...
NOP
-
What good is the above instruction?
answer...
it leaves a space "open" so that a real instruction may be inserted
later without having to renumber all the other instructions
-
Which instruction puts an end to the fetch/decode/execute cycle?
answer...
HLT
-
Which instructions have no operand fetch stage?
answer...
A2S, S2A, HLT, STS, LDS, SHL, SHR, NOP, RET