assembly - MIPS Memory Accessing -
I'm trying to do three things using Maipis, but at the moment it does not know where to start too .
I need to write about the value of 0x10000000 at address <0101 0101 0101 0101
in memory place. Then change the 16-bit binary value in either the decimal or hex to include it as part of my code, first in a register, say in value, then store the register value at that address in memory.
So I 1010 1010 1010 1010 1010 1010 1010 1010
to the next memory location need to write a value, the 0x10000004
on. 32-bit binary value is then converted to the first upper sixteen bits Louis
the lower sixteen bits using ori
to load using, and then.
Finally, I need to add stored value is 0x10000000
and stored at 0x10000004
, and 32-bit word results the next address in the memory Please.
Any help would be extremely helpful! And code etc.
Thanks guys
Try it:
addi $ t0 $ null 0x5555 #store 0101 0101 0101 0101 $ in $ t1 sw t0 Louis $ t0 $ t1 0x1000 #store 0x10000000 0 ($ t1) Louis $ t0 0xAAAA #store 1010 1010 1010 1010 0000 0000 0000 0000 $ t0 the $ t0 0xAAAA $ t0 sw $ t0 4 ($ t1) in ori 1010 1010 1010 1010 1010 1010 1010 1010 #store values can add #load, and back LW T2 $ 0 ($ Tl) LW store $ t3 Adding $ 4 ($ t1) $ T-4 $ t2 $ t3 sw $ t-4 8 ($ t1)
I guess that's what you're doing is misleading Where you have to convert back to Talking and forth between the various targets are. As you can see above, it is not necessary.
Comments
Post a Comment