]> git.sur5r.net Git - cc65/blobdiff - include/apple2.h
Merge pull request #656 from Compyx/master
[cc65] / include / apple2.h
index a1b094d4d3d8073941e72be2ca7d2bf22b02755d..f217ad04c7a44341342e2745c19e69c9e9bb3abf 100644 (file)
@@ -41,6 +41,8 @@
 #  error This module may only be used when compiling for the Apple ][!
 #endif
 
+#include <apple2_filetype.h>
+
 
 
 /*****************************************************************************/
 #define CH_RTEE      '+'
 #define CH_CROSS     '+'
 
+/* Masks for joy_read */
+#define JOY_UP_MASK     0x10
+#define JOY_DOWN_MASK   0x20
+#define JOY_LEFT_MASK   0x04
+#define JOY_RIGHT_MASK  0x08
+#define JOY_BTN_1_MASK  0x40
+#define JOY_BTN_2_MASK  0x80
+
 /* Return codes for get_ostype */
 #define APPLE_UNKNOWN  0x00
 #define APPLE_II       0x10  /* Apple ][                    */
@@ -125,6 +135,7 @@ extern unsigned char _dos_type;
 ** ProDOS 8 2.0.1 - 0x21
 ** ProDOS 8 2.0.2 - 0x22
 ** ProDOS 8 2.0.3 - 0x23
+** ProDOS 8 2.4.x - 0x24
 */
 
 
@@ -136,11 +147,9 @@ extern unsigned char _dos_type;
 
 
 /* The file stream implementation and the POSIX I/O functions will use the
-** following variables to determine the file type, aux type and creation time
-** stamp to use.
+** following struct to set the date and time stamp on files. This specificially
+** applies to the open and fopen functions.
 */
-extern unsigned char _filetype;  /* Default: 6 */
-extern unsigned int _auxtype;    /* Default: 0 */
 extern struct {
     struct {
         unsigned day  :5;