add nasm macho64

This commit is contained in:
Chinsyo 2018-07-23 17:09:55 +08:00
parent 940e99a80d
commit cd0faed06d

View File

@ -0,0 +1,17 @@
global start
section .text
start:
mov rax, 0x2000004 ; write
mov rdi, 1 ; stdout
mov rsi, msg
mov rdx, msg.len
syscall
mov rax, 0x2000001 ; exit
mov rdi, 0
syscall
section .data
msg: db "Hello, World!", 10
.len: equ $ - msg