]> git.sur5r.net Git - cc65/blob - asminc/cbm_filetype.inc
Fixed gcc compiler warning (#867)
[cc65] / asminc / cbm_filetype.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_REG     = $10     ; Bit set for regular files
11         CBM_T_SEQ     = $10     ; Sequential file
12         CBM_T_PRG     = $11     ; Program file
13         CBM_T_USR     = $12     ; User file
14         CBM_T_REL     = $13     ; Relative file
15         CBM_T_VRP     = $14     ; Vorpal fast-loadable format
16         CBM_T_DEL     = $00     ; Deleted file
17         CBM_T_CBM     = $01     ; 1581 sub-partition
18         CBM_T_DIR     = $02     ; IDE64 and CMD sub-directory
19         CBM_T_LNK     = $03     ; IDE64 soft-link
20         CBM_T_OTHER   = $04     ; File-type not recognized
21         CBM_T_HEADER  = $05     ; Disk header / title
22 .endenum
23
24
25 ; The following function maps the start character for a file type to
26 ; one of the file types above. Note: 'd' will always mapped to CBM_T_DEL.
27 ; The calling function has to look at the following character to determine
28 ; if the file type is actually CBM_T_DIR.
29 ;
30 ; unsigned char __fastcall__ _cbm_filetype (unsigned char c);
31
32         .global __cbm_filetype
33
34