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_curses.cpp | 2 | ||||
| -rw-r--r-- | eater_cpu/cpp/simpc_term.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/eater_cpu/cpp/Veater_computer__main.cpp b/eater_cpu/cpp/Veater_computer__main.cpp index 3bdb786..e7dc553 100644 --- a/eater_cpu/cpp/Veater_computer__main.cpp +++ b/eater_cpu/cpp/Veater_computer__main.cpp @@ -28,7 +28,7 @@ void load_program(const std::unique_ptr<Veater_computer> &topp) { 0x3d, // STA 11 0x4b, - // OUT + // OUT_op 0xe0, // LDI 4 0x54, diff --git a/eater_cpu/cpp/simpc_curses.cpp b/eater_cpu/cpp/simpc_curses.cpp index 4b4f04f..5ae98b1 100644 --- a/eater_cpu/cpp/simpc_curses.cpp +++ b/eater_cpu/cpp/simpc_curses.cpp @@ -70,7 +70,7 @@ void simpc_ui_write(const std::unique_ptr<Veater_computer> &topp, uint64_t i) { clock_regs, 3, 1, "A : 0x%02X\tB : 0x%02X\tALU: 0x%02X\tOUT: 0x%02X", topp->eater_computer->A->r_datastore, topp->eater_computer->B->r_datastore, topp->eater_computer->alu->result, - topp->eater_computer->OUT->r_datastore); + topp->eater_computer->OUT_reg->r_datastore); // "PC: 0x%02X, INS: 0x%02X", topp->eater_computer->PC_out, opcode; // const wchar_t flag_on = L'\u26ab'; diff --git a/eater_cpu/cpp/simpc_term.cpp b/eater_cpu/cpp/simpc_term.cpp index b0396a1..c60e690 100644 --- a/eater_cpu/cpp/simpc_term.cpp +++ b/eater_cpu/cpp/simpc_term.cpp @@ -80,7 +80,7 @@ void simpc_ui_write(const std::unique_ptr<Veater_computer> &topp, uint64_t i) { topp->eater_computer->A->r_datastore, topp->eater_computer->B->r_datastore, topp->eater_computer->alu->result, - topp->eater_computer->OUT->r_datastore); + topp->eater_computer->OUT_reg->r_datastore); // PRINT_ME( // 8, NCUR_X, "%c%8d\t%c%8d\t%c%8d\t%11d", // topp->computer->store_to_A_int ? '*' : ' ', topp->computer->reg_A_int, |
