I'm having trouble understanding how to load and store specific addresses within MIPS. I need to take the address of an item and store it within a word in another item. How do I load the address of the item as a word so it can be stored as a word? And how would I go about loading the word and turning it into an address? Is this possible? I need to be able to link items like a doubly linked list where each item points to the next.
相关问题
- Translate the following machine language code (0x2
- In MIPS, what's the difference between signed
- Stalling or bubble in MIPS
- What are shadow registers in MIPS and how are they
- Dynamic vs Static instruction count
相关文章
- Why are memory addresses incremented by 4 in MIPS?
- Why doesn't there exists a subi opcode for MIP
- Assembly PC Relative Addressing Mode
- Get values of specific bits in a byte
- MIPS - compare input string to one stored in memor
- Need help in adding more functionality to MIPS Sin
- How do I implement multiplication and division in
- Reading an integer into a local variable in MIPS
Sure, use
la
to get the address of a label, andlw
/sw
to load/store that address from/to somewhere.An example: