mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2024-12-22 13:30:38 +00:00
LS command
This commit is contained in:
parent
c16e0677df
commit
1a6533bd4a
@ -1,5 +1,5 @@
|
||||
void comando_dir() {
|
||||
send_byte_to_MCU(CMD_DIR);
|
||||
void comando_dir(byte cmd) {
|
||||
send_byte_to_MCU(cmd);
|
||||
if(TIMEOUT) return;
|
||||
print_string_response();
|
||||
}
|
||||
|
@ -30,7 +30,8 @@ const byte CMD_DUMP = 8;
|
||||
const byte CMD_JMP = 9;
|
||||
const byte CMD_BAS = 10;
|
||||
const byte CMD_DEL = 11;
|
||||
const byte CMD_EXIT = 12;
|
||||
const byte CMD_LS = 12;
|
||||
const byte CMD_EXIT = 13;
|
||||
|
||||
// the list of recognized commands
|
||||
byte *DOS_COMMANDS[] = {
|
||||
@ -46,6 +47,7 @@ byte *DOS_COMMANDS[] = {
|
||||
"JMP",
|
||||
"BAS",
|
||||
"DEL",
|
||||
"LS",
|
||||
"EXIT"
|
||||
};
|
||||
|
||||
@ -193,8 +195,8 @@ void console() {
|
||||
}
|
||||
comando_write();
|
||||
}
|
||||
else if(cmd == CMD_DIR) {
|
||||
comando_dir();
|
||||
else if(cmd == CMD_DIR || cmd == CMD_LS) {
|
||||
comando_dir(cmd);
|
||||
}
|
||||
else if(cmd == CMD_TIME) {
|
||||
get_token(hex1, 4); // parse hex timeout value
|
||||
|
Loading…
Reference in New Issue
Block a user