mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-21 00:26:46 +08:00
15 lines
349 B
ArmAsm
15 lines
349 B
ArmAsm
/* A program to demonstrate the order in which registers are
|
|
pushed onto the stack by stp and str. See text.
|
|
*/
|
|
.text
|
|
.p2align 2
|
|
.global main
|
|
|
|
main: stp xzr, x30, [sp, -16]!
|
|
mov x0, 0xF
|
|
str x0, [sp, -16]!
|
|
ldp xzr, x30, [sp], 16
|
|
ret
|
|
|
|
.end
|
|
|