2. Which of the following are components of a machine's state (value at the beginning of each instruction cycle determines what happens next)? Mark all that apply. IR Memory PC Registers ALU 3. Which of the following instruction sequences result in R[A] having the value FFFF? Mark all that apply. 7AFF 7B08 5AAB 6AAB 7AFF 7A01 2A0A 7B01 2B0A 7B01 2A0B 4. Suppose that the following sequence of instructions is loaded into memory locations 10-16: 10: 7C0A 11: 7101 12: 7201 13: 1222 14: 2CC1 15: DC13 16: 0000 and you set the PC to 10 and press RUN. Give the decimal number represented by the contents of R[2] when the machine halts.
Added by Paul W.
Close
Step 1
### Question 2: Components of a Machine's State ** Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 83 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
In this exercise, we examine in detail how an instruction is executed in a single-cycle datapath. Problems in this exercise refer to the clock cycle in which the processor fetches the following instruction word: 1000110010100110000000000011000. Assume that the data memory is all zeros and that the processor registers have the following values at the beginning of the cycle in which the above instruction word is fetched: a. What are the outputs of the sign-extend and the jump Shift-Left-2 (near the top of Figure 4.24) for this instruction word? (2 points) b. What are the values of ALU control unit's inputs (ALUOp and Instruction operation) for this instruction? (2 points) c. For the ALU and the two add units, what are their data input values? (2 points) d. What are the values of all inputs for the "Registers" unit? (2 points)
Sri K.
Suppose the memory cells at addresses 00 through 05 in the machine described in Appendix C contain the following bit patterns: $$\begin{array}{cc} \text { Address } & \text { Contents } \\ 00 & 12 \\ 01 & 02 \\ 02 & 32 \\ 03 & 42 \\ 04 & \mathrm{C} 0 \\ 05 & 00 \end{array}$$ When answering the following questions, assume that the machine starts with its program counter equal to 00 a. Translate the instructions that are executed into English. b. What bit pattern is in the memory cell at address 42 when the machine halts? c. What bit pattern is in the program counter when the machine halts?
The content of PC in the basic computer is 8C2, the content of AC is F381, the content of memory at address 8C2 is 82B5, the content of memory at address 2B5 is 0961, and the content of memory at address 961 is 9A38. (all numbers in hexadecimal) 1) What is the instruction that will be fetched and executed next? 2) Give the contents of registers PC, AR, DR, AC, and IR in hexadecimal and the value of I at the end of the instruction cycle.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD