#include <testfwk.h>
#include <stdarg.h>
+#ifdef __ds390
+#include <tinibios.h> /* main() must see the ISR declarations */
+#endif
+
+#if defined(PORT_HOST) || defined(SDCC_z80) || defined(SDCC_gbz80)
+#define _REENTRANT
+#else
+#define _REENTRANT reentrant
+#endif
+
/** Define this if the port's div or mod functions are broken.
A slow loop based method will be substituded.
*/
-#define BROKEN_DIV_MOD 1
+//#define BROKEN_DIV_MOD 1
void _putchar(char c);
void _exitEmu(void);
}
#endif
-static void _printn(int n)
+static void _printn(int n) _REENTRANT
{
int rem;
int
main(void)
{
- // remove the next volatile and mcs51 will jump out of range
- volatile TESTFUNP *cases;
+ TESTFUNP *cases;
int numCases = 0;
__printf("--- Running: %s\n", getSuiteName());