Merge pull request #478 from chinsyo/master

add nasm macho64
This commit is contained in:
Mike Donaghy 2018-07-23 04:13:46 -05:00 committed by GitHub
commit 220bf4da45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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