2 ; Christian Groessler, Oct-2000
3 ; Daniel Serpell, Dec-2009
5 ; the fdtable itself is defined here
10 .export fd_table,fd_index
11 .export ___fd_table,___fd_index ; for test(debug purposes only
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
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: