From be20c4149da8af929bbdc26f32c17bfcd0981cd9 Mon Sep 17 00:00:00 2001 From: uvok Date: Thu, 22 Jan 2026 19:53:08 +0100 Subject: Implement JMP and get rid of arbitrary run limitation. --- eater_cpu/cpp/Veater_computer__main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'eater_cpu/cpp/Veater_computer__main.cpp') 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 &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()); -- cgit v1.2.3