1lstoff
2
3; Standard Z88	Operating	System manifests:
4
5; The information below is defined	in Developers Notes, release 3.00
6; (c) Cambridge Computer	1989-95
7;
8; $Id: fileio.def,v 1.3 2014-04-09 08:17:11 stefano Exp $
9
10; File open system call:
11
12	DEFC	 gn_opf =	$6009		; open file/stream (or device)
13	DEFC	 os_op  =	$EA06		; internal open
14
15	; Parameters used with gn_Opf	(in A register)
16
17		DEFC	OP_IN   =	$01		; read only (shared)
18		DEFC	OP_OUT  =	$02		; write only
19		DEFC	OP_UP   =	$03		; open read/write
20		DEFC	OP_MEM  =	$04		; Open memory pool
21		DEFC	OP_DIR  =	$05		; Create directory name (returns DOR handle)
22		DEFC	OP_DOR  =	$06		; Fetch DOR handle
23
24	; Various	file/stream manipulation	calls:
25
26		DEFC	 gn_ren =	$6609	; rename filename
27		DEFC	 os_ren =	$E406	; file rename (internal)
28		DEFC	 gn_del =	$6409	; delete file
29		DEFC	 os_del =	$E606	; delete file (internal)
30		DEFC	 gn_cl  =	$6209	; close file/stream
31		DEFC	 os_cl  =	$E806	; close file/stream	(internal)
32
33		DEFC	 os_gb  =	$39		; get byte from file or device
34		DEFC	 os_gbt =	$3F		; - with timeout
35		DEFC	 os_pb  =	$3C		; put byte to file or device
36		DEFC	 os_pbt =	$42		; - with timeout
37		DEFC	 os_ugb =	$36		; unget byte (not implemented).
38		DEFC	 os_mv  =	$45		; move bytes between stream and memory
39
40		DEFC	 os_frm =	$48		; File read miscellaneous
41		DEFC	 os_fwm =	$4B		; File write miscellaneous
42
43	; File status codes, when using os_Frm or os_Fwm:
44
45		DEFC	 FA_PTR =	$01		; Get sequential file pointer
46		DEFC	 FA_EXT =	$02		; Get length (Extent) of	sequential file
47		DEFC	 FA_EOF =	$03		; End Of File enquiry
48		DEFC	 FA_BST =	$04		; Buffer status (system use only)
49
50	; Various	calls to process filenames:
51
52		DEFC	 gn_pfs =	$5A09	; parse filename segment
53		DEFC	 gn_prs =	$5809	; parse filename
54		DEFC	 gn_fcm =	$4E09	; compress a filename
55		DEFC	 gn_fex =	$5009	; expand a filename
56		DEFC	 gn_esa =	$5E09	; read/write filename segments
57
58	; Calls on wildcards, searching for files, parsing filenames:
59
60		DEFC	 gn_opw =	$5209	; open wildcard handler
61		DEFC	 gn_wcl =	$5409	; close wildcard handler
62		DEFC	 gn_wfn =	$5609	; get next filename	match from wc.handler
63		DEFC	 gn_wsm =	$5C09	; match filename segment	to wildcard string
64
65
66	; File Eprom Interface:
67	; (deleted/old	files are	ignored, they can only be fetched by using
68	; EPROM file format	information)
69
70		DEFC	 os_epr =	$F006	; File Eprom Manipulation Interface
71
72		; arguments:
73		DEFC	 EP_SAVE = $00		; blow RAM file to EPROM
74		DEFC	 EP_LOAD = $03		; load file from EPROM (save to RAM file)
75		DEFC	 EP_DIR  = $15		; return next filename (starting with first)
76							; (all files must be read until RC_EOF)
77
78lston
79