summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2024-05-25 15:01:30 +0300
committerOxore <oxore@protonmail.com>2024-05-25 15:01:47 +0300
commit803c427e85d3b00f28654723734746efa958d477 (patch)
tree5105bced91bb14a4389954783d03d0156be595b4
parentda7bab98907a700d1e525ccafe8f623d0927a724 (diff)
Fix watchpoints
-rw-r--r--bus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/bus.cpp b/bus.cpp
index ac18208..f7e97ba 100644
--- a/bus.cpp
+++ b/bus.cpp
@@ -203,8 +203,8 @@ static inline void m68k_write_callback(const uint32_t address, const uint32_t si
break;
}
}
- for (size_t bi = 0; bi < read_bkpts.size(); bi++) {
- const auto& b = read_bkpts[bi];
+ for (size_t bi = 0; bi < write_bkpts.size(); bi++) {
+ const auto& b = write_bkpts[bi];
if (ranges_overlap(address, size, b.offset, b.length)) {
printf("Write watchpoint @ 0x%08x\n", address);
m68k_breakpoint_callback();