summaryrefslogtreecommitdiff
path: root/stdio.asm
diff options
context:
space:
mode:
Diffstat (limited to 'stdio.asm')
-rw-r--r--stdio.asm8
1 files changed, 8 insertions, 0 deletions
diff --git a/stdio.asm b/stdio.asm
index 23d2ac9..161d1a3 100644
--- a/stdio.asm
+++ b/stdio.asm
@@ -218,6 +218,9 @@ printf:
.parse_control:
lodsb ; get next byte
+ cmp al, 't' ; TAB
+ je .do_TAB
+
cmp al, 'n' ; new line
je .do_LF
@@ -226,6 +229,11 @@ printf:
jmp .do_default
+ .do_TAB:
+ mov ax, ASCII_TAB
+ call putc
+ jmp .main_string
+
.do_LF:
mov ax, ASCII_CR ; home the line
call putc