2002-04-21 14:20:42 +00:00
|
|
|
;
|
|
|
|
; _file.inc
|
|
|
|
;
|
|
|
|
; (C) Copyright 2002 Ullrich von Bassewitz (uz@cc65.org)
|
|
|
|
;
|
|
|
|
|
|
|
|
; Assembler include file that makes the constants and structures in _file.h
|
|
|
|
; available for asm code.
|
|
|
|
|
2003-12-03 10:15:33 +00:00
|
|
|
; Struct _FILE
|
|
|
|
.struct _FILE
|
2004-05-12 13:16:36 +00:00
|
|
|
f_fd .byte
|
|
|
|
f_flags .byte
|
|
|
|
f_pushback .byte
|
2003-12-03 10:15:33 +00:00
|
|
|
.endstruct
|
2002-04-21 14:20:42 +00:00
|
|
|
|
2003-05-03 08:49:35 +00:00
|
|
|
; Flags field
|
2002-04-21 14:20:42 +00:00
|
|
|
_FCLOSED = $00
|
|
|
|
_FOPEN = $01
|
|
|
|
_FEOF = $02
|
|
|
|
_FERROR = $04
|
|
|
|
_FPUSHBACK = $08
|
|
|
|
|
|
|
|
; File table
|
|
|
|
.global __filetab
|
|
|
|
|
2022-04-17 14:04:58 +00:00
|
|
|
|