jump into debugger when no bootloader or test is selected

This commit is contained in:
folkert van heusden 2023-03-20 20:53:17 +01:00
parent e7e236fd81
commit 9930dd6fc8
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -241,28 +241,11 @@ int main(int argc, char *argv[])
if (test.empty() == false) if (test.empty() == false)
load_p11_x11(b, test); 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); kw11_l *lf = new kw11_l(b, cnsl);
cnsl->start_thread(); cnsl->start_thread();
if (run_debugger) if (run_debugger || (bootloader == BL_NONE && test.empty()))
debugger(cnsl, b, &event, tracing); debugger(cnsl, b, &event, tracing);
else { else {
c->emulation_start(); // for statistics c->emulation_start(); // for statistics