mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2024-12-28 05:29:54 +00:00
28 lines
634 B
C
28 lines
634 B
C
void comando_help() {
|
|
|
|
if(filename[0] == 0) {
|
|
// HELP (no arguments)
|
|
strcpy(filename, "COMMANDS");
|
|
} else {
|
|
// HELP <command>
|
|
// check if it's a valid command for a customized error
|
|
strcpy(command, filename);
|
|
find_cmd();
|
|
if(cmd == 0xFF) {
|
|
woz_puts("?UNKNOWN COMMAND \"");
|
|
woz_puts(filename);
|
|
woz_putc('"');
|
|
return;
|
|
}
|
|
}
|
|
|
|
// builds the name of the help file using the input buffer as buffer
|
|
strcpy(KEYBUF, "/HELP/");
|
|
strcat(KEYBUF, filename);
|
|
strcat(KEYBUF, ".TXT");
|
|
|
|
strcpy(filename, KEYBUF);
|
|
|
|
comando_type();
|
|
}
|