1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-26 08:32:00 +00:00
cc65/libsrc/atari/fdtab.s
cpg 2bca737f57 more space improvements by Daniel Serpell
git-svn-id: svn://svn.cc65.org/cc65/trunk@4503 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-12-07 18:58:32 +00:00

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