This commit is contained in:
folkert van heusden 2022-03-28 20:46:27 +02:00
parent 493f295efc
commit 061e76987c

View file

@ -262,26 +262,8 @@ int main(int argc, char *argv[])
for(;;) { for(;;) {
c->step(); c->step();
if (event) { if (event)
#if !defined(ESP32)
FILE *fh = fopen("halt.mac", "wb");
if (fh) {
uint16_t pc = 024320;
fprintf(fh, "\t.LINK %06o\n", pc);
for(int i=0; i<4096; i += 2)
fprintf(fh, "\t.DW %06o\n", b->readWord((pc + i) & 0xffff));
fprintf(fh, "\tmake_raw\n");
fclose(fh);
}
#endif
//c->setRegister(7, 01000);
//c->resetHalt();
break; break;
}
icount++; icount++;
@ -301,12 +283,6 @@ int main(int argc, char *argv[])
D(fprintf(stderr, "instructions_executed: %u, took_ms: %lu, new refresh_interval: %u\n", icount, took_ms, refresh_interval);) D(fprintf(stderr, "instructions_executed: %u, took_ms: %lu, new refresh_interval: %u\n", icount, took_ms, refresh_interval);)
// if (withUI) {
// mvwprintw(w_main_b -> win, 0, 24, "%.1f/s ", icount * 1000.0 / took_ms);
// mvwprintw(w_main_b -> win, 0, 42, "%06o", b->get_switch_register());
// mydoupdate();
// }
if (terminate) if (terminate)
event = 1; event = 1;