summaryrefslogtreecommitdiff
path: root/bus.h
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2022-08-26 12:31:10 +0300
committerOxore <oxore@protonmail.com>2022-08-26 12:31:10 +0300
commit96c3e7de19b8e524dfd6166e5841552b5a0d7bff (patch)
tree3b13039968ea6ef543c51e5a9fcce626cd2c1fc9 /bus.h
parent172c367b5ae9d7c56515958b511836c17f6008a1 (diff)
Split bus functionality
Diffstat (limited to 'bus.h')
-rw-r--r--bus.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/bus.h b/bus.h
new file mode 100644
index 0000000..4be9527
--- /dev/null
+++ b/bus.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#define ROM_START (0)
+#define ROM_SIZE (0x400000)
+#define RAM_START (0xFF0000)
+#define RAM_SIZE (0x10000)
+#define IO1_START (0xA10000)
+#define IO1_SIZE (0x4004)
+#define IO2_START (0xC00000)
+#define IO2_SIZE (0x20)
+
+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];