jump into debugger when no bootloader or test is selected
This commit is contained in:
parent
e7e236fd81
commit
9930dd6fc8
1 changed files with 1 additions and 18 deletions
19
main.cpp
19
main.cpp
|
@ -241,28 +241,11 @@ int main(int argc, char *argv[])
|
|||
if (test.empty() == false)
|
||||
load_p11_x11(b, test);
|
||||
|
||||
#if 0
|
||||
// loadbin(b, 0, "test.dat");
|
||||
// c->setRegister(7, 0);
|
||||
|
||||
//load_p11_x11(b, "/home/folkert/Projects/PDP-11/work/p11-2.10i/Tests/mtpi.x11");
|
||||
|
||||
|
||||
b->write(0172340, true, 0x34, false);
|
||||
b->write(0172341, true, 0x12, false);
|
||||
printf("%04x\n", b->read(0172340, false, false, true));
|
||||
printf("%04x\n", b->read(0172340, true, false, true));
|
||||
printf("%04x\n", b->read(0172341, true, false, true));
|
||||
b->write(0172341, true, 0x88, false);
|
||||
printf("%04x\n", b->read(0172340, false, false, true));
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
kw11_l *lf = new kw11_l(b, cnsl);
|
||||
|
||||
cnsl->start_thread();
|
||||
|
||||
if (run_debugger)
|
||||
if (run_debugger || (bootloader == BL_NONE && test.empty()))
|
||||
debugger(cnsl, b, &event, tracing);
|
||||
else {
|
||||
c->emulation_start(); // for statistics
|
||||
|
|
Loading…
Add table
Reference in a new issue