GATE Computer ScienceHardGATE CS (PYQ pattern)
A MIPS-like J instruction has a 26-bit field holding a word address; the target is formed from the top 4 bits of PC + 4, followed by the 26-bit field, followed by 00. A J at address 0x0FFFFFFC has field value 0x0000100. What is the jump target?
- A. 0x00000400
- B. 0x10000400
- C. 0x10000100
- D. 0x00000100
Correct answer: B. 0x10000400
PC + 4 = 0x10000000, so the top 4 bits are 0001, not the 0000 of the J's own address. Field << 2 = 0x400. Target = 0x10000000 | 0x400 = 0x10000400. Using the J's own address bits gives 0x00000400; forgetting the shift gives 0x10000100. A J in the last word of a 256 MB region can only reach the next region.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A processor services interrupts with nested priorities: a higher-priority interrupt (larger number) preempts a running lower-priority…
- Radix-4 Booth recoding of the 8-bit two's-complement multiplier 01101110 (value 110) produces four digits in {−2, −1, 0, +1, +2}. Which…
- Three interrupt handlers have no overhead: A (priority 1, arrives at 0 µs, runs 10 µs), B (priority 3, arrives at 4 µs, runs 5 µs) and C…
- A cache access takes 2 ns on a hit; a miss takes 22 ns in total (hierarchical model). The average access time is 5 ns. What is the miss…
- In an n-bit two's-complement adder, which pair (carry into the MSB, carry out of the MSB) signals signed overflow?
- The logic of a processor takes 48 ns per instruction unpipelined. Pipelining into k stages gives a cycle time of 48/k + 3 ns (latch…