cx86/out.asm

21 lines
205 B
NASM
Raw Normal View History

2019-06-23 10:40:25 -05:00
.globl _main
_main:
push rbp
mov rbp,rsp
mov rax,2
push rax
mov rax,[rbp-8]
push rax
mov rax,2
pop rcx
add rax,rcx
mov [rbp-8],rax
mov rax,[rbp-8]
mov rsp,rbp
pop rbp
ret
mov rax,0
mov rsp,rbp
pop rbp
ret