fix %c in printf_fast, printf_fast_f and printf_tiny
[fw/sdcc] / device / lib / printf_tiny.c
index 4d8543854f643a5d7b31b69d538056f6e4f9ef34..3a889f404d0a57a22fe0c0cfef52e1eb96eb9b5a 100644 (file)
@@ -131,6 +131,7 @@ printf_str_loop:
 printf_format_c:
        //cjne  a, #'c', printf_format_d
        cjne    a, #99, printf_format_d
+       dec     r0
        mov     a, @r0          // Acc has the character to print
        dec     r0
        lcall   printf_putchar