/* */
/* */
/* */
-/* (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 */
#define CH_RTEE 0x04
#define CH_CROSS 0x13
#define CH_HLINE 0x12
-#define CH_VLINE 0x16
+#define CH_VLINE 0x7C
/* color defines */
/* 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 */
#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 */
#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>
};
#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 */