Stack: Difference between revisions
m
→{{header|ARM Assembly}}: formatting
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) m (→{{header|ARM Assembly}}: formatting) |
||
Line 705:
Pushing and popping multiple values is very similar to [[68000 Assembly]].
<lang ARM Assembly>STMFD sp!,{r0-r12,lr} ;push r0 thru r12 and the link register
LDMFD sp!,{r0-r12,pc} ;pop r0 thru r12, and the value that was in the link register is put into the program counter.
;This acts as a pop and return command all-in-one. (Most programs use bx lr to return.)</lang>
=={{header|Arturo}}==
|