comparison coleco.h @ 2415:23052186705a

Forgot to commit the colecovision files
author Michael Pavone <pavone@retrodev.com>
date Thu, 04 Jan 2024 23:46:32 -0800
parents
children
comparison
equal deleted inserted replaced
2414:dc05f1805921 2415:23052186705a
1 #ifndef COLECO_H_
2 #define COLECO_H_
3
4 #include "system.h"
5 #include "vdp.h"
6 #include "psg.h"
7 #ifdef NEW_CORE
8 #include "z80.h"
9 #else
10 #include "z80_to_x86.h"
11 #endif
12
13 #define COLECO_BIOS_SIZE (8 * 1024)
14 #define COLECO_RAM_SIZE (1 * 1024)
15
16 typedef struct {
17 system_header header;
18 z80_context *z80;
19 vdp_context *vdp;
20 psg_context *psg;
21 uint8_t *rom;
22 uint32_t rom_size;
23 uint32_t normal_clock;
24 uint32_t master_clock;
25 uint32_t last_frame;
26 uint8_t ram[COLECO_RAM_SIZE];
27 uint8_t bios[COLECO_BIOS_SIZE];
28 uint8_t controller_state[4];
29 uint8_t controller_select;
30 uint8_t should_return;
31 } coleco_context;
32
33 coleco_context *alloc_configure_coleco(system_media *media);
34
35 #endif //COLECO_H_