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.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bus.hpp') diff --git a/bus.hpp b/bus.hpp index baa65be..1b4503d 100644 --- a/bus.hpp +++ b/bus.hpp @@ -3,6 +3,10 @@ #pragma once +#include +#include +#include + #define ROM_START (0) #define ROM_SIZE (0x400000) #define RAM_START (0xFF0000) @@ -12,7 +16,12 @@ #define IO2_START (0xC00000) #define IO2_SIZE (0x20) +struct Breakpoint { + uint32_t offset, length; +}; + extern unsigned char g_rom[ROM_SIZE]; extern unsigned char g_ram[RAM_SIZE]; extern unsigned char g_io1[IO1_SIZE]; extern unsigned char g_io2[IO2_SIZE]; +extern std::vector code_bkpts, read_bkpts, write_bkpts, access_bkpts; -- cgit v1.2.3