This commit is contained in:
2019-03-11 19:00:28 +01:00
parent af09b2566f
commit 12d5388c54
3 changed files with 6 additions and 12 deletions

View File

@@ -20,6 +20,7 @@ section .bss
section .text
_start:
; x64 has the syscall function, in contrast to int in x86 and ARM
; See /usr/include/asm/unistd_64.h for the numbers
; Write to stdout
mov rax, 1
@@ -44,7 +45,6 @@ _start:
mov rsi, strBuffer
syscall
; Exit routine
mov rax, 60 ; 60 is the exit routine
xor rdi, rdi ; our return code (0)