mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-18 13:30:54 +00:00
Updated File I O (markdown)
parent
e422c66835
commit
103c671a35
46
File-I-O.md
46
File-I-O.md
@ -1,27 +1,27 @@
|
||||
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
|
||||
//
|
||||
// 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
|
||||
@ -31,7 +31,7 @@ A library to interface to either SOS on the Apple /// or ProDOS on the Apple II:
|
||||
word mod_time
|
||||
word create_date
|
||||
word create_time
|
||||
end
|
||||
end
|
||||
```
|
||||
## The API:
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user