diff options
author | Twinaphex | 2017-02-12 16:02:47 +0100 |
---|---|---|
committer | GitHub | 2017-02-12 16:02:47 +0100 |
commit | 474a67ccdccb89d369c706347085ca4619f0cbef (patch) | |
tree | cb331b665bc5d53ad180d5500bf37e2dfbf683d8 /source/memmap.h | |
parent | b6006bc542f89ad1b7086268f851f0ba880ad6cd (diff) | |
parent | fb2517282da2fdfc26e58207bbb8e0a8bca35be2 (diff) | |
download | snesemu-474a67ccdccb89d369c706347085ca4619f0cbef.tar.gz snesemu-474a67ccdccb89d369c706347085ca4619f0cbef.tar.bz2 snesemu-474a67ccdccb89d369c706347085ca4619f0cbef.zip |
Merge pull request #31 from jamsilva/master
Improvements to both accuracy and performance.
Diffstat (limited to 'source/memmap.h')
-rw-r--r-- | source/memmap.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/source/memmap.h b/source/memmap.h index 3a77033..3cf0138 100644 --- a/source/memmap.h +++ b/source/memmap.h @@ -55,10 +55,10 @@ bool LoadROM(const struct retro_game_info* game); #else bool LoadROM(const char*); #endif -void InitROM(bool); +void InitROM(bool); bool S9xInitMemory(); -void S9xDeinitMemory(); -void FreeSDD1Data(); +void S9xDeinitMemory(); +void FreeSDD1Data(); void WriteProtectROM(); void FixROMSpeed(); @@ -70,6 +70,7 @@ void JumboLoROMMap(bool); void LoROMMap(); void LoROM24MBSMap(); void SRAM512KLoROMMap(); +void SRAM1024KLoROMMap(); void SufamiTurboLoROMMap(); void HiROMMap(); void SuperFXROMMap(); @@ -81,6 +82,8 @@ void SPC7110HiROMMap(); void SPC7110Sram(uint8_t); void SetaDSPMap(); void ApplyROMFixes(); +void DSPMap(); +void CapcomProtectLoROMMap(); const char* TVStandard(); const char* Speed(); @@ -93,6 +96,7 @@ const char* Headers(); const char* ROMID(); const char* CompanyID(); void ParseSNESHeader(uint8_t*); + enum { MAP_PPU, MAP_CPU, MAP_DSP, MAP_LOROM_SRAM, MAP_HIROM_SRAM, @@ -100,7 +104,17 @@ enum MAP_BWRAM_BITMAP2, MAP_SA1RAM, MAP_SPC7110_ROM, MAP_SPC7110_DRAM, MAP_RONLY_SRAM, MAP_OBC_RAM, MAP_SETA_DSP, MAP_SETA_RISC, MAP_LAST }; -enum { MAX_ROM_SIZE = 0x800000 }; + +enum { + MAX_ROM_SIZE = 0x800000 +}; + +enum +{ + MAP_TYPE_I_O, + MAP_TYPE_ROM, + MAP_TYPE_RAM +}; typedef struct { |