Question

Assume that the program counter (PC) contains the value Ox 20000000 What is it the largest...

Assume that the program counter (PC) contains the value Ox 20000000 What is it

the largest address that can be reached via the jump and link (jal) instruction?

a) OX200F FFFE

b) Ox2001 FFFF

c) Ox2000 01FF

d) None of the above

0 0
Add a comment Improve this question Transcribed image text
Answer #1

JAL instructions use 6 of the 32 bits to specify the opcode. This leaves 26 bits to specify the target address.
26 bits are shifted left 2 bits to get the original 28 bits, and then they are combined with the 4 most significant bits of the address of the instruction.

maximum possible value of 26 bits = 11 1111 1111 1111 1111 1111 1111
After shifting 2 bit left = 1111 1111 1111 1111 1111 1111 1100
largest address = 0010 1111 1111 1111 1111 1111 1111 1100
largest address = 0x2FFFFFFC

Answer: None of the above

Add a comment
Know the answer?
Add Answer to:
Assume that the program counter (PC) contains the value Ox 20000000 What is it the largest...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Suppose the program counter (PC) is set to 0x30002000. Is it possible to use the jump...

    Suppose the program counter (PC) is set to 0x30002000. Is it possible to use the jump (j) MIPS assembly instruction to jump directly to the instruction at 0x50003000? If yes, write the corresponding assembly instruction(s). If not, explain why and give other MIPS instruction(s) that can jump to this target address. (For this problem, assume that the instruction memory starts from 0x00000000 and goes to 0xFFFFFFFF.)

  • (A) Assume that a function has been called and the $ra is now0x00404010. The PC is...

    (A) Assume that a function has been called and the $ra is now0x00404010. The PC is currently 0x00402000. What is the address of the jal instruction that called the function? (B) Assume that a function has been called and the $ra is now 0x0040400C. The PC is currently 0x00402000. What is the address of the jal instruction that called the function? (C) A function is called using a jal instruction. The jal instruction is located at 0x00402000. The function is...

  • Assume the program counter (PC) is initially equal to n. Assume that the word length of...

    Assume the program counter (PC) is initially equal to n. Assume that the word length of the processor is 1. a)      How many fetches are required to make PC equal to m if there are no branch instructions between n and m? b)      What is the content of the instruction register (IR) when the PC’s value is n+k? Justify your answer. Why we are not using a hundred pipeline stages if anoperation can be divided up into a hundred steps,...

  • 3. Calculate the next value of the Program Counter (PC) for the following instruction: | Addr...

    3. Calculate the next value of the Program Counter (PC) for the following instruction: | Addr 002A Opcode BNZ Operand OxFA a) if Z=0. b) if Z=1.

  • For the following code show the Top of Stack content and the PC (Program counter) value...

    For the following code show the Top of Stack content and the PC (Program counter) value before and after the execution of CALL and RETURN. Step by step solution greatly appreciated since I will need to know how to do this for an exam. Thanks in advanced!   Address(Hex Instruction State of stack before code on left executes NOP CALL MOVLW OxAA 0x010 JustDolt 4 0x00120 0x00080 0x00062 Stack Pointer 0x100 JustDolt CLRF PORTA NOP NOP INCF RETURN 0 PORTA Before...

  • 9. How are Program Counter (PC), BL, BR and LR related in Procedure? Explain. 10. Assume...

    9. How are Program Counter (PC), BL, BR and LR related in Procedure? Explain. 10. Assume that register X9 had its all bits initially 0, then the following instructions are executed: NOVK X9, 255, LSLO MOVZ X9, 255, LSL 32 ADDI, X9,X9, #255 What would be the contents of X9 after execution of the above instruction? Present the result of X9 in Hexadecimal format.

  • A C program has been compiled into the Atmel AVR assembly language. The following instruction, which...

    A C program has been compiled into the Atmel AVR assembly language. The following instruction, which is located at address 0x002A, is executed: i.) What is the binary value contained in the instruction register (IR) when the instruction is executed? ii.) What is the hexadecimal value of the program counter (PC) when the instruction is executed? iii.) If register r1 = 0x40 and register r2 = 0x02 prior to executing the instruction, what are the contents of r1 and r2...

  • Solve the following problems clearly - assembly - computer organization and architecture- william stallings 1) 2)...

    Solve the following problems clearly - assembly - computer organization and architecture- william stallings 1) 2) Let the address stored in the program counter be designated by the symbol X1. The instruction stored in X1 has an address part (operand reference) X2. The operand needed to execute the instruction is stored in the memory word with address X3. An index register contains the value X4. What is the relationship between these various quantities if the addressing mode of the instruction...

  • The computer is a PDP-8. The program counter (PC) is a 400. The contents of the...

    The computer is a PDP-8. The program counter (PC) is a 400. The contents of the various memory locations are follows: Show what will be stored in the AC in each case if the content of location 400 is: a)    1152 b)    1352 c)    1552 d)    1752 1050 320 3620

  • HELP ME WITH TRUE / FALSE and Multiple choices. Fixed-width instructions make it difficult to decode...

    HELP ME WITH TRUE / FALSE and Multiple choices. Fixed-width instructions make it difficult to decode because the number of bytes each instruction is using can change. True False A register is incremented by either a byte or a word to advance to the next element in an array with Indexed Addressing. True False The "la" instruction is an example of a pseudo-instruction. True False PC-relative addressing uses the program counter as the base address. True False PC-relative addressing uses...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT