]> git.sur5r.net Git - cc65/blobdiff - include/c128.h
Remove this copy of the apple include file - a copy was added to asminc
[cc65] / include / c128.h
index ebb367e3b739ccadd1af9570928df1837f155330..47fbb26b112f8281adbaa1d7c36e8510f32cfb37 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2002 Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/* (C) 1998-2009, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -46,7 +46,6 @@
 
 
 /* Additional key defines */
-#define CH_ESC                  27
 #define CH_F1                  133
 #define CH_F2                  137
 #define CH_F3                  134
@@ -56,8 +55,6 @@
 #define CH_F7                  136
 #define CH_F8                  140
 
-
-
 /* Color defines */
 #define COLOR_BLACK            0x00
 #define COLOR_WHITE            0x01
 #define COLOR_LIGHTBLUE        0x0E
 #define COLOR_GRAY3            0x0F
 
+/* Video mode defines */
+#define VIDEOMODE_40x25         0x00
+#define VIDEOMODE_80x25         0x80
+#define VIDEOMODE_40COL         VIDEOMODE_40x25
+#define VIDEOMODE_80COL         VIDEOMODE_80x25
+
 
 
 /* Define hardware */
@@ -85,6 +88,9 @@
 #include <_sid.h>
 #define        SID     (*(struct __sid*)0xD400)
 
+#include <_vdc.h>
+#define VDC     (*(struct __vdc*)0xD600)
+
 #include <_6526.h>
 #define CIA1   (*(struct __6526*)0xDC00)
 #define CIA2   (*(struct __6526*)0xDD00)
 
 
 
+unsigned __fastcall__ videomode (unsigned Mode);
+/* Set the video mode, return the old mode. Call with one of the VIDEOMODE_xx
+ * constants.
+ */
+
+void toggle_videomode (void);
+/* Toggle the video mode between 40 and 80 chars (calls SWAPPER).
+ * THIS FUNCTION IS DEPRECATED, please use videomode instead!
+ */
+
+void c64mode (void);
+/* Switch the C128 into C64 mode. Note: This function will not return! */
+
+void fast (void);
+/* Switch the CPU into 2MHz mode. Note: This will disable video when in
+ * 40 column mode.
+ */
+
+void slow (void);
+/* Switch the CPU into 1MHz mode. */
+
+
+
 /* End of c128.h */
 #endif