summaryrefslogtreecommitdiff
path: root/bus.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'bus.hpp')
-rw-r--r--bus.hpp9
1 files changed, 9 insertions, 0 deletions
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 <cstdint>
+#include <vector>
+#include <algorithm>
+
#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<Breakpoint> code_bkpts, read_bkpts, write_bkpts, access_bkpts;