summaryrefslogtreecommitdiff
path: root/eater_cpu
diff options
context:
space:
mode:
authoruvok2026-01-26 20:32:56 +0100
committeruvok2026-01-26 20:32:56 +0100
commitd5c38b1c346930b8366135246be92aaed6288c94 (patch)
tree47d481eb0071229ecf09349905d3d40a8b7fe2f5 /eater_cpu
parentdb43a1239ea64825bd0fe45caf8a87bbf9516325 (diff)
eater: display MAR
Diffstat (limited to 'eater_cpu')
-rw-r--r--eater_cpu/cpp/simpc_curses.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/eater_cpu/cpp/simpc_curses.cpp b/eater_cpu/cpp/simpc_curses.cpp
index c7de19b..759996e 100644
--- a/eater_cpu/cpp/simpc_curses.cpp
+++ b/eater_cpu/cpp/simpc_curses.cpp
@@ -68,8 +68,10 @@ void simpc_ui_write(const std::unique_ptr<Veater_computer> &topp, uint64_t i) {
topp->clk_in, topp->eater_computer->decoder__DOT__internal_state,
topp->halt, alu_flags);
- PRINT_ME_W(clock_regs, 2, 1, "BUS: %02X\tPC: @0x%02X\tINS: 0x%02X",
- topp->eater_computer->bus, topp->eater_computer->PC_out, opcode);
+ PRINT_ME_W(clock_regs, 2, 1,
+ "BUS: %02X\tPC: @0x%02X\tINS: 0x%02X\tMAR: 0x%02X",
+ topp->eater_computer->bus, topp->eater_computer->PC_out, opcode,
+ topp->eater_computer->MAR_out);
PRINT_ME_W(
clock_regs, 3, 1, "A : 0x%02X\tB : 0x%02X\tALU: 0x%02X\tOUT: 0x%02X",