From e89a2aff9a91804a72866e4c458037d4d8e1f276 Mon Sep 17 00:00:00 2001 From: uvok Date: Wed, 21 Jan 2026 20:20:39 +0100 Subject: eater: Use correct opcodes I was off-by-one? --- eater_cpu/cpp/Veater_computer__main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 7afa4d0..b986029 100644 --- a/eater_cpu/cpp/Veater_computer__main.cpp +++ b/eater_cpu/cpp/Veater_computer__main.cpp @@ -15,13 +15,15 @@ void load_program(const std::unique_ptr &topp) { // LDA 14 - topp->eater_computer->RAM->r_datastore[0] = 0x0e; + topp->eater_computer->RAM->r_datastore[0] = 0x1e; // ADD 15 - topp->eater_computer->RAM->r_datastore[1] = 0x1f; + topp->eater_computer->RAM->r_datastore[1] = 0x2f; // OUT topp->eater_computer->RAM->r_datastore[2] = 0xe0; + // NOP + topp->eater_computer->RAM->r_datastore[3] = 0x00; // HALT - topp->eater_computer->RAM->r_datastore[3] = 0xf0; + topp->eater_computer->RAM->r_datastore[4] = 0xf0; // Data @ 14 topp->eater_computer->RAM->r_datastore[14] = 14; // Data @ 15 -- cgit v1.2.3