2021-09-19 19:16:41 -04:00
|
|
|
/*
|
|
|
|
* Declare DOS commands
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DOS_CMDS_H
|
|
|
|
#define __DOS_CMDS_H
|
|
|
|
|
2021-10-05 15:51:53 -04:00
|
|
|
/*
|
|
|
|
* Test the IDE interface by reading the MBR
|
|
|
|
*/
|
|
|
|
extern short cmd_testide(short screen, int argc, char * argv[]);
|
|
|
|
|
2021-10-14 20:26:16 -04:00
|
|
|
/*
|
|
|
|
* Test file creation
|
|
|
|
*/
|
|
|
|
extern short cmd_testcreate(short screen, int argc, char * argv[]);
|
|
|
|
|
2021-09-30 13:39:39 -04:00
|
|
|
/*
|
|
|
|
* Execute a binary file
|
|
|
|
*/
|
|
|
|
extern short cmd_run(short screen, int argc, char * argv[]);
|
|
|
|
|
2021-09-19 19:16:41 -04:00
|
|
|
/*
|
|
|
|
* List the directory at the given path
|
|
|
|
*/
|
2021-09-25 17:26:23 -04:00
|
|
|
extern short cmd_dir(short screen, int argc, char * argv[]);
|
2021-09-19 19:16:41 -04:00
|
|
|
|
2021-10-08 14:41:24 -04:00
|
|
|
/*
|
|
|
|
* 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[]);
|
|
|
|
|
2021-10-14 20:26:16 -04:00
|
|
|
/*
|
|
|
|
* 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[]);
|
|
|
|
|
2021-10-08 14:41:24 -04:00
|
|
|
/*
|
|
|
|
* Rename a file or directory
|
|
|
|
*/
|
|
|
|
extern short cmd_rename(short screen, int argc, char * argv[]);
|
|
|
|
|
2021-09-24 19:49:13 -04:00
|
|
|
/*
|
|
|
|
* Print the contents of a file to the screen
|
|
|
|
*/
|
2021-09-25 17:26:23 -04:00
|
|
|
extern short cmd_type(short screen, int argc, char * argv[]);
|
2021-09-24 19:49:13 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Load a binary file into memory
|
|
|
|
*/
|
2021-09-25 17:26:23 -04:00
|
|
|
extern short cmd_load(short screen, int argc, char * argv[]);
|
2021-09-24 12:05:45 -04:00
|
|
|
|
2021-10-15 19:05:55 -04:00
|
|
|
/*
|
|
|
|
* 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[]);
|
|
|
|
|
2021-09-19 19:16:41 -04:00
|
|
|
#endif
|