t.i.hi = bcast(a)->b.b0 * bcast(b)->b.b2; // A
t.i.lo = bcast(a)->b.b0 * bcast(b)->b.b0; // A
- _asm ;johan _endasm;
t.b.b3 += bcast(a)->b.b3 *
bcast(b)->b.b0; // G
t.b.b3 += bcast(a)->b.b2 *
{
unsigned char c;
while (c= *s++) {
- if (c == LF) ser_putc(CR);
+ if (c == '\n') ser_putc('\r');
ser_putc (c);
}
}
pos = 0;
while (pos <= len) {
c = ser_getc();
- if (c == CR) continue; // discard CR's
+ if (c == '\r') continue; // discard CR's
s[pos++] = c;
- if (c == LF) break; // NL terminates
+ if (c == '\n') break; // NL terminates
}
s[pos] = '\0'; // terminate string
}
unsigned char ser_can_rcv(void)
{
return rxcnt;
-}
\ No newline at end of file
+}
You are forbidden to forbid anyone else to use, share and improve
what you give them. Help stamp out software-hoarding!
-------------------------------------------------------------------------*/
+
+/* this module uses some global variables instead function parameters, so: */
+#ifdef SDCC_STACK_AUTO
+#warning "this module cannot yet be use as a reentrant one"
+#endif
+
#ifdef __ds390
#define USE_FLOATS 1
#endif
int vsprintf (const char *buf, const char *format, va_list ap)
{
- bit left_justify;
- bit zero_padding;
- bit prefix_sign;
- bit prefix_space;
- bit signed_argument;
- bit char_argument;
- bit long_argument;
- bit float_argument;
+ static bit left_justify;
+ static bit zero_padding;
+ static bit prefix_sign;
+ static bit prefix_space;
+ static bit signed_argument;
+ static bit char_argument;
+ static bit long_argument;
+ static bit float_argument;
unsigned char width;
signed char decimals;