]> git.sur5r.net Git - cc65/blobdiff - include/atmos.h
Function key support be Stephan Haubenthal.
[cc65] / include / atmos.h
index 489268e706cd92bbc6192699f07cdd19a5150adc..8b27393807dc7c609622bea499a0ea517342f33b 100644 (file)
@@ -6,11 +6,11 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2002      Debrune Jérome, <jede@oric.org>                            */
-/* (C) 2003      Ullrich von Bassewitz                                       */
-/*               Roemerstrasse 52                                            */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 2002       Debrune Jérome, <jede@oric.org>                            */
+/* (C) 2003-2004  Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -41,7 +41,7 @@
 
 /* Check for errors */
 #if !defined(__ATMOS__)
-#  error This module may only be used when compiling for the Oric Atmos !
+#  error This module may only be used when compiling for the Oric Atmos!
 #endif
 
 
 #define COLOR_CYAN     0x06
 #define COLOR_WHITE    0x07
 
+
+
+/* Define hardware */
+#include <_6522.h>
+#define VIA            (*(struct __6522*)0x300)
+
+
+
+/* These are defined to be FUNCT + NumberKey */
+#define CH_F1          0xB1
+#define CH_F2          0xB2
+#define CH_F3          0xB3
+#define CH_F4          0xB4
+#define CH_F5          0xB5
+#define CH_F6          0xB6
+#define CH_F7          0xB7
+#define CH_F8          0xB8
+#define CH_F9          0xB9
+#define CH_F10         0xB0
+
+
+
 /* Character codes */
 #define CH_ULCORNER    '+'
 #define CH_URCORNER    '+'
@@ -69,8 +91,6 @@
 
 
 
-
-
 /* End of atmos.h */
 #endif