Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Gotchas/MIPS-Assembly/gotchas-1.mips
Normal file
3
Task/Gotchas/MIPS-Assembly/gotchas-1.mips
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
move $t0,$zero ;load 0 into $t0
|
||||
beqz $t0,myLabel ;branch if $t0 equals 0
|
||||
addiu $t0,1 ;add 1 to $t0. This happens during the branch, even though the program counter never reaches this instruction.
|
||||
3
Task/Gotchas/MIPS-Assembly/gotchas-2.mips
Normal file
3
Task/Gotchas/MIPS-Assembly/gotchas-2.mips
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue