allow rk05 without bootloader set
This commit is contained in:
parent
d259fa7755
commit
fbf68e2409
1 changed files with 8 additions and 3 deletions
11
main.cpp
11
main.cpp
|
@ -168,14 +168,19 @@ int main(int argc, char *argv[])
|
||||||
bool testCases = false;
|
bool testCases = false;
|
||||||
bool run_debugger = false;
|
bool run_debugger = false;
|
||||||
bool tracing = false;
|
bool tracing = false;
|
||||||
|
bool bootloader = false;
|
||||||
int opt = -1;
|
int opt = -1;
|
||||||
while((opt = getopt(argc, argv, "hm:T:R:p:ndtL:")) != -1)
|
while((opt = getopt(argc, argv, "hm:T:R:p:ndtL:b")) != -1)
|
||||||
{
|
{
|
||||||
switch(opt) {
|
switch(opt) {
|
||||||
case 'h':
|
case 'h':
|
||||||
help();
|
help();
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
case 'b':
|
||||||
|
bootloader = true;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'd':
|
case 'd':
|
||||||
run_debugger = true;
|
run_debugger = true;
|
||||||
break;
|
break;
|
||||||
|
@ -234,11 +239,11 @@ int main(int argc, char *argv[])
|
||||||
cnsl = new console_posix(&terminate, &interrupt_emulation, b);
|
cnsl = new console_posix(&terminate, &interrupt_emulation, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rk05_files.empty() == false) {
|
if (rk05_files.empty() == false)
|
||||||
b->add_rk05(new rk05(rk05_files, b, cnsl->get_disk_read_activity_flag(), cnsl->get_disk_write_activity_flag()));
|
b->add_rk05(new rk05(rk05_files, b, cnsl->get_disk_read_activity_flag(), cnsl->get_disk_write_activity_flag()));
|
||||||
|
|
||||||
|
if (bootloader)
|
||||||
setBootLoader(b);
|
setBootLoader(b);
|
||||||
}
|
|
||||||
|
|
||||||
running = cnsl->get_running_flag();
|
running = cnsl->get_running_flag();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue