-void printf_tiny(code char *fmt, ...) reentrant
+void printf_tiny(__code char *fmt, ...) __reentrant
{
fmt; /* suppress unreferenced variable warning */
- _asm
+ __asm
printf_begin:
mov a, _bp // r0 will point to va_args (stack)
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
printf_end:
- _endasm;
+ __endasm;
}
#endif // defines compatible with printf_tiny
-