#define CLOCKS_PER_SEC 1000
#define memcpy(d,s,l) memcpyx(d,s,l)
+# if defined(SDCC_ds400)
+# include <ds400rom.h>
+# endif
+
#elif defined(__z80) || defined(__gbz80)
unsigned int _clock(void);
unsigned getsp(void);
-int main(void)
+void main(void)
{
One_Fifty Int_1_Loc;
REG One_Fifty Int_2_Loc;
REG int Number_Of_Runs;
unsigned long runTime;
+#if defined(SDCC_ds400)
+ // Intialize the ROM.
+ if (romInit(1, SPEED_2X))
+ {
+ // We're hosed. romInit will have printed an error, nothing more to do.
+ return;
+ }
+#endif
+
printf("[dhry]\n");
Next_Ptr_Glob = &_r[0];
#if DEBUG
Number_Of_Runs = 1;
#else
+#if defined(SDCC_ds400)
+ Number_Of_Runs = 10240;
+#else
Number_Of_Runs = 32766;
+#endif
#endif
runTime = clock();