summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGentoo <installgentoo@endianness.com>2020-06-17 13:18:08 +1000
committerGentoo <installgentoo@endianness.com>2020-06-17 13:18:08 +1000
commitb0b70829186861c8fe29f95ccd3aa8f0b76c7eb0 (patch)
treec55cc4b18a2e5b814a4f779e9b9bada7d273a462
parent6750f239bba921339614b6f7b655d52dd761ae94 (diff)
downloadnextchar-asm-b0b70829186861c8fe29f95ccd3aa8f0b76c7eb0.tar.gz
nextchar-asm-b0b70829186861c8fe29f95ccd3aa8f0b76c7eb0.tar.bz2
nextchar-asm-b0b70829186861c8fe29f95ccd3aa8f0b76c7eb0.zip
fixed comment
-rw-r--r--nextchar.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/nextchar.asm b/nextchar.asm
index 5538a1b..9db34d5 100644
--- a/nextchar.asm
+++ b/nextchar.asm
@@ -25,7 +25,7 @@ dec ecx ;deincrement ecx since we just copied a character
test ecx,ecx ;test if ecx is zero
jnz loop ;jump to loop to copy the next character if ecx is not zero
-mov byte[Buff+ebx-1],0xA ;add the newline (-1 overwrites the newline)
+mov byte[Buff+ebx-1],0xA ;add the newline (-1 overwrites the last space)
mov eax,1 ;sys_write
mov edi,1 ;fd = STDOUT_FILENO