Category:MIPS Assembly: Difference between revisions

m
Line 39:
<lang mips>addiu $a0,1
jal PrintString
nop</lang>
 
Occasionally you'll be able to use the scenario like the first one to your advantage; however, you can guarantee that your code is executed correctly (albeit slightly inefficiently) if you use a <code>nop</code> after every branch or function call.
<lang mips>jal foo
nop
jal bar
nop</lang>
 
1,489

edits