diff options
author | twinaphex | 2017-08-16 06:57:36 +0200 |
---|---|---|
committer | twinaphex | 2017-08-16 06:57:36 +0200 |
commit | aa610b2ba997a945c77ce06e9a33638dedb480da (patch) | |
tree | 5f5d5448a458492bfb220eb2dc6d80096692c1b6 /source/sdd1.c | |
parent | 7a8802b9311099e5034054a69a309dcb17661dfa (diff) | |
download | snes9x2005-aa610b2ba997a945c77ce06e9a33638dedb480da.tar.gz snes9x2005-aa610b2ba997a945c77ce06e9a33638dedb480da.tar.bz2 snes9x2005-aa610b2ba997a945c77ce06e9a33638dedb480da.zip |
More C89_BUILD fixes
Diffstat (limited to 'source/sdd1.c')
-rw-r--r-- | source/sdd1.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/sdd1.c b/source/sdd1.c index 3a46ec9..3847b13 100644 --- a/source/sdd1.c +++ b/source/sdd1.c @@ -7,9 +7,10 @@ void S9xSetSDD1MemoryMap(uint32_t bank, uint32_t value) { + int32_t c; + bank = 0xc00 + bank * 0x100; value = value * 1024 * 1024; - int32_t c; for (c = 0; c < 0x100; c += 16) { uint8_t* block = &Memory.ROM [value + (c << 12)]; @@ -22,8 +23,9 @@ void S9xSetSDD1MemoryMap(uint32_t bank, uint32_t value) void S9xResetSDD1() { - memset(&Memory.FillRAM [0x4800], 0, 4); int32_t i; + + memset(&Memory.FillRAM [0x4800], 0, 4); for (i = 0; i < 4; i++) { Memory.FillRAM [0x4804 + i] = i; |