diff options
Diffstat (limited to 'eater_cpu/cpp/Veater_computer__main.cpp')
| -rw-r--r-- | eater_cpu/cpp/Veater_computer__main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/eater_cpu/cpp/Veater_computer__main.cpp b/eater_cpu/cpp/Veater_computer__main.cpp index 4de8454..b4cd413 100644 --- a/eater_cpu/cpp/Veater_computer__main.cpp +++ b/eater_cpu/cpp/Veater_computer__main.cpp @@ -33,6 +33,8 @@ void load_program(const std::unique_ptr<Veater_computer> &topp) { 0x54, // NOP 0x00, + // JMP -> @0 + 0x60, // HALT 0xf0}; std::copy(instructions.begin(), instructions.end(), @@ -84,10 +86,6 @@ int main(int argc, char **argv, char **) { contextp->timeInc(1); topp->clk_in = !topp->clk_in; - - if (topp->eater_computer->PC_out == 6 && - topp->eater_computer->decoder__DOT__internal_state == 0x01) - break; } contextp->timeInc(10); tfp->dump(contextp->time()); |
