scrap-is-not-scrap/scrap.asm

18 lines
350 B
NASM

[BITS 64]
push rbp
mov rbp,rsp
sub rsp,0x30
mov QWORD [rbp-0x18],rdi
mov DWORD [rbp-0x1c],esi
mov QWORD [rbp-0x28],rdx
mov rax,QWORD [rbp-0x28]
mov QWORD [rbp-0x8],rax
mov ecx,DWORD [rbp-0x1c]
mov rdx,QWORD [rbp-0x18]
mov rax,QWORD [rbp-0x8]
mov esi,ecx
mov rdi,rdx
call rax
ret