mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-21 04:16:50 +08:00
24 lines
409 B
ArmAsm
24 lines
409 B
ArmAsm
.arch armv8-a
|
|
.file "f01.c"
|
|
.text
|
|
.align 2
|
|
.global func
|
|
.type func, %function
|
|
func:
|
|
.LFB0:
|
|
.cfi_startproc
|
|
sub sp, sp, #16
|
|
.cfi_def_cfa_offset 16
|
|
str x0, [sp, 8]
|
|
str x1, [sp]
|
|
ldr x1, [sp, 8]
|
|
ldr x0, [sp]
|
|
add x0, x1, x0
|
|
add sp, sp, 16
|
|
.cfi_def_cfa_offset 0
|
|
ret
|
|
.cfi_endproc
|
|
.LFE0:
|
|
.size func, .-func
|
|
.ident "GCC: (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0"
|
|
.section .note.GNU-stack,"",@progbits
|