]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari/getfd.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / atari / getfd.s
index 6fb38e9ae9d4feb694ca0d0c00a38bd1c53b7200..8327e24ac137657b8822765e9c6326dd6d40a05a 100644 (file)
@@ -2,33 +2,15 @@
 ; Christian Groessler, Oct-2000
 ;
 ; allocates a new fd in the indirection table
-; the fdtable itself is defined here
 ;
 
        .include "atari.inc"
        .include "fd.inc"
+       .include "_file.inc"
        .importzp tmp1
+       .import fd_table, fd_index
 
        .export fdt_to_fdi,getfd
-       .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
-       .res    MAX_FD_INDEX,$ff
-
-___fd_table:
-fd_table:      ; each entry represents an open iocb
-       .byte   0,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
 
        .code