]> git.sur5r.net Git - cc65/blob - libsrc/common/_file.s
Working
[cc65] / libsrc / common / _file.s
1 ;
2 ; Ullrich von Bassewitz, 31.05.1998
3 ;
4 ; Data for the stdio file stream.
5 ;
6
7         .export         __filetab, _stdin, _stdout, _stderr
8
9         .include        "_file.inc"
10
11 .data
12
13 __filetab:
14         .byte   0, _FOPEN       ; stdin
15         .byte   1, _FOPEN       ; stdout
16         .byte   2, _FOPEN       ; stderr
17 .repeat FOPEN_MAX - 3
18         .byte   0, _FCLOSED     ; free slot
19 .endrepeat
20
21
22 ; Standard file descriptors
23
24 _stdin:
25         .word   __filetab + (0 * _FILE_size)
26
27 _stdout:
28         .word   __filetab + (1 * _FILE_size)
29
30 _stderr:
31         .word   __filetab + (2 * _FILE_size)