]> git.sur5r.net Git - cc65/blobdiff - include/c128.h
Added SegDef struct and a few functions to the segdefs module
[cc65] / include / c128.h
index 1831f6e9bab29ad4ce77d2253c5f4737147182de..85782aef377c307797f82ce521c92ce10b71426d 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2000 Ullrich von Bassewitz                                       */
+/* (C) 1998-2002 Ullrich von Bassewitz                                       */
 /*               Wacholderweg 14                                             */
 /*               D-70597 Stuttgart                                           */
 /* EMail:        uz@musoftware.de                                            */
 
 
 
-/*
- * c128.h
- *
- * Ullrich von Bassewitz, 12.08.1998
- */
+#ifndef _C128_H
+#define _C128_H
 
 
 
-#ifndef _C128_H
-#define _C128_H
+/* Check for errors */
+#if !defined(__C128__)
+#  error This module may only be used when compiling for the C128!
+#endif
 
 
 
@@ -79,8 +78,8 @@
 
 
 /* Define hardware */
-#include <_vic.h>
-#define VIC    (*(struct __vic*)0xD000)
+#include <_vic2.h>
+#define VIC            (*(struct __vic2*)0xD000)
 
 #include <_sid.h>
 #define        SID     (*(struct __sid*)0xD400)