Mercurial > repos > blastem
comparison blastem.h @ 487:c08a4efeee7f opengl
Update opengl branch from default. Fix build breakage unrelated to merge
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 26 Oct 2013 22:38:47 -0700 |
parents | 3e1573fa22cf |
children | b7b7a1cab44a |
comparison
equal
deleted
inserted
replaced
449:7696d824489d | 487:c08a4efeee7f |
---|---|
1 /* | |
2 Copyright 2013 Michael Pavone | |
3 This file is part of BlastEm. | |
4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. | |
5 */ | |
1 #ifndef BLASTEM_H_ | 6 #ifndef BLASTEM_H_ |
2 #define BLASTEM_H_ | 7 #define BLASTEM_H_ |
3 | 8 |
4 #include <stdint.h> | 9 #include <stdint.h> |
5 #include "m68k_to_x86.h" | 10 #include "m68k_to_x86.h" |
6 #include "z80_to_x86.h" | 11 #include "z80_to_x86.h" |
7 #include "ym2612.h" | 12 #include "ym2612.h" |
8 #include "vdp.h" | 13 #include "vdp.h" |
9 #include "psg.h" | 14 #include "psg.h" |
10 #include "io.h" | 15 #include "io.h" |
16 #include "config.h" | |
11 | 17 |
12 #define RAM_FLAG_ODD 0x1800 | 18 #define RAM_FLAG_ODD 0x1800 |
13 #define RAM_FLAG_EVEN 0x1000 | 19 #define RAM_FLAG_EVEN 0x1000 |
14 #define RAM_FLAG_BOTH 0x0000 | 20 #define RAM_FLAG_BOTH 0x0000 |
15 | 21 |
22 ym2612_context *ym; | 28 ym2612_context *ym; |
23 psg_context *psg; | 29 psg_context *psg; |
24 uint8_t *save_ram; | 30 uint8_t *save_ram; |
25 uint32_t save_ram_mask; | 31 uint32_t save_ram_mask; |
26 uint32_t save_flags; | 32 uint32_t save_flags; |
33 uint32_t master_clock; //Current master clock value | |
34 uint32_t normal_clock; //Normal master clock (used to restore master clock after turbo mode) | |
27 uint8_t bank_regs[8]; | 35 uint8_t bank_regs[8]; |
28 io_port ports[3]; | 36 io_port ports[3]; |
29 } genesis_context; | 37 } genesis_context; |
30 | 38 |
31 extern genesis_context * genesis; | 39 extern genesis_context * genesis; |
32 extern int break_on_sync; | 40 extern int break_on_sync; |
41 extern int save_state; | |
42 extern tern_node * config; | |
43 extern uint8_t busreq; | |
44 extern uint8_t reset; | |
33 | 45 |
34 uint16_t read_dma_value(uint32_t address); | 46 uint16_t read_dma_value(uint32_t address); |
35 m68k_context * debugger(m68k_context * context, uint32_t address); | 47 m68k_context * debugger(m68k_context * context, uint32_t address); |
48 void set_speed_percent(genesis_context * context, uint32_t percent); | |
36 | 49 |
37 #endif //BLASTEM_H_ | 50 #endif //BLASTEM_H_ |
38 | 51 |