简体   繁体   中英

MIPS lb sw instructions

Lets assume that register $t1 has the address 0x10000000 with a value of 0xff000011 and register $t2 has the address 0x10000010 with a value of 0x55555555. The datapath works in "Little Endian" system. We have the next instructions:

lb $t0,0($t1)

sw $t0,0($t2)

what will be the value at address 0x10000010?

It's a very easy question, but I have some trouble understanding how load/store instructions work.

Assuming word-sized values by the given addresses, the answer is 0x00000011. Does that help? Did you read your MIPS manual or whatever resource you have or can find?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM