-/*****************************************************************************
- * fire test program for cc65. *
- * *
- * (w)2002 by groepaz/hitmen *
- * *
- * Cleanup and porting by Ullrich von Bassewitz. *
- * 2004-06-08, Greg King *
- * *
- *****************************************************************************/
+/*****************************************************************************\
+** fire test program for cc65. **
+** **
+** (w)2002 by groepaz/hitmen **
+** **
+** Cleanup and porting by Ullrich von Bassewitz. **
+** 2004-06-08, Greg King **
+** **
+\*****************************************************************************/
#include <string.h> /* for memset */
#include <time.h>
#include <conio.h>
+#include <cbm.h>
#ifdef DOVSYNC
-# define waitvsync() while ((signed char)VIC.ctrl1 >= 0)
+# define WAITVSYNC() waitvsync()
#else
-# define waitvsync()
+# define WAITVSYNC()
#endif
#endif
#if defined(__C128__)
/* Save and change some flags, so that kernal/basic interrupt handler will
- * not interfere with our routine.
- */
+ ** not interfere with our routine.
+ */
initflag = *(unsigned char*) 0xA04;
*(unsigned char*) 0xA04 &= 0xFE;
graphflag = *(unsigned char*) 0xD8;
while (!kbhit()) {
/* Build page 1, then make it visible */
fire (SCREEN1);
- waitvsync ();
+ WAITVSYNC ();
outb (&VIC.addr, PAGE1);
/* Build page 2, then make it visible */
fire (SCREEN2);
- waitvsync ();
+ WAITVSYNC ();
outb (&VIC.addr, PAGE2);
/* Count frames */