blob: 800722a4477d9909a613109ea0d56c1a5b7e90ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
bits 64
extern _puts
section .data
message:
db 'hello xmake!', 0
section .text
global _main
_main:
push rbp
mov rbp, rsp
lea rdi, [rel message]
call _puts
xor rax, rax
pop rbp
ret
|