]> git.sur5r.net Git - cc65/blobdiff - include/cbm.h
New EMD driver for the ISEPIC cartridge written and contributed by
[cc65] / include / cbm.h
index 440b969353a206a948a56834a2a7434f327219fd..6ba1ef47e12a02fa8708efb3a217d9fada5a2ce1 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2002 Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/* (C) 1998-2004 Ullrich von Bassewitz                                       */
+/*               Römerstrasse 52                                             */
+/*               D-70794 Filderstadt                                         */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -117,21 +117,23 @@ extern unsigned char _filetype;         /* Default 'u' */
 
 
 /* CBM FILE TYPES */
-#define CBM_T_DEL   0
-#define CBM_T_SEQ   1
-#define CBM_T_PRG   2
-#define CBM_T_USR   3
-#define CBM_T_REL   4
-#define CBM_T_CBM   5           /* 1581 sub-partition */
-#define CBM_T_DIR   6           /* IDE64 and CMD sub-directory */
-#define CBM_T_VRP   8           /* Vorpal fast-loadable format */
-#define CBM_T_OTHER 5           /* Other file-types not yet defined */
+#define CBM_T_DEL       0
+#define CBM_T_SEQ       1
+#define CBM_T_PRG       2
+#define CBM_T_USR       3
+#define CBM_T_REL       4
+#define CBM_T_CBM       5       /* 1581 sub-partition */
+#define CBM_T_DIR       6       /* IDE64 and CMD sub-directory */
+#define CBM_T_RESERVED  7       /* Not used, but kept free for compatibility */
+#define CBM_T_VRP       8       /* Vorpal fast-loadable format */
+#define CBM_T_OTHER     9       /* Other file-types not yet defined */
+#define CBM_T_HEADER   10       /* Disk header / title */
 
 /* CBM FILE ACCESS */
 #define CBM_A_RO    1           /* Read only   */
 #define CBM_A_RW    3           /* Read, Write */
 
-struct cbm_dirent {     
+struct cbm_dirent {
     char          name[17];     /* File name in PETSCII, limited to 16 chars */
     unsigned int  size;         /* Size in 256B blocks */
     unsigned char type;
@@ -146,15 +148,12 @@ struct cbm_dirent {
 
 
 
-#if defined(__C16__) || defined(__C64__) || defined(__C128__) || defined(__PLUS4__)
-
-#define TV_NTSC 0
-#define TV_PAL  1
+#define TV_NTSC         0
+#define TV_PAL          1
+#define TV_OTHER        2
 
 unsigned char __fastcall__ get_tv (void);
-/* Return the video mode the machine is using */
-
-#endif
+/* Return the video mode the machine is using. */