diff options
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -79,7 +79,7 @@ int main(int argc, const char *argv[]) { | |||
| 79 | std::ofstream pt("bug.pt"); | 79 | std::ofstream pt("bug.pt"); |
| 80 | infra::pt::ptfile = &pt; | 80 | infra::pt::ptfile = &pt; |
| 81 | 81 | ||
| 82 | while (!core.checker.done()) { | 82 | for (unsigned int cycles = 0; !core.checker.done() && cycles < 500000; ++cycles) { |
| 83 | // if (!checker.ctlregs[HALTED]) { | 83 | // if (!checker.ctlregs[HALTED]) { |
| 84 | // if (checker.inst.final_address.has_value()) | 84 | // if (checker.inst.final_address.has_value()) |
| 85 | // std::cout << fmt::format("{:05o} {:01o} {:04o} {:04o} {:005o}\n", checker.pc, checker.link, checker.acc, checker.mq, *checker.inst.final_address); | 85 | // std::cout << fmt::format("{:05o} {:01o} {:04o} {:04o} {:005o}\n", checker.pc, checker.link, checker.acc, checker.mq, *checker.inst.final_address); |
