summaryrefslogtreecommitdiff
path: root/bus.hpp
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2022-09-25 18:05:16 +0300
committerOxore <oxore@protonmail.com>2022-09-25 18:10:47 +0300
commit0dc9d15cdcc9cadffaeec9dfbc2b047fe064fee4 (patch)
tree47eeb86a142b4c74db702cab40015db0d5a8336d /bus.hpp
parent3cd8c083c736cd95be8e575fa70535f9c8eab924 (diff)
Add Z80 BUSREQ and sound RAM
Diffstat (limited to 'bus.hpp')
-rw-r--r--bus.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/bus.hpp b/bus.hpp
index 1b4503d..6d87da3 100644
--- a/bus.hpp
+++ b/bus.hpp
@@ -11,6 +11,8 @@
#define ROM_SIZE (0x400000)
#define RAM_START (0xFF0000)
#define RAM_SIZE (0x10000)
+#define SOUND_RAM_START (0xA00000)
+#define SOUND_RAM_SIZE (0x2000)
#define IO1_START (0xA10000)
#define IO1_SIZE (0x4004)
#define IO2_START (0xC00000)
@@ -22,6 +24,7 @@ struct Breakpoint {
extern unsigned char g_rom[ROM_SIZE];
extern unsigned char g_ram[RAM_SIZE];
+extern unsigned char g_sound_ram[SOUND_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;