diff options
author | aliaspider | 2014-10-31 00:32:50 +0100 |
---|---|---|
committer | aliaspider | 2014-10-31 00:32:50 +0100 |
commit | 545c5d00d6a1ee596d6992c498108cb3977a1b9a (patch) | |
tree | 30e5caea2512de13335f564da8186e9ff5dbb574 /source/memmap.c | |
parent | 55f93efc8f9fa487103495ae90972b7ed8d4d824 (diff) | |
parent | c10370ed571d57032f435ddd69877318e7d5bd4b (diff) | |
download | snes9x2005-545c5d00d6a1ee596d6992c498108cb3977a1b9a.tar.gz snes9x2005-545c5d00d6a1ee596d6992c498108cb3977a1b9a.tar.bz2 snes9x2005-545c5d00d6a1ee596d6992c498108cb3977a1b9a.zip |
Merge branch 'master' of https://github.com/libretro/CATSFC-libretro
Diffstat (limited to 'source/memmap.c')
-rw-r--r-- | source/memmap.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/memmap.c b/source/memmap.c index 0dfeddf..09149f2 100644 --- a/source/memmap.c +++ b/source/memmap.c @@ -471,13 +471,13 @@ bool8 Init() SuperFX.nRomBanks = (2 * 1024 * 1024) / (32 * 1024); SuperFX.pvRom = (uint8*) Memory.ROM; - ZeroMemory(IPPU.TileCache [TILE_2BIT], MAX_2BIT_TILES * 128); - ZeroMemory(IPPU.TileCache [TILE_4BIT], MAX_4BIT_TILES * 128); - ZeroMemory(IPPU.TileCache [TILE_8BIT], MAX_8BIT_TILES * 128); + memset(IPPU.TileCache [TILE_2BIT], 0, MAX_2BIT_TILES * 128); + memset(IPPU.TileCache [TILE_4BIT], 0, MAX_4BIT_TILES * 128); + memset(IPPU.TileCache [TILE_8BIT], 0, MAX_8BIT_TILES * 128); - ZeroMemory(IPPU.TileCached [TILE_2BIT], MAX_2BIT_TILES); - ZeroMemory(IPPU.TileCached [TILE_4BIT], MAX_4BIT_TILES); - ZeroMemory(IPPU.TileCached [TILE_8BIT], MAX_8BIT_TILES); + memset(IPPU.TileCached [TILE_2BIT], 0, MAX_2BIT_TILES); + memset(IPPU.TileCached [TILE_4BIT], 0, MAX_4BIT_TILES); + memset(IPPU.TileCached [TILE_8BIT], 0, MAX_8BIT_TILES); Memory.SDD1Data = NULL; Memory.SDD1Index = NULL; @@ -672,7 +672,7 @@ again: } Memory.CalculatedSize = TotalFileSize & ~0x1FFF; // round down to lower 0x2000 - ZeroMemory(Memory.ROM + Memory.CalculatedSize, + memset(Memory.ROM + Memory.CalculatedSize, 0, MAX_ROM_SIZE - Memory.CalculatedSize); if (Memory.CalculatedSize > 0x400000 && @@ -1307,8 +1307,8 @@ void InitROM(bool8 Interleaved) } } - ZeroMemory(Memory.BlockIsRAM, MEMMAP_NUM_BLOCKS); - ZeroMemory(Memory.BlockIsROM, MEMMAP_NUM_BLOCKS); + memset(Memory.BlockIsRAM, 0, MEMMAP_NUM_BLOCKS); + memset(Memory.BlockIsROM, 0, MEMMAP_NUM_BLOCKS); Memory.SRAM = Memory.SRAM; memset(Memory.ROMId, 0, 5); |