File: cbm_filetype.inc

package info (click to toggle)
cc65 2.19-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,268 kB
  • sloc: ansic: 117,151; asm: 66,339; pascal: 4,248; makefile: 1,009; perl: 607
file content (34 lines) | stat: -rw-r--r-- 1,151 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
;
; Definitions for CBM file types. From cbm.h
;
; Ullrich von Bassewitz, 2012-06-03
;

; Define bitmapped constants for the table entries

.enum
        CBM_T_REG     = $10     ; Bit set for regular files
        CBM_T_SEQ     = $10     ; Sequential file
        CBM_T_PRG     = $11     ; Program file
        CBM_T_USR     = $12     ; User file
        CBM_T_REL     = $13     ; Relative file
        CBM_T_VRP     = $14     ; Vorpal fast-loadable format
        CBM_T_DEL     = $00     ; Deleted file
        CBM_T_CBM     = $01     ; 1581 sub-partition
        CBM_T_DIR     = $02     ; IDE64 and CMD sub-directory
        CBM_T_LNK     = $03     ; IDE64 soft-link
        CBM_T_OTHER   = $04     ; File-type not recognized
        CBM_T_HEADER  = $05     ; 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