2009-12-07 18:58:32 +00:00
|
|
|
;
|
|
|
|
; Christian Groessler, Oct-2000
|
|
|
|
; Daniel Serpell, Dec-2009
|
|
|
|
;
|
|
|
|
; the fdtable itself is defined here
|
|
|
|
;
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "fd.inc"
|
2009-12-07 18:58:32 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.export fd_table,fd_index
|
|
|
|
.export ___fd_table,___fd_index ; for test(debug purposes only
|
2009-12-07 18:58:32 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.data
|
2009-12-07 18:58:32 +00:00
|
|
|
|
|
|
|
___fd_index:
|
2013-05-09 11:56:54 +00:00
|
|
|
fd_index: ; fd number is index into this table, entry's value specifies the fd_table entry
|
|
|
|
.byte 0,0,0 ; at start, three first files are stdin/stdout/stderr.
|
|
|
|
.res MAX_FD_INDEX-3,$ff
|
2009-12-07 18:58:32 +00:00
|
|
|
|
|
|
|
___fd_table:
|
2013-05-09 11:56:54 +00:00
|
|
|
fd_table: ; each entry represents an open iocb
|
|
|
|
.byte 3,0,'E',0 ; system console, app starts with opened iocb #0 for E:
|
|
|
|
.byte 0,$ff,0,0
|
|
|
|
.byte 0,$ff,0,0
|
|
|
|
.byte 0,$ff,0,0
|
|
|
|
.byte 0,$ff,0,0
|
|
|
|
.byte 0,$ff,0,0
|
|
|
|
.byte 0,$ff,0,0
|
|
|
|
.byte 0,$ff,0,0
|
2009-12-07 18:58:32 +00:00
|
|
|
|