]> git.sur5r.net Git - cc65/commitdiff
add IOCB definitions; update years in copyright message
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 26 Jul 2005 23:45:38 +0000 (23:45 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 26 Jul 2005 23:45:38 +0000 (23:45 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3555 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/atari.h

index 9d4bd06465e3b2bcab05d5aba47dda42d43fd8d2..65defb0780bde3ffc0be12682dda5bb2c13fc298 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-2005 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       */
@@ -229,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 */