mirror of
https://github.com/cc65/cc65.git
synced 2024-11-10 10:04:50 +00:00
2bca737f57
git-svn-id: svn://svn.cc65.org/cc65/trunk@4503 b7a2c559-68d2-44c3-8de9-860c34a00d81
31 lines
675 B
ArmAsm
31 lines
675 B
ArmAsm
;
|
|
; Christian Groessler, Oct-2000
|
|
; Daniel Serpell, Dec-2009
|
|
;
|
|
; the fdtable itself is defined here
|
|
;
|
|
|
|
.include "fd.inc"
|
|
|
|
.export fd_table,fd_index
|
|
.export ___fd_table,___fd_index ; for test(debug purposes only
|
|
|
|
.data
|
|
|
|
___fd_index:
|
|
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
|
|
|
|
___fd_table:
|
|
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
|
|
|