diff options
author | Oxore <oxore@protonmail.com> | 2022-08-26 12:31:10 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2022-08-26 12:31:10 +0300 |
commit | 96c3e7de19b8e524dfd6166e5841552b5a0d7bff (patch) | |
tree | 3b13039968ea6ef543c51e5a9fcce626cd2c1fc9 /bus.h | |
parent | 172c367b5ae9d7c56515958b511836c17f6008a1 (diff) |
Split bus functionality
Diffstat (limited to 'bus.h')
-rw-r--r-- | bus.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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]; |