Mercurial > repos > blastem
comparison blastem.h @ 776:cbf97d335444
Full support for Sega mapper when it comes to data. Code in remapped sections may not work reliably. SSF2 now works.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 20 Jul 2015 21:15:34 -0700 |
parents | 4638b88bc72d |
children | 092524bb2e8f |
comparison
equal
deleted
inserted
replaced
775:22728a57d7f3 | 776:cbf97d335444 |
---|---|
30 uint32_t master_clock; //Current master clock value | 30 uint32_t master_clock; //Current master clock value |
31 uint32_t normal_clock; //Normal master clock (used to restore master clock after turbo mode) | 31 uint32_t normal_clock; //Normal master clock (used to restore master clock after turbo mode) |
32 uint32_t frame_end; | 32 uint32_t frame_end; |
33 uint32_t max_cycles; | 33 uint32_t max_cycles; |
34 uint8_t bank_regs[8]; | 34 uint8_t bank_regs[8]; |
35 uint16_t mapper_start_index; | |
35 uint8_t save_type; | 36 uint8_t save_type; |
36 io_port ports[3]; | 37 io_port ports[3]; |
37 uint8_t bus_busy; | 38 uint8_t bus_busy; |
38 eeprom_state eeprom; | 39 eeprom_state eeprom; |
39 } genesis_context; | 40 } genesis_context; |
42 extern int headless; | 43 extern int headless; |
43 extern int break_on_sync; | 44 extern int break_on_sync; |
44 extern int save_state; | 45 extern int save_state; |
45 extern tern_node * config; | 46 extern tern_node * config; |
46 | 47 |
47 #define CARTRIDGE_WORDS 0x200000 | |
48 #define RAM_WORDS 32 * 1024 | 48 #define RAM_WORDS 32 * 1024 |
49 #define Z80_RAM_BYTES 8 * 1024 | 49 #define Z80_RAM_BYTES 8 * 1024 |
50 | 50 |
51 extern uint16_t cart[CARTRIDGE_WORDS]; | 51 extern uint16_t *cart; |
52 extern uint16_t ram[RAM_WORDS]; | 52 extern uint16_t ram[RAM_WORDS]; |
53 extern uint8_t z80_ram[Z80_RAM_BYTES]; | 53 extern uint8_t z80_ram[Z80_RAM_BYTES]; |
54 | 54 |
55 uint16_t read_dma_value(uint32_t address); | 55 uint16_t read_dma_value(uint32_t address); |
56 m68k_context * sync_components(m68k_context *context, uint32_t address); | 56 m68k_context * sync_components(m68k_context *context, uint32_t address); |