]> git.sur5r.net Git - cc65/blob - asminc/_file.inc
New joystick API
[cc65] / asminc / _file.inc
1 ;
2 ; _file.inc
3 ;
4 ; (C) Copyright 2002 Ullrich von Bassewitz (uz@cc65.org)
5 ;
6
7 ; Assembler include file that makes the constants and structures in _file.h
8 ; available for asm code.
9
10 ; Struct _FILE offsets and size
11 _FILE_f_fd      = $00
12 _FILE_f_flags   = $01
13 _FILE_size      = $02
14
15 ; Flags field 
16 _FCLOSED        = $00
17 _FOPEN          = $01
18 _FEOF           = $02
19 _FERROR         = $04
20 _FPUSHBACK      = $08
21                      
22 ; Maximum number of open files (size of table)
23 FOPEN_MAX       = 8
24
25 ; File table
26 .global         __filetab
27