commit
220bf4da45
17
a/assembler_nasm_macho64.asm
Normal file
17
a/assembler_nasm_macho64.asm
Normal 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
|
Loading…
x
Reference in New Issue
Block a user