From 103c671a35b8096e845f0256d62f4b9aa2756574 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Tue, 5 Dec 2017 21:14:07 -0800 Subject: [PATCH] Updated File I O (markdown) --- File-I-O.md | 64 ++++++++++++++++++++++++++--------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/File-I-O.md b/File-I-O.md index 027836d..d6fae9c 100644 --- a/File-I-O.md +++ b/File-I-O.md @@ -1,37 +1,37 @@ A library to interface to either SOS on the Apple /// or ProDOS on the Apple II: ``` - // - // Useful ProDOS values - // - // MACHID is defined in cmdsys.plh - // Which slot has a ROM - const SLTBYT = $BF99 - // Prefix active - const PFIXPTR = $BF9A - // Memory alocate bitmap - const MEMTABL = $BF58 - // - // SOS/ProDOS error codes - // - const FILE_ERR_OK = $00 - const FILE_ERR_BAD_CALL_NUM = $01 - const FILE_ERR_BAD_PARAM_CNT = $04 - const FILE_ERR_INT_TBL_FULL = $25 - const FILE_ERR_IO = $27 - // - // File info struc - // - struc t_fileinfo - byte file_access - byte file_type - word aux_type - byte storage_type - word blocks_used - word mod_date - word mod_time - word create_date - word create_time - end +// +// Useful ProDOS values +// +// MACHID is defined in cmdsys.plh +// Which slot has a ROM +const SLTBYT = $BF99 +// Prefix active +const PFIXPTR = $BF9A +// Memory alocate bitmap +const MEMTABL = $BF58 +// +// SOS/ProDOS error codes +// +const FILE_ERR_OK = $00 +const FILE_ERR_BAD_CALL_NUM = $01 +const FILE_ERR_BAD_PARAM_CNT = $04 +const FILE_ERR_INT_TBL_FULL = $25 +const FILE_ERR_IO = $27 +// +// File info struc +// +struc t_fileinfo + byte file_access + byte file_type + word aux_type + byte storage_type + word blocks_used + word mod_date + word mod_time + word create_date + word create_time +end ``` ## The API: ```