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 35f4cd6..4069bff 100644
--- a/stdio.asm
+++ b/stdio.asm
@@ -182,6 +182,9 @@ printf:
cmp al, '%' ; '%%' - just print the character
je .do_percent_escape
+ cmp al, 'c' ; '%c' - proccess character
+ je .do_char
+
cmp al, 'd' ; '%d' - process integer
je .do_int
@@ -207,6 +210,11 @@ printf:
call putc
jmp .main_string
+ .do_char:
+ mov ax, [bp]
+ call putc
+ jmp .main_string
+
.do_hex:
mov ax, [bp]
call puthex