Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text
- .global _start
- _start:
- // put some values into registers r0-r2
- mov r0, #10
- mov r1, #11
- mov r2, #12
- str r0, [sp, #4]! //push r0-r2 onto the stack
- str r1, [sp, #4]!
- str r2, [sp, #4]!
- ldr r2, [sp], #4 //pop r2-r0 onto the stack
- ldr r1, [sp], #4
- ldr r0, [sp], #4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement