diff options
author | Oxore <oxore@protonmail.com> | 2022-08-27 11:53:25 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2022-08-27 11:53:25 +0300 |
commit | 903b8dbcaad887f6e14cc8cffc22ddda08dc9f85 (patch) | |
tree | 01254a3d08791a71dea3e7f987b859ae58921d35 /bus.hpp | |
parent | c1b9fead37e32be1b2f97d5be2d8254fdc16d307 (diff) |
Move to C++ completely
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]; |