RosettaCodeData/Task/Gotchas/MIPS-Assembly/gotchas-2.mips

4 lines
212 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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.