Skip to content

Commit

Permalink
Adding some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
anderscarling committed Aug 23, 2011
1 parent 3461387 commit a395ee8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions hello_world.asm
Expand Up @@ -16,7 +16,7 @@ start:
push dword 1 ; stdout push dword 1 ; stdout
call kernel call kernel
add esp, 12 add esp, 12

push dword 0 push dword 0
mov eax, 1 mov eax, 1 ; SYS_exit
call kernel call kernel
6 changes: 3 additions & 3 deletions hello_world64.asm
Expand Up @@ -11,11 +11,11 @@ kernel:


start: start:
mov rax, 0x2000004 ; SYS_write mov rax, 0x2000004 ; SYS_write
mov rdi, 1 mov rdi, 1 ; stdout
mov rsi, msg mov rsi, msg
mov rdx, len mov rdx, len
call kernel call kernel

mov rax, 0x2000001 mov rax, 0x2000001 ; SYS_exit
mov rdi, 0 mov rdi, 0
call kernel call kernel

0 comments on commit a395ee8

Please sign in to comment.