summaryrefslogtreecommitdiff
path: root/bus.hpp
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2022-08-27 11:53:25 +0300
committerOxore <oxore@protonmail.com>2022-08-27 11:53:25 +0300
commit903b8dbcaad887f6e14cc8cffc22ddda08dc9f85 (patch)
tree01254a3d08791a71dea3e7f987b859ae58921d35 /bus.hpp
parentc1b9fead37e32be1b2f97d5be2d8254fdc16d307 (diff)
Move to C++ completely
Diffstat (limited to 'bus.hpp')
-rw-r--r--bus.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/bus.hpp b/bus.hpp
new file mode 100644
index 0000000..baa65be
--- /dev/null
+++ b/bus.hpp
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: Unlicense
+ */
+
+#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];