lstoff ; Standard Z88 Operating System manifests: ; The information below is defined in Developers Notes, release 3.00 ; (c) Cambridge Computer 1989-95 ; ; $Id: fileio.def,v 1.3 2014-04-09 08:17:11 stefano Exp $ ; File open system call: DEFC gn_opf = $6009 ; open file/stream (or device) DEFC os_op = $EA06 ; internal open ; Parameters used with gn_Opf (in A register) DEFC OP_IN = $01 ; read only (shared) DEFC OP_OUT = $02 ; write only DEFC OP_UP = $03 ; open read/write DEFC OP_MEM = $04 ; Open memory pool DEFC OP_DIR = $05 ; Create directory name (returns DOR handle) DEFC OP_DOR = $06 ; Fetch DOR handle ; Various file/stream manipulation calls: DEFC gn_ren = $6609 ; rename filename DEFC os_ren = $E406 ; file rename (internal) DEFC gn_del = $6409 ; delete file DEFC os_del = $E606 ; delete file (internal) DEFC gn_cl = $6209 ; close file/stream DEFC os_cl = $E806 ; close file/stream (internal) DEFC os_gb = $39 ; get byte from file or device DEFC os_gbt = $3F ; - with timeout DEFC os_pb = $3C ; put byte to file or device DEFC os_pbt = $42 ; - with timeout DEFC os_ugb = $36 ; unget byte (not implemented). DEFC os_mv = $45 ; move bytes between stream and memory DEFC os_frm = $48 ; File read miscellaneous DEFC os_fwm = $4B ; File write miscellaneous ; File status codes, when using os_Frm or os_Fwm: DEFC FA_PTR = $01 ; Get sequential file pointer DEFC FA_EXT = $02 ; Get length (Extent) of sequential file DEFC FA_EOF = $03 ; End Of File enquiry DEFC FA_BST = $04 ; Buffer status (system use only) ; Various calls to process filenames: DEFC gn_pfs = $5A09 ; parse filename segment DEFC gn_prs = $5809 ; parse filename DEFC gn_fcm = $4E09 ; compress a filename DEFC gn_fex = $5009 ; expand a filename DEFC gn_esa = $5E09 ; read/write filename segments ; Calls on wildcards, searching for files, parsing filenames: DEFC gn_opw = $5209 ; open wildcard handler DEFC gn_wcl = $5409 ; close wildcard handler DEFC gn_wfn = $5609 ; get next filename match from wc.handler DEFC gn_wsm = $5C09 ; match filename segment to wildcard string ; File Eprom Interface: ; (deleted/old files are ignored, they can only be fetched by using ; EPROM file format information) DEFC os_epr = $F006 ; File Eprom Manipulation Interface ; arguments: DEFC EP_SAVE = $00 ; blow RAM file to EPROM DEFC EP_LOAD = $03 ; load file from EPROM (save to RAM file) DEFC EP_DIR = $15 ; return next filename (starting with first) ; (all files must be read until RC_EOF) lston