]> git.sur5r.net Git - cc65/blob - libsrc/atari/fdtab.s
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / atari / fdtab.s
1 ;
2 ; Christian Groessler, Oct-2000
3 ; Daniel Serpell, Dec-2009
4 ;
5 ; the fdtable itself is defined here
6 ;
7
8         .include "fd.inc"
9
10         .export fd_table,fd_index
11         .export ___fd_table,___fd_index ; for test(debug purposes only
12
13         .data
14
15 ___fd_index:
16 fd_index:       ; fd number is index into this table, entry's value specifies the fd_table entry
17         .byte   0,0,0           ; at start, three first files are stdin/stdout/stderr.
18         .res    MAX_FD_INDEX-3,$ff
19
20 ___fd_table:
21 fd_table:       ; each entry represents an open iocb
22         .byte   3,0,'E',0       ; system console, app starts with opened iocb #0 for E:
23         .byte   0,$ff,0,0
24         .byte   0,$ff,0,0
25         .byte   0,$ff,0,0
26         .byte   0,$ff,0,0
27         .byte   0,$ff,0,0
28         .byte   0,$ff,0,0
29         .byte   0,$ff,0,0
30