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

3 lines
203 B
Text

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.