osx/hello.asm
changeset 173 374a86886bc5
parent 172 43ae72f88d06
--- a/osx/hello.asm
+++ b/osx/hello.asm
@@ -115,6 +115,7 @@
 
   ;; add newline and string terminator
   newline:
+    inc di
     mov BYTE [di], 10
     inc di
     mov BYTE [di], 0
@@ -144,6 +145,6 @@
   push DWORD 1        ;; stdout
 
   call asm_write      ;;
-
+  
   add esp, 12         ;; cleanup stack
   ret