Skip to content
Browse files

Adding some comments

  • Loading branch information...
1 parent 3461387 commit a395ee8816358557e563643cd770f66f0e4894b9 @anderscarling committed Aug 23, 2011
Showing with 5 additions and 5 deletions.
  1. +2 −2 hello_world.asm
  2. +3 −3 hello_world64.asm
View
4 hello_world.asm
@@ -16,7 +16,7 @@ start:
push dword 1 ; stdout
call kernel
add esp, 12
-
+
push dword 0
- mov eax, 1
+ mov eax, 1 ; SYS_exit
call kernel
View
6 hello_world64.asm
@@ -11,11 +11,11 @@ kernel:
start:
mov rax, 0x2000004 ; SYS_write
- mov rdi, 1
+ mov rdi, 1 ; stdout
mov rsi, msg
mov rdx, len
call kernel
-
- mov rax, 0x2000001
+
+ mov rax, 0x2000001 ; SYS_exit
mov rdi, 0
call kernel

0 comments on commit a395ee8

Please sign in to comment.
Something went wrong with that request. Please try again.