]> git.sur5r.net Git - cc65/blobdiff - include/atari.h
Fixes for the watcom makefiles:
[cc65] / include / atari.h
index 4138ccf781ff2e55a631682dfe0dbab191cab72f..976206bdaef2e2a0e63f3d750464953547457f53 100644 (file)
@@ -6,9 +6,9 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2000 Mark Keates <markk@dendrite.co.uk>                               */
-/*          Freddy Offenga <taf_offenga@yahoo.com>                           */
-/*          Christian Groessler <cpg@aladdin.de>                             */
+/* (C) 2000-2006 Mark Keates <markk@dendrite.co.uk>                          */
+/*               Freddy Offenga <taf_offenga@yahoo.com>                      */
+/*               Christian Groessler <cpg@aladdin.de>                        */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -83,7 +83,7 @@
 #define CH_RTEE        0x04
 #define CH_CROSS       0x13
 #define CH_HLINE        0x12
-#define CH_VLINE        0x16
+#define CH_VLINE        0x7C
 
 /* color defines */
 
@@ -142,17 +142,17 @@ extern void __fastcall__ _scroll (signed char numlines);
                                           /* numlines < 0  scrolls down */
 
 /* misc. functions */
+extern unsigned char get_ostype(void);  /* get ROM version */
+extern unsigned char get_tv(void);      /* get TV system */
 extern void _save_vecs(void);           /* save system vectors */
 extern void _rest_vecs(void);           /* restore system vectors */
-extern unsigned char _get_ostype(void); /* get ROM version */
-extern unsigned char _get_tv(void);     /* get TV system */
 extern char *_getdefdev(void);          /* get default floppy device */
 
 /* global variables */
 extern unsigned char _dos_type;        /* the DOS flavour */
 
 /* provide old names for backwards compatibility */
-#ifdef ATARI_COMPAT_PRE_2_10
+#ifdef ATARI_COMPAT_PRE_2_11
 #define setcolor     _setcolor
 #define setcolor_low _setcolor_low
 #define getcolor     _getcolor
@@ -160,10 +160,8 @@ extern unsigned char _dos_type;        /* the DOS flavour */
 #define scroll       _scroll
 #define save_vecs    _save_vecs
 #define rest_vecs    _rest_vecs
-#define get_ostype   _get_ostype
-#define get_tv       _get_tv
 #define getdefdev    _getdefdev
-#endif  /* #ifdef ATARI_COMPAT_PRE_2_10 */
+#endif  /* #ifdef ATARI_COMPAT_PRE_2_11 */
 
 /* get_ostype return value defines (for explanation, see ostype.s) */
 /* masks */
@@ -196,8 +194,8 @@ extern unsigned char _dos_type;        /* the DOS flavour */
 #define ATARIDOS    0
 #define SPARTADOS   1
 #define OSADOS      2
-#define MYDOS       3     /* detection currently not implemented */
-#define NODOS       255   /* detection currently not implemented */
+#define MYDOS       3
+#define NODOS       255
 
 /* Define hardware */
 #include <_gtia.h>
@@ -231,5 +229,24 @@ struct __dcb {
 };
 #define DCB (*(struct __dcb *)0x300)
 
+/* I/O control block */
+struct __iocb {
+    unsigned char handler;    /* handler index number (0xff free) */
+    unsigned char drive;      /* device number (drive) */
+    unsigned char command;    /* command */
+    unsigned char status;     /* status of last operation */
+    void          *buffer;    /* pointer to buffer */
+    void          *put_byte;  /* pointer to device's PUT BYTE routine */
+    unsigned int  buflen;     /* length of buffer */
+    unsigned char aux1;       /* 1st auxiliary byte */
+    unsigned char aux2;       /* 2nd auxiliary byte */
+    unsigned char aux3;       /* 3rd auxiliary byte */
+    unsigned char aux4;       /* 4th auxiliary byte */
+    unsigned char aux5;       /* 5th auxiliary byte */
+    unsigned char spare;      /* spare byte */
+};
+#define ZIOCB (*(struct __iocb *)0x20)  /* zero page IOCB */
+#define IOCB (*(struct __iocb *)0x340)  /* system IOCB buffers */
+
 /* End of atari.h */
 #endif /* #ifndef _ATARI_H */