diff options
Diffstat (limited to 'eater_cpu/cpp')
| -rw-r--r-- | eater_cpu/cpp/Veater_computer__main.cpp | 2 | ||||
| -rw-r--r-- | eater_cpu/cpp/simpc_term.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/eater_cpu/cpp/Veater_computer__main.cpp b/eater_cpu/cpp/Veater_computer__main.cpp index 425fa4e..315d52a 100644 --- a/eater_cpu/cpp/Veater_computer__main.cpp +++ b/eater_cpu/cpp/Veater_computer__main.cpp @@ -65,7 +65,7 @@ int main(int argc, char **argv, char **) { topp->clk_in = !topp->clk_in; - if (topp->eater_computer->PC_out == 3 && + if (topp->eater_computer->PC_out == 4 && topp->eater_computer->decoder__DOT__internal_state == 0x01) break; } diff --git a/eater_cpu/cpp/simpc_term.cpp b/eater_cpu/cpp/simpc_term.cpp index 8ddf83d..540cc98 100644 --- a/eater_cpu/cpp/simpc_term.cpp +++ b/eater_cpu/cpp/simpc_term.cpp @@ -36,6 +36,9 @@ bool paused = false; static void handle_key(); void simpc_ui_write(const std::unique_ptr<Veater_computer> &topp, uint64_t i) { + // clk hi->lo doesn't do anything, just skip this. + if (i !=0 && !topp->clk_in) + return; // uint16_t opcode = topp->eater_computer->; uint8_t opcode = topp->eater_computer->INS->r_datastore; // topp->halt |
