From 139e57712352d962ea498bb3bc7c9f49e5b4381d Mon Sep 17 00:00:00 2001 From: cpg Date: Tue, 26 Jul 2005 23:45:38 +0000 Subject: [PATCH] add IOCB definitions; update years in copyright message git-svn-id: svn://svn.cc65.org/cc65/trunk@3555 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/atari.h | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/include/atari.h b/include/atari.h index 9d4bd0646..65defb078 100644 --- a/include/atari.h +++ b/include/atari.h @@ -6,9 +6,9 @@ /* */ /* */ /* */ -/* (C) 2000 Mark Keates */ -/* Freddy Offenga */ -/* Christian Groessler */ +/* (C) 2000-2005 Mark Keates */ +/* Freddy Offenga */ +/* Christian Groessler */ /* */ /* */ /* 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 */ -- 2.39.5