diff options
author | Oxore <oxore@protonmail.com> | 2022-09-03 17:33:07 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2022-09-03 17:33:07 +0300 |
commit | d2b615061e008c4d13a6ce0f11efd8ec337f41c6 (patch) | |
tree | 0aab1cc72db576761524267ea3594a21db14b829 /bus.cpp | |
parent | 9037b017d6519fed435eea20c3553d40d871d379 (diff) |
Impl breakpoints (pretty much draft)
Breakpoints work somehow, but overstep 1 instruction. Needs to be fixed.
Diffstat (limited to 'bus.cpp')
-rw-r--r-- | bus.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -17,6 +17,8 @@ unsigned char g_ram[RAM_SIZE] = {}; unsigned char g_io1[IO1_SIZE] = {}; unsigned char g_io2[IO2_SIZE] = {}; +std::vector<Breakpoint> 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( |