From ffe36af9b43bc4d8deeae06deaf509159a46325e Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Tue, 16 Apr 2024 14:26:25 +0200 Subject: [PATCH] memory breakpoint (4) --- breakpoint_memory.cpp | 2 +- debugger.cpp | 2 +- main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/breakpoint_memory.cpp b/breakpoint_memory.cpp index d0b647a..e56ce0a 100644 --- a/breakpoint_memory.cpp +++ b/breakpoint_memory.cpp @@ -65,7 +65,7 @@ std::string breakpoint_memory::emit() const for(auto & v: values) { if (out.empty()) - out = format("MEM%c%c[%08a]=", word_mode == wm_byte ? 'B' : 'W', is_virtual ? 'V' : 'P', addr); + out = format("MEM%c%c[%08o]=", word_mode == wm_byte ? 'B' : 'W', is_virtual ? 'V' : 'P', addr); else out += ","; diff --git a/debugger.cpp b/debugger.cpp index eb897ec..ff921b3 100644 --- a/debugger.cpp +++ b/debugger.cpp @@ -1026,7 +1026,7 @@ void debugger(console *const cnsl, bus *const b, std::atomic_uint32_t *const sto cnsl->put_string_lf("sbp/cbp/lbp - set/clear/list breakpoint(s)"); cnsl->put_string_lf(" e.g.: (pc=0123 and memwv[04000]=0200,0300 and (r4=07,05 or r5=0456))"); cnsl->put_string_lf(" values seperated by ',', char after mem is w/b (word/byte), then"); - cnsl->put_string_lf(" follows v/p (virtual/physical)"); + cnsl->put_string_lf(" follows v/p (virtual/physical), all octal values"); cnsl->put_string_lf("trace/t - toggle tracing"); cnsl->put_string_lf("turbo - toggle turbo mode (cannot be interrupted)"); cnsl->put_string_lf("strace - start tracing from address - invoke without address to disable"); diff --git a/main.cpp b/main.cpp index d8a0990..2cde331 100644 --- a/main.cpp +++ b/main.cpp @@ -317,7 +317,7 @@ void help() #include "breakpoint_parser.h" int main(int argc, char *argv[]) { -#if 1 +#if 0 { bus *b = new bus(); cpu *c = new cpu(b, &event);