old code
This commit is contained in:
parent
493f295efc
commit
061e76987c
1 changed files with 1 additions and 25 deletions
26
main.cpp
26
main.cpp
|
@ -262,26 +262,8 @@ int main(int argc, char *argv[])
|
|||
for(;;) {
|
||||
c->step();
|
||||
|
||||
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();
|
||||
if (event)
|
||||
break;
|
||||
}
|
||||
|
||||
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);)
|
||||
|
||||
// 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)
|
||||
event = 1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue