aboutsummaryrefslogtreecommitdiff
path: root/source/sdd1.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/sdd1.c')
-rw-r--r--source/sdd1.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/sdd1.c b/source/sdd1.c
index 7dc6f4a..1ba8187 100644
--- a/source/sdd1.c
+++ b/source/sdd1.c
@@ -117,7 +117,8 @@ void S9xSetSDD1MemoryMap (uint32 bank, uint32 value)
void S9xResetSDD1 ()
{
memset (&Memory.FillRAM [0x4800], 0, 4);
- for (int i = 0; i < 4; i++)
+ int i;
+ for (i = 0; i < 4; i++)
{
Memory.FillRAM [0x4804 + i] = i;
S9xSetSDD1MemoryMap (i, i);
@@ -126,7 +127,8 @@ void S9xResetSDD1 ()
void S9xSDD1PostLoadState ()
{
- for (int i = 0; i < 4; i++)
+ int i;
+ for (i = 0; i < 4; i++)
S9xSetSDD1MemoryMap (i, Memory.FillRAM [0x4804 + i]);
}