fd9f422b30
Added a LABEL command to set the volume label. Started a FORMAT command.
93 lines
1.7 KiB
C
93 lines
1.7 KiB
C
/*
|
|
* Declare DOS commands
|
|
*/
|
|
|
|
#ifndef __DOS_CMDS_H
|
|
#define __DOS_CMDS_H
|
|
|
|
/*
|
|
* Test the IDE interface by reading the MBR
|
|
*/
|
|
extern short cmd_testide(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* Test file creation
|
|
*/
|
|
extern short cmd_testcreate(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* Execute a binary file
|
|
*/
|
|
extern short cmd_run(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* List the directory at the given path
|
|
*/
|
|
extern short cmd_dir(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* Create a directory
|
|
*/
|
|
extern short cmd_mkdir(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* Delete a file or directory
|
|
*/
|
|
extern short cmd_del(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* Set the current working directory
|
|
*/
|
|
extern short cmd_cd(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* Print the current working directory
|
|
*/
|
|
extern short cmd_pwd(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* Rename a file or directory
|
|
*/
|
|
extern short cmd_rename(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* Print the contents of a file to the screen
|
|
*/
|
|
extern short cmd_type(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* Load a binary file into memory
|
|
*/
|
|
extern short cmd_load(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* Read a sector off a drive
|
|
*
|
|
* DISKREAD <drive #> <sector #>
|
|
*/
|
|
extern short cmd_diskread(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* Fill a sector of a drive with a byte value
|
|
*
|
|
* DISKFILL <drive #> <sector #> <value>
|
|
*/
|
|
extern short cmd_diskfill(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* Set the label of a drive
|
|
*
|
|
* LABEL <drive #> <label>
|
|
*
|
|
*/
|
|
extern short cmd_label(short screen, int argc, char * argv[]);
|
|
|
|
/*
|
|
* Format a drive
|
|
*
|
|
* FORMAT <drive #>
|
|
*/
|
|
extern short cmd_format(short screen, int argc, char * argv[]);
|
|
|
|
#endif
|