diff options
| author | uvok | 2026-01-23 20:32:19 +0100 |
|---|---|---|
| committer | uvok | 2026-01-23 20:32:19 +0100 |
| commit | 57775b39a940da5e5f29b9cb2ce6611ba107c587 (patch) | |
| tree | ddbf90611edd78c58365faaac8c6c7cbb3e5aaee /eater_cpu/cpp/simpc_term.cpp | |
| parent | e99939491820df300a6179719d807f810e7f1680 (diff) | |
Add ncurses and disassembly
Diffstat (limited to 'eater_cpu/cpp/simpc_term.cpp')
| -rw-r--r-- | eater_cpu/cpp/simpc_term.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/eater_cpu/cpp/simpc_term.cpp b/eater_cpu/cpp/simpc_term.cpp index 2ac3895..b0396a1 100644 --- a/eater_cpu/cpp/simpc_term.cpp +++ b/eater_cpu/cpp/simpc_term.cpp @@ -1,5 +1,4 @@ -#include "Veater_computer_eater_register.h" -#include "Veater_computer_my_mem__DB10.h" + #include "simpc_ui.h" #define NCUR_X 5 @@ -25,6 +24,8 @@ #include "Veater_computer.h" #include "Veater_computer_eater_alu.h" #include "Veater_computer_eater_computer.h" +#include "Veater_computer_eater_register.h" +#include "Veater_computer_my_mem__DB10.h" #include "verilated.h" #include <cstdint> #include <cstdio> @@ -38,10 +39,8 @@ 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 - uint8_t halt = topp->eater_computer->flags.__PVT__halt; + uint8_t halt = topp->halt; PRINT_ME_W(status_top, 0, 0, "Step: %10lu", i); PRINT_ME_W(status_top, 1, 0, "%-20s", paused ? "Paused" : "Running"); @@ -113,7 +112,8 @@ void simpc_ui_finish_message(const std::unique_ptr<VerilatedContext> &contextp, for (int idx = 0; idx < topp->eater_computer->RAM->r_datastore.size(); idx++) { - printf("Mem[%2d] = 0X%02X\n", idx, topp->eater_computer->RAM->r_datastore[idx]); + printf("Mem[%2d] = 0X%02X\n", idx, + topp->eater_computer->RAM->r_datastore[idx]); } } |
