Mercurial > repos > blastem
comparison genesis.h @ 1752:d6d4c006a7b3
Initial attempt at interrupts in new Z80 core and integrating it into main executable
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 10 Feb 2019 11:58:23 -0800 |
parents | 319d90025d50 |
children | bb4d19c7c047 |
comparison
equal
deleted
inserted
replaced
1751:c5d4e1d14dac | 1752:d6d4c006a7b3 |
---|---|
7 #define GENESIS_H_ | 7 #define GENESIS_H_ |
8 | 8 |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include "system.h" | 10 #include "system.h" |
11 #include "m68k_core.h" | 11 #include "m68k_core.h" |
12 #ifdef NEW_CORE | |
13 #include "z80.h" | |
14 #else | |
12 #include "z80_to_x86.h" | 15 #include "z80_to_x86.h" |
16 #endif | |
13 #include "ym2612.h" | 17 #include "ym2612.h" |
14 #include "vdp.h" | 18 #include "vdp.h" |
15 #include "psg.h" | 19 #include "psg.h" |
16 #include "io.h" | 20 #include "io.h" |
17 #include "romdb.h" | 21 #include "romdb.h" |
53 uint8_t save_type; | 57 uint8_t save_type; |
54 sega_io io; | 58 sega_io io; |
55 uint8_t version_reg; | 59 uint8_t version_reg; |
56 uint8_t bus_busy; | 60 uint8_t bus_busy; |
57 uint8_t reset_requested; | 61 uint8_t reset_requested; |
62 uint8_t z80_bank_reg; | |
58 eeprom_state eeprom; | 63 eeprom_state eeprom; |
59 nor_state nor; | 64 nor_state nor; |
60 }; | 65 }; |
61 | 66 |
62 #define RAM_WORDS 32 * 1024 | 67 #define RAM_WORDS 32 * 1024 |