From d11145e242c35e20ba43d68af3a58e050a0dcceb Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sat, 26 May 2018 10:56:12 -0400 Subject: Placeholder for s/uint formatters --- stdio.asm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit