for the jump, wouldnt you need to access memory to find the address for the jump taarget, or the alu to calculate the address
Added by Mariano H.
Step 1
In a typical CPU architecture, a jump instruction is used to change the flow of execution by directing the program to a different address in memory. Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 93 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
The following questions examine the limitations of the jump instruction, j. Give your answer in the number of instructions relative to the jump instruction. (a) In the worst case, how far can the jump instruction (j) jump forward (i.e., to higher addresses)? (The worst case is when the jump instruction cannot jump far.) Explain using words and examples, as needed. (b) In the best case, how far can the jump instruction (j) jump forward? (The best case is when the jump instruction can jump the farthest.) Explain. (c) In the worst case, how far can the jump instruction (j) jump backward (to lower addresses)? Explain. (d) In the best case, how far can the jump instruction (j) jump backward? Explain.
Akash M.
Develop an access formula for looking up the location of a value in a three-dimensional array of Java doubles, assuming the array's contents are stored in memory in row major order. Assume the array's name is M, and that the three indices are named i, j, k. You can also assume that each index has a range from 0 to Imax, 0 to Jmax, 0 to Kmax, respectively. Finally, assume that you have a function called addr() that returns the starting address of an array when you pass in the name of the array (e.g. addr(M) returns the starting location of M in memory). Make sure your formula is as specific as it can be -- use numbers rather than constant names not listed in this description.
Memory Control Unit 9 10 11 12 13 PC 4 5 CIR Accumulator MAR LOAD 11 ADD 12 STORE 13 100 101 102 103 MDR ALU
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD