CP1300 Fetch-Decode-Execute

Last modified Monday, 06-Nov-2000 22:06:00 UTC.
(Jason's Notes)

Self assessments


Tutorial Questions


Exam style questions

  1. What are the basic stages of the fetch-execute cycle?
  2. List 2 registers that are critical to the fetch-execute cycle.
  3. Which computer components are important in the fetch-execute cycle? For each, state the reasons why.
  4. Can any computer component become involved in the fetch-execute cycle?
  5. Describe what happens when an instruction is fetched.
  6. Describe what happens while an instruction is decoded.
  7. Describe what happens during the execution of an instruction.
  8. Given the following abstract computer, manually perform the fetch-execute cycle to run the program already loaded into main memory. Keep track of the state of the registers while the program is running.

    The decodes are:

    9999 - stop
    1231 - if R0 > 0 PC = PC - 3
    1356 - R0 = R1
    2546 - R2 = R0 + R1
    5647 - R0 = 4
    6435 - R1 = R0 - 1