summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2018-05-26 10:56:12 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2018-05-26 10:56:12 -0400
commitd11145e242c35e20ba43d68af3a58e050a0dcceb (patch)
tree33104b9f191b2c6dc417d2f44cb32a5d54556be2
parentad1f51c1853f14aa96429c8d53a572769873e1eb (diff)
downloadminos-d11145e242c35e20ba43d68af3a58e050a0dcceb.tar.gz
Placeholder for s/uint formatters
-rw-r--r--stdio.asm9
1 files changed, 8 insertions, 1 deletions
diff --git a/stdio.asm b/stdio.asm
index 28c090f..23d2ac9 100644
--- a/stdio.asm
+++ b/stdio.asm
@@ -256,9 +256,15 @@ printf:
cmp al, 'c' ; '%c' - process character
je .do_char
- cmp al, 'd' ; '%d' - process integer
+ cmp al, 'd' ; '%d' - process signed int
je .do_int
+ cmp al, 'i' ; '%i' - process signed int
+ je .do_int
+
+ cmp al, 'u' ; '%u' - process unsigned int
+ je .do_uint
+
cmp al, 'x' ; '%x' - process hexadecimal
je .do_hex
@@ -298,6 +304,7 @@ printf:
jmp .parse_fmt_done
.do_int:
+ .do_uint:
mov ax, [bp]
push cx
push ax