]> git.sur5r.net Git - cc65/blobdiff - include/cbm264.h
add support for detecting 45GS02
[cc65] / include / cbm264.h
index ff7468d307253668c329cb3f4b86fc3d5908c9a4..5e8a242a7db543440fd0d922131d0704e122f9db 100644 (file)
 #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