RosettaCodeData/Task/Gotchas/MIPS-Assembly/gotchas-2.mips
2023-07-01 13:44:08 -04:00

3 lines
212 B
Text

la $a0,0xDEADBEEF
lw $t0,($a0) ;load the 32-bit value at memory address 0xDEADBEEF
addiu $t0,5 ;5 is actually added BEFORE the register has gotten its new value from the memory load above. It will be clobbered.