summaryrefslogtreecommitdiff
path: root/bus.hpp
blob: e776d604740e7060f29e0c18c39218248c65ce7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* SPDX-License-Identifier: Unlicense
 */

#pragma once

#include <cstdint>

#define ROM_START       (0)
#define ROM_SIZE        (0x400000)
#define RAM_START       (0xFF0000)
#define RAM_SIZE        (0x10000)
#define SOUND_RAM_START (0xA00000)
#define SOUND_RAM_SIZE  (0x2000)
#define IO1_START       (0xA10000)
#define IO1_SIZE        (0x4004)
#define VDP_START       (0xC00000)
#define VDP_SIZE        (0x20)
#define PSG_START       (0xC00011)
#define PSG_SIZE        (0x1)

enum bitness {
    BITNESS_8 = 1,
    BITNESS_16 = 2,
    BITNESS_32 = 4,
};

struct Breakpoint {
    uint32_t offset, length;
};