Gotchas: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) m (→JP (HL)) |
Puppydrum64 (talk | contribs) m (→Delay Slots) |
||
Line 79: | Line 79: | ||
=={{header|MIPS Assembly}}== |
=={{header|MIPS Assembly}}== |
||
===Delay Slots=== |
===Delay Slots=== |
||
Due to the way MIPS's instruction pipeline works, an instruction after a branch is executed during the branch, ''even if the branch is taken.'' |
Due to the way MIPS's instruction pipeline works, an instruction placed after a branch instruction is executed during the branch, ''even if the branch is taken.'' |
||
<lang mips>move $t0,$zero ;load 0 into $t0 |
<lang mips>move $t0,$zero ;load 0 into $t0 |