]> git.sur5r.net Git - cc65/commitdiff
defines for the fd redirection table
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 29 Oct 2000 00:01:20 +0000 (00:01 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 29 Oct 2000 00:01:20 +0000 (00:01 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@398 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atari/fd.inc [new file with mode: 0644]

diff --git a/libsrc/atari/fd.inc b/libsrc/atari/fd.inc
new file mode 100644 (file)
index 0000000..e59fca5
--- /dev/null
@@ -0,0 +1,19 @@
+;
+; Christian Groessler, Oct-2000
+;
+; offsets and defines for fdtable (internal use only)
+;
+
+MAX_FD_INDEX   =       12
+MAX_FD_VAL     =       8       ; we have 8 IOCBs
+
+ft_entrylen = 4        ; length of table entry (it's not sufficient to change here!
+               ; the code sometimes does two bit shifts to multiply/divide by
+               ; this length)
+
+ft_usa  = 0    ; usage counter
+ft_iocb        = 1     ; iocb index (0,$10,$20,etc.), $ff for empty entry
+ft_dev  = 2    ; device of open iocb (0 - device not remembered, eg. filename specified)
+ft_flag = 3    ; flags
+               ; lower 3 bits: device number (for R: and D:)
+