Skip to content

Commit

Permalink
Merge pull request #385 from Shark64/master
Browse files Browse the repository at this point in the history
Remove duplicate nasm version, minor fixes to the linux64-nasm
  • Loading branch information
leachim6 committed Feb 19, 2017
2 parents 56b71ab + a51ab9d commit 5a1e8f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
5 changes: 3 additions & 2 deletions a/assembler_nasm_linux64.asm
Expand Up @@ -3,14 +3,15 @@ section .text

_start: ;tell linker entry point

xor eax,eax ; eax:=0
xor eax,eax ;eax:=0
lea edx,[rax+len] ;message length
mov al,1 ;system call number (sys_write)
mov esi,msg ;message to write
mov edi,eax ;file descriptor (stdout)
syscall ;call kernel
mov al,60 ;system call number (sys_exit)
xor edi, edi ;return 0 (EXIT_SUCCESS)
lea eax,[rdi+60] ;system call number (sys_exit)
syscall ;call kernel

section .rodata
Expand Down
18 changes: 0 additions & 18 deletions l/linux-x86.nasm

This file was deleted.

0 comments on commit 5a1e8f7

Please sign in to comment.