LAST-DIGIT-BUG: INCREMENT before LF default tip
authorMarkus Bröker<broeker.markus@googlemail.com>
Sun, 10 Feb 2019 13:17:01 +0100
changeset 173 374a86886bc5
parent 172 43ae72f88d06
LAST-DIGIT-BUG: INCREMENT before LF
osx/hello.asm
--- 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