From 903b8dbcaad887f6e14cc8cffc22ddda08dc9f85 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 27 Aug 2022 11:53:25 +0300 Subject: Move to C++ completely --- bus.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 bus.hpp (limited to 'bus.hpp') 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]; -- cgit v1.2.3