blob: 104bf719c7bd92adfdd589bbec0ae20341d6f905 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
global main
extern printf
section .data
msg db "Hello, x86_64 Assembly!", 10, 0
section .text
main:
sub rsp, 8
lea rdi, [rel msg]
call printf wrt ..plt
mov eax, 0
add rsp, 8
ret
|