]> git.sur5r.net Git - cc65/blobdiff - include/atari.h
Working
[cc65] / include / atari.h
index 64e4b898afa060454ec60b7470e50db626acbca1..0840468fd0d56b8e4230d6b17338d8505eef414f 100644 (file)
 /*                                                                           */
 /*****************************************************************************/
 
+
+
 #ifndef _ATARI_H
 #define _ATARI_H
 
+
+
+/* Check for errors */
+#if !defined(__ATARI__)
+#  error This module may only be used when compiling for the Atari!
+#endif
+
+
+
 /* Character codes */
 #define CH_DEL                 0xFE
 #define CH_ESC                 0x1B
 #define HUE_GREEN       12
 #define HUE_YELLOWGREEN 13
 #define HUE_YELLOW      14
-#define HUE_YELLOWRED   15
+#define HUE_YELLOWRED   15                                       
 
 /* Color defines, similar to c64 colors (untested) */
 #define COLOR_BLACK            _gtia_mkcolor(HUE_GREY,0)
@@ -122,6 +133,7 @@ extern void __fastcall__ setcolor_low (unsigned char color_reg, unsigned char co
 extern unsigned char __fastcall__ getcolor (unsigned char color_reg);
 
 /* other screen functions */
+extern int  __fastcall__ graphics(unsigned char mode); /* mode value same as in BASIC */
 extern void __fastcall__ scroll (signed char numlines);
                                           /* numlines > 0  scrolls up */
                                           /* numlines < 0  scrolls down */
@@ -179,7 +191,7 @@ extern unsigned char get_tv(void);     /* get TV system */
 /* device control block */
 struct __dcb {
     unsigned char device;     /* device id */
-    unsigned char unit;       /* unix number */
+    unsigned char unit;       /* unit number */
     unsigned char command;    /* command */
     unsigned char status;     /* command type / status return */
     void          *buffer;    /* pointer to buffer */