2 ; Determine the CBM file type. From cbm_dir.c by Josef Soucek. Moved into an
3 ; assembler function by Ullrich von Bassewitz 2012-06-03
5 ; unsigned char __fastcall__ _cbm_filetype (unsigned char c);
8 .include "cbm_filetype.inc"
13 ; --------------------------------------------------------------------------
14 ; Table with types for a list of start characters
41 ; --------------------------------------------------------------------------
47 ldx #0 ; Clear high byte
49 ; Check that the given char is in table range
54 cmp #.sizeof (TypeTable)
63 ; Out of table range, return CBM_T_OTHER