Move definitions for CBM file types into its own header file, since these
definitions are needed for file type macros in dirent.h. Unify names for the include files. git-svn-id: svn://svn.cc65.org/cc65/trunk@5735 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
33
asminc/cbm_filetype.inc
Normal file
33
asminc/cbm_filetype.inc
Normal file
@@ -0,0 +1,33 @@
|
||||
;
|
||||
; Definitions for CBM file types. From cbm.h
|
||||
;
|
||||
; Ullrich von Bassewitz, 2012-06-03
|
||||
;
|
||||
|
||||
; Define bitmapped constants for the table entries
|
||||
|
||||
.enum
|
||||
CBM_T_DEL ; Deleted file
|
||||
CBM_T_SEQ ; Sequential file
|
||||
CBM_T_PRG ; Program file
|
||||
CBM_T_USR ; User file
|
||||
CBM_T_REL ; Relative file
|
||||
CBM_T_CBM ; 1581 sub-partition
|
||||
CBM_T_DIR ; IDE64 and CMD sub-directory
|
||||
CBM_T_LNK ; IDE64 soft-link
|
||||
CBM_T_VRP ; Vorpal fast-loadable format
|
||||
CBM_T_OTHER ; File-type not recognized
|
||||
CBM_T_HEADER ; Disk header / title
|
||||
.endenum
|
||||
|
||||
|
||||
; The following function maps the start character for a file type to
|
||||
; one of the file types above. Note: 'd' will always mapped to CBM_T_DEL.
|
||||
; The calling function has to look at the following character to determine
|
||||
; if the file type is actually CBM_T_DIR.
|
||||
;
|
||||
; unsigned char __fastcall__ _cbm_filetype (unsigned char c);
|
||||
|
||||
.global __cbm_filetype
|
||||
|
||||
|
||||
Reference in New Issue
Block a user