fix %c in printf_fast, printf_fast_f and printf_tiny
[fw/sdcc] / device / lib / printf_fast.c
index 71281f4a1acf0235f2c1b8c02742b7ee26f78984..63a4308e2aee918ab0bf31a24609bc4f75668e09 100644 (file)
@@ -236,6 +236,7 @@ printf_format_u:
 printf_format_c:
        //cjne  a, #'c', printf_format_x
        cjne    a, #99, printf_format_x
+       dec     r0
        mov     a, @r0          // Acc has the character to print
        dec     r0
        sjmp    printf_char