diff options
Diffstat (limited to 'bus.hpp')
-rw-r--r-- | bus.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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]; |