aboutsummaryrefslogtreecommitdiff
path: root/source/sdd1.c
diff options
context:
space:
mode:
authorJoão Silva2017-01-29 04:55:23 +0000
committerJoão Silva2017-01-29 04:55:23 +0000
commit0e59b999fa976de2d00490f552a1ff0a27d40f63 (patch)
treeadce7b06d1acc25f52c6e10616451bba02f9f7a5 /source/sdd1.c
parent813fc89d37d1d8c8d2fa090a28f74aa0fdcea5df (diff)
downloadsnes9x2005-0e59b999fa976de2d00490f552a1ff0a27d40f63.tar.gz
snes9x2005-0e59b999fa976de2d00490f552a1ff0a27d40f63.tar.bz2
snes9x2005-0e59b999fa976de2d00490f552a1ff0a27d40f63.zip
Converted most types to stdint-style (fixing a few in the process).
Diffstat (limited to 'source/sdd1.c')
-rw-r--r--source/sdd1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/sdd1.c b/source/sdd1.c
index 93e3a7e..58b934e 100644
--- a/source/sdd1.c
+++ b/source/sdd1.c
@@ -10,12 +10,12 @@ void S9xSetSDD1MemoryMap(uint32_t bank, uint32_t value)
bank = 0xc00 + bank * 0x100;
value = value * 1024 * 1024;
- int c;
+ int32_t c;
for (c = 0; c < 0x100; c += 16)
{
uint8_t* block = &Memory.ROM [value + (c << 12)];
- int i;
+ int32_t i;
for (i = c; i < c + 16; i++)
Memory.Map [i + bank] = block;
@@ -25,7 +25,7 @@ void S9xSetSDD1MemoryMap(uint32_t bank, uint32_t value)
void S9xResetSDD1()
{
memset(&Memory.FillRAM [0x4800], 0, 4);
- int i;
+ int32_t i;
for (i = 0; i < 4; i++)
{
Memory.FillRAM [0x4804 + i] = i;
@@ -35,7 +35,7 @@ void S9xResetSDD1()
void S9xSDD1PostLoadState()
{
- int i;
+ int32_t i;
for (i = 0; i < 4; i++)
S9xSetSDD1MemoryMap(i, Memory.FillRAM [0x4804 + i]);
}