]> git.sur5r.net Git - cc65/blob - libsrc/atari/fd.inc
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / atari / fd.inc
1 ;
2 ; Christian Groessler, Oct-2000
3 ;
4 ; offsets and defines for fdtable (internal use only)
5 ;
6
7 MAX_FD_INDEX    =       12      ; max. # of open fds
8 MAX_FD_VAL      =       8       ; we have 8 IOCBs
9
10 ft_entrylen = 4 ; length of table entry (it's not sufficient to change here!
11                 ; the code sometimes does two bit shifts to multiply/divide by
12                 ; this length)
13
14 ft_usa  = 0     ; usage counter
15 ft_iocb = 1     ; iocb index (0,$10,$20,etc.), $ff for empty entry
16 ft_dev  = 2     ; device of open iocb (0 - device not remembered, eg. filename specified)
17 ft_flag = 3     ; flags
18                 ; lower 3 bits: device number (for R: and D:)
19                 ; bit 3 - seeking supported by DOS/disk combination
20                 ; bit 4 - indicates a fd opened by the program as apposed to the
21                 ;         inherited ones from program start (fd 0 to fd 2)