summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2018-05-24 09:12:13 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2018-05-24 09:12:13 -0400
commite004fa5f7c31318019bff6c323a4aa59bcc6c18f (patch)
tree92b0cc94dbfe80017f6ff366a157abd48ccc9413
parent9e35452e46901fc0aa6271d9eacf6b512fe6da64 (diff)
downloadminos-e004fa5f7c31318019bff6c323a4aa59bcc6c18f.tar.gz
Use LF instead of CR
-rw-r--r--console.asm4
1 files changed, 3 insertions, 1 deletions
diff --git a/console.asm b/console.asm
index 5faf3a8..9212c66 100644
--- a/console.asm
+++ b/console.asm
@@ -114,7 +114,7 @@ console_driver:
.handle_SPC:
inc dl
cmp dl, MAX_COLS
- jge .handle_CR
+ jge .handle_LF
jmp .return
.handle_TAB:
@@ -140,9 +140,11 @@ console_driver:
.handle_CR:
mov dl, 0 ; set column zero
+ jmp .return
.handle_LF:
inc dh ; increment row
+ mov dl, 0 ; set column zero
jmp .return
.return: