mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-22 16:34:15 +00:00
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
|
/**********************************************************
|
||
|
* dirent - Directory Entries Module for run6502 emulator *
|
||
|
**********************************************************/
|
||
|
|
||
|
/* Directory Entry */
|
||
|
struct dirent {
|
||
|
char name[128]; //Entry Filename
|
||
|
};
|
||
|
|
||
|
/* Directory Header */
|
||
|
struct dirhdr {
|
||
|
char name[128]; //Header Name
|
||
|
};
|
||
|
|
||
|
/* Open Directory for Reading *
|
||
|
* Args: char d - Drive | Disk *
|
||
|
* int &n - Directory Name *
|
||
|
* Returns: char f - Channel *
|
||
|
* 0 = Not Opened *
|
||
|
* char e - Error, 0=None */
|
||
|
char opndir();
|
||
|
|
||
|
/* Read Disk/Directory Header *
|
||
|
* Args: char f - Directory Channel *
|
||
|
* int &s - dirhdr Struct *
|
||
|
* Returns: char n - Length of Header *
|
||
|
* 0 = N/A or Error *
|
||
|
* char e - Error, 0=None */
|
||
|
char rdhdr();
|
||
|
|
||
|
/* Read Directory Entry *
|
||
|
* Args: char f - Directory Channel *
|
||
|
* int &s - dirent Struct *
|
||
|
* Returns: char n - Length of Entry *
|
||
|
* 0 = EOF or Error *
|
||
|
* char e - Error, 0=None */
|
||
|
char rddir();
|
||
|
|
||
|
/* Close Directory Channel *
|
||
|
* Args: char f - Directory Channel *
|
||
|
* Returns: char e - Error, 0=None */
|
||
|
char clsdir();
|