Mercurial > repos > blastem
comparison blastem.h @ 483:3e1573fa22cf
Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 01 Oct 2013 23:51:16 -0700 |
parents | 140af5509ce7 |
children | b7b7a1cab44a |
comparison
equal
deleted
inserted
replaced
482:4b24260125f3 | 483:3e1573fa22cf |
---|---|
1 /* | 1 /* |
2 Copyright 2013 Michael Pavone | 2 Copyright 2013 Michael Pavone |
3 This file is part of BlastEm. | 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. | 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 */ | 5 */ |
6 #ifndef BLASTEM_H_ | 6 #ifndef BLASTEM_H_ |
7 #define BLASTEM_H_ | 7 #define BLASTEM_H_ |
8 | 8 |
28 ym2612_context *ym; | 28 ym2612_context *ym; |
29 psg_context *psg; | 29 psg_context *psg; |
30 uint8_t *save_ram; | 30 uint8_t *save_ram; |
31 uint32_t save_ram_mask; | 31 uint32_t save_ram_mask; |
32 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) | |
33 uint8_t bank_regs[8]; | 35 uint8_t bank_regs[8]; |
34 io_port ports[3]; | 36 io_port ports[3]; |
35 } genesis_context; | 37 } genesis_context; |
36 | 38 |
37 extern genesis_context * genesis; | 39 extern genesis_context * genesis; |
41 extern uint8_t busreq; | 43 extern uint8_t busreq; |
42 extern uint8_t reset; | 44 extern uint8_t reset; |
43 | 45 |
44 uint16_t read_dma_value(uint32_t address); | 46 uint16_t read_dma_value(uint32_t address); |
45 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); | |
46 | 49 |
47 #endif //BLASTEM_H_ | 50 #endif //BLASTEM_H_ |
48 | 51 |