From d2b615061e008c4d13a6ce0f11efd8ec337f41c6 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 3 Sep 2022 17:33:07 +0300 Subject: Impl breakpoints (pretty much draft) Breakpoints work somehow, but overstep 1 instruction. Needs to be fixed. --- bus.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bus.cpp') diff --git a/bus.cpp b/bus.cpp index aef20a4..444749c 100644 --- a/bus.cpp +++ b/bus.cpp @@ -17,6 +17,8 @@ unsigned char g_ram[RAM_SIZE] = {}; unsigned char g_io1[IO1_SIZE] = {}; unsigned char g_io2[IO2_SIZE] = {}; +std::vector code_bkpts{}, read_bkpts{}, write_bkpts{}, access_bkpts{}; + static void exit_error(const char* fmt, ...) { va_list args; @@ -63,7 +65,7 @@ static inline unsigned int memory_read_concrete( (base[address + 2] << 8) | base[address + 3]; } - UNREACHABLE(); + UNREACHABLE; } static inline struct read_result memory_read( -- cgit v1.2.3