|
|
@ -4,6 +4,9 @@
|
|
|
|
// if we have a textIO module
|
|
|
|
// if we have a textIO module
|
|
|
|
#ifdef TEXT_IO_ADDR
|
|
|
|
#ifdef TEXT_IO_ADDR
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define DEBUGGING 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef TEXT_IO_BUFLEN
|
|
|
|
#ifndef TEXT_IO_BUFLEN
|
|
|
|
#error "When defining TEXT_IO_ADDR, please also provide TEXT_IO_BUFLEN, otherwise textIO won't work!"
|
|
|
|
#error "When defining TEXT_IO_ADDR, please also provide TEXT_IO_BUFLEN, otherwise textIO won't work!"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -14,13 +17,16 @@ void dbgln(char* text, int len);
|
|
|
|
/* alphabet for itoa */
|
|
|
|
/* alphabet for itoa */
|
|
|
|
char* itoa (int value, char* str, int base);
|
|
|
|
char* itoa (int value, char* str, int base);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if we don't have a textIO module for debugging
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define DEBUGGING 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if we don't have textio, dbgln becomes an empty macro to save on cycles
|
|
|
|
// if we don't have textio, dbgln becomes an empty macro to save on cycles
|
|
|
|
#define dbgln(a,b)
|
|
|
|
#define dbgln(a,b)
|
|
|
|
// itoa just evaluates to the passes pointer
|
|
|
|
// itoa just evaluates to the passes pointer
|
|
|
|
#define itoa(a,b,c) b
|
|
|
|
#define itoa(a,b,c) b
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|