]> git.sur5r.net Git - cc65/blob - asminc/cbm_ftype.inc
Moved most of the file type detection from cbm_dir.c into a new function
[cc65] / asminc / cbm_ftype.inc
1 ;
2 ; Definitions for CBM file types. From cbm.h
3 ;
4 ; Ullrich von Bassewitz, 2012-06-03
5 ;
6
7 ; Define bitmapped constants for the table entries
8
9 .enum
10         CBM_T_DEL               ; Deleted file
11         CBM_T_SEQ               ; Sequential file
12         CBM_T_PRG               ; Program file
13         CBM_T_USR               ; User file
14         CBM_T_REL               ; Relative file
15         CBM_T_CBM               ; 1581 sub-partition
16         CBM_T_DIR               ; IDE64 and CMD sub-directory
17         CBM_T_LNK               ; IDE64 soft-link
18         CBM_T_VRP               ; Vorpal fast-loadable format
19         CBM_T_OTHER             ; File-type not recognized
20         CBM_T_HEADER            ; Disk header / title 
21 .endenum
22
23
24 ; The following function maps the start character for a file type to 
25 ; one of the file types above. Note: 'd' will always mapped to CBM_T_DEL.
26 ; The calling function has to look at the following character to determine
27 ; if the file type is actually CBM_T_DIR.
28 ;
29 ; unsigned char __fastcall__ _cbm_filetype (unsigned char c);
30
31         .global __cbm_filetype
32
33