]> git.sur5r.net Git - cc65/blobdiff - include/cbm510.h
Working
[cc65] / include / cbm510.h
index 295d6e679390b5e0e7d11250cda2b48ef6d1645b..d4785d5579b411203586ffce1370fc8db8929eb0 100644 (file)
 
 
 
+/* Check for errors */
+#if !defined(__CBM510__)
+#  error This module may only be used when compiling for the CBM 510!
+#endif
+
+
+
 /* Additional key defines */
 #define CH_F1                  224
 #define CH_F2                  225
@@ -82,7 +89,9 @@
 
 
 
-/* Special routines to write bytes and words in the system bank */
+/* Special routines to read/write bytes and words in the system bank */
+unsigned char __fastcall__ peekbsys (unsigned addr);
+unsigned __fastcall__ peekwsys (unsigned addr);
 void __fastcall__ pokebsys (unsigned addr, unsigned char val);
 void __fastcall__ pokewsys (unsigned addr, unsigned val);
 
@@ -91,7 +100,7 @@ void __fastcall__ pokewsys (unsigned addr, unsigned val);
 /* Define hardware */
 #include <_vic.h>
 #define VIC            (*(struct __vic*)0xD800)
-
+                                                                 
 #include <_sid.h>
 #define        SID     (*(struct __sid*)0xDA00)