blob: 635794d5488c8be1cb95dc89333bbbe6311738d7 (
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
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef BLASTEM_H_
#define BLASTEM_H_
#include <stdint.h>
#include "m68k_to_x86.h"
#include "z80_to_x86.h"
#include "ym2612.h"
#include "vdp.h"
#include "psg.h"
#include "io.h"
#include "config.h"
#define RAM_FLAG_ODD 0x1800
#define RAM_FLAG_EVEN 0x1000
#define RAM_FLAG_BOTH 0x0000
#define CYCLE_NEVER 0xFFFFFFFF
typedef struct {
m68k_context *m68k;
z80_context *z80;
vdp_context *vdp;
ym2612_context *ym;
psg_context *psg;
uint8_t *save_ram;
uint32_t save_ram_mask;
uint32_t save_flags;
uint8_t bank_regs[8];
io_port ports[3];
} genesis_context;
extern genesis_context * genesis;
extern int break_on_sync;
extern tern_node * config;
uint16_t read_dma_value(uint32_t address);
m68k_context * debugger(m68k_context * context, uint32_t address);
#endif //BLASTEM_H_
|