Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
MIPS machins - limitation of 2 ^ 16 locations?
MIPS machins control flow instrauctions like beq, allows only 2^16 locations in the address space , to get over this limitation , what did the designer think>?
2 Answers
- John HLv 59 years agoFavorite Answer
If you looked at the instruction format of the branch you would have your answer.
There is only space for 16-bits of displacement in the instruction. Since the value is in 4-byte words, you have a range of 2^17-1 to -2^17 from the current location. If you need to branch farther, you branch to a jr jump instruction, where the destination is contained in a register. For the common case, you save yourself having to load the destination into a register, which is less efficient. It's called optimizing for the common case.
- James BondLv 79 years ago
Does the argument for beq is address or offset?
I think it is offset. If first arguments are true then current PC + this offset is the next instruction to be executed. If it is, the address space what you are referring is not 2^16