]> git.sur5r.net Git - cc65/blobdiff - include/cbm264.h
Fixed LinuxDoc Tools issues in some verbatim blocks in the Atari document.
[cc65] / include / cbm264.h
index 9ede10f4776472f4bb36892b1f7b9a2f55210181..5e8a242a7db543440fd0d922131d0704e122f9db 100644 (file)
@@ -39,7 +39,7 @@
 
 
 /* Check for errors */
-#if !defined(__PLUS4__) && !defined(__C16__)
+#if !defined(__C16__)
 #  error This module may only be used when compiling for the Plus/4 or C16!
 #endif
 
 #define COLOR_LIGHTBLUE         (BCOLOR_LIGHTBLUE | CATTR_LUMA7)
 #define COLOR_GRAY3             (BCOLOR_WHITE | CATTR_LUMA5)
 
+
+
+/* Masks for joy_read */
+#define JOY_UP_MASK             0x01
+#define JOY_DOWN_MASK           0x02
+#define JOY_LEFT_MASK           0x04
+#define JOY_RIGHT_MASK          0x08
+#define JOY_BTN_1_MASK          0x80
+
+
+
 /* Define hardware */
 #include <_ted.h>
 #define TED             (*(struct __ted*)0xFF00)
 /*                                   Code                                    */
 /*****************************************************************************/
 
+void fast (void);
+/* Switch the CPU into double-clock mode. */
 
+void slow (void);
+/* Switch the CPU into single-clock mode. */
 
-/* End of cbm264.h */
-#endif
-
+unsigned char isfast (void);
+/* Returns 1 if the CPU is in double-clock mode. */
 
 
 
+/* End of cbm264.h */
+#endif