]> git.sur5r.net Git - cc65/commitdiff
Additional I/O chips added by Stefan Haubenthal
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 13 Mar 2004 22:51:29 +0000 (22:51 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 13 Mar 2004 22:51:29 +0000 (22:51 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2923 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/atmos.h
include/pet.h
include/vic20.h

index 489268e706cd92bbc6192699f07cdd19a5150adc..0fdb1ed91ff6b18fe48f498c3127606159167f36 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)
+
+
+
 /* Character codes */
 #define CH_ULCORNER    '+'
 #define CH_URCORNER    '+'
@@ -69,8 +77,6 @@
 
 
 
-
-
 /* End of atmos.h */
 #endif
 
index be1eb8b9e8aee9fd6be5490e038a9c648cc5cea8..79abbb82a50700611694f4461f30f4ddcf5b28ff 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2002 Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/* (C) 1998-2004 Ullrich von Bassewitz                                       */
+/*               Römerstraße 52                                              */
+/*               D-70794 Filderstadt                                         */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 
+/* Define hardware */
+#include <_pia.h>
+#define PIA1   (*(struct __pia*)0xE810)
+#define PIA2   (*(struct __pia*)0xE820)
+
+#include <_6522.h>
+#define VIA            (*(struct __6522*)0xE840)
+
+
+
 /* End of pet.h */
 #endif
 
index 0c4da418ecd36f390b4e7eb6076a0ef155a80798..904278b4f2b319dca329b4d86f9160dbd03b3fed 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2001 Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/* (C) 1998-2004 Ullrich von Bassewitz                                       */
+/*               Römerstraße 52                                              */
+/*               D-70794 Filderstadt                                         */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 #include <_vic.h>
 #define VIC            (*(struct __vic*)0x9000)
 
+#include <_6522.h>
+#define VIA1           (*(struct __6522*)0x9110)
+#define VIA2   (*(struct __6522*)0x9120)
+
 
 
 /* Define special memory areas */