panel fix
This commit is contained in:
parent
449817aa52
commit
c761ff824d
1 changed files with 10 additions and 5 deletions
15
main.cpp
15
main.cpp
|
@ -163,6 +163,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
c -> setEmulateMFPT(true);
|
c -> setEmulateMFPT(true);
|
||||||
|
|
||||||
|
std::string rk05_file;
|
||||||
bool testCases = false;
|
bool testCases = false;
|
||||||
int opt = -1;
|
int opt = -1;
|
||||||
while((opt = getopt(argc, argv, "hm:T:R:p:ndL:")) != -1)
|
while((opt = getopt(argc, argv, "hm:T:R:p:ndL:")) != -1)
|
||||||
|
@ -193,11 +194,9 @@ int main(int argc, char *argv[])
|
||||||
c->setRegister(7, loadTape(b, optarg));
|
c->setRegister(7, loadTape(b, optarg));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'R': {
|
case 'R':
|
||||||
b->add_rk05(new rk05(optarg, b, nullptr, nullptr));
|
rk05_file = optarg;
|
||||||
setBootLoader(b);
|
break;
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case 'p':
|
case 'p':
|
||||||
c->setRegister(7, atoi(optarg));
|
c->setRegister(7, atoi(optarg));
|
||||||
|
@ -220,6 +219,12 @@ int main(int argc, char *argv[])
|
||||||
else
|
else
|
||||||
cnsl = new console_posix(&terminate, b);
|
cnsl = new console_posix(&terminate, b);
|
||||||
|
|
||||||
|
if (rk05_file.empty() == false) {
|
||||||
|
b->add_rk05(new rk05(rk05_file, b, cnsl->get_disk_read_activity_flag(), cnsl->get_disk_write_activity_flag()));
|
||||||
|
|
||||||
|
setBootLoader(b);
|
||||||
|
}
|
||||||
|
|
||||||
tty *tty_ = new tty(cnsl);
|
tty *tty_ = new tty(cnsl);
|
||||||
|
|
||||||
b->add_tty(tty_);
|
b->add_tty(tty_);
|
||||||
|
|
Loading…
Add table
Reference in a new issue