archivesOfToyLang/tshunhue/AssemblyLanguage/example.s

14 lines
170 B
ArmAsm
Raw Normal View History

2023-09-30 22:30:08 +08:00
global main
section .text
main:
push rbp
mov rbp, rsp
mov rax,0x1
mov [rbp-8],rax
mov rax,0x5
mov [rbp-16],rax
add rax,[rbp-8]
mov rsp,rbp
pop rbp
ret