Return multiple values: Difference between revisions
m
→{{header|MIPS Assembly}}
No edit summary |
Puppydrum64 (talk | contribs) |
||
Line 1,967:
{{works with|min|0.19.6}}
<lang min>(over over / '* dip) :muldiv</lang>
=={{header|MIPS Assembly}}==
The registers <code>$v0</code> and <code>$v1</code> are intended for return values. Technically you can use any register you want, but the calling conventions use <code>$v0</code> and <code>$v1</code>.
<lang mips>sum:
add $v0,$a0,$a1
jr ra
nop ;branch delay slot</lang>
=={{header|Nemerle}}==
|