1) Jump and Jump and Link instructions have a six-bit op-code and a 26-bit jump address field. How is the full 32-bit Jump Address calculated? The jump address field is sign-extended six bits to the left. The leftmost four bits of the PC are concatenated with the jump address field, and two bits of zero are concatenated to the end of that. The leftmost six bits of the PC are concatenated with the jump address field. The jump address is ANDed with Register 0 to produce the jump address. -------------------------------------------------------------------------------- 2) How is a branch target address calculated? Sign-extend bits 15:0 of the instruction, append two bits of zeros, and add the result to the PC. Zero extend bits 15:0 of the instruction, append two bits of ones, and subtract the result from the PC. Add the immediate operand to register zero, and sign extend the result. Concatenate the leftmost 16 bits of the PC with the rightmost 16 bits of the instruction. -------------------------------------------------------------------------------- 3)How is the effective address calculated for lw and sw instructions? By converting the byte address to a word address and adding it to the PC. By putting the immediate operand into register 0. By sign-extending bits 15:0 of the instruction, and adding that to the contents of the register whose number is in bits 25:21 of the instruction. By using the shamt field of the instruction to determine where to branch.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter11: Operating Systems
Section: Chapter Questions
Problem 30VE
icon
Related questions
Question

1) Jump and Jump and Link instructions have a six-bit op-code and a 26-bit jump address field. How is the full 32-bit Jump Address calculated?

  1. The jump address field is sign-extended six bits to the left.
  2. The leftmost four bits of the PC are concatenated with the jump address field, and two bits of zero are concatenated to the end of that.
  3. The leftmost six bits of the PC are concatenated with the jump address field.
  4. The jump address is ANDed with Register 0 to produce the jump address.

--------------------------------------------------------------------------------

2) How is a branch target address calculated?

  1. Sign-extend bits 15:0 of the instruction, append two bits of zeros, and add the result to the PC.
  2. Zero extend bits 15:0 of the instruction, append two bits of ones, and subtract the result from the PC.
  3. Add the immediate operand to register zero, and sign extend the result.
  4. Concatenate the leftmost 16 bits of the PC with the rightmost 16 bits of the instruction.

--------------------------------------------------------------------------------

3)How is the effective address calculated for lw and sw instructions?

  1. By converting the byte address to a word address and adding it to the PC.
  2. By putting the immediate operand into register 0.
  3. By sign-extending bits 15:0 of the instruction, and adding that to the contents of the register whose number is in bits 25:21 of the instruction.
  4. By using the shamt field of the instruction to determine where to branch.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Embedded software development
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning