Home › Forums › MIPS Insider › Start from a given address.
This topic contains 1 reply, has 2 voices, and was last updated by ChrisImgtec 3 years, 5 months ago.
Can someone tell me how can i start storing from the adress 0x10008000 and change the less significant bit of it.
Assuming you want to store to the address and the address in a virtual address and not a physical address:
This codes stores 42 to the virtual address 0x10008000
li t0, 42 # load the immediate value 42 to register t0 la, t1, 0x10008000 # load address to be stored to to t1 sw, t0, t1 # store word (32 bits) from register t0 to register t1