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/seta010.c | |
parent | 7a8802b9311099e5034054a69a309dcb17661dfa (diff) | |
download | snes9x2005-aa610b2ba997a945c77ce06e9a33638dedb480da.tar.gz snes9x2005-aa610b2ba997a945c77ce06e9a33638dedb480da.tar.bz2 snes9x2005-aa610b2ba997a945c77ce06e9a33638dedb480da.zip |
More C89_BUILD fixes
Diffstat (limited to 'source/seta010.c')
-rw-r--r-- | source/seta010.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/seta010.c b/source/seta010.c index d452cd9..dd2156c 100644 --- a/source/seta010.c +++ b/source/seta010.c @@ -288,8 +288,9 @@ void ST010_SortDrivers(uint16_t Positions, uint16_t Places[32], uint16_t Drivers { do { - Sorted = true; int32_t i; + + Sorted = true; for(i = 0; i < Positions - 1; i++) { if(Places[i] < Places[i + 1]) @@ -517,6 +518,7 @@ void S9xSetST010(uint32_t Address, uint8_t Byte) (int16_t*) &Memory.SRAM[0x0000], (int16_t*) &Memory.SRAM[0x0002], (int16_t*) &Memory.SRAM[0x0004], (int16_t*) &Memory.SRAM[0x0010]); #else + { int16_t x1, y1, Quadrant, Theta; ST010_OP01(ST010_WORD(0x0000), ST010_WORD(0x0002), &x1, &y1, &Quadrant, &Theta); @@ -529,6 +531,7 @@ void S9xSetST010(uint32_t Address, uint8_t Byte) Memory.SRAM[0x0005] = (uint8_t)(Quadrant >> 8); Memory.SRAM[0x0010] = (uint8_t)(Theta); Memory.SRAM[0x0011] = (uint8_t)(Theta >> 8); + } #endif break; } @@ -563,6 +566,7 @@ void S9xSetST010(uint32_t Address, uint8_t Byte) int32_t dx, dy; int16_t a1, b1, c1; uint16_t o1; + uint16_t old_speed; bool wrap = false; @@ -612,7 +616,7 @@ void S9xSetST010(uint32_t Address, uint8_t Byte) wrap = true; } - uint16_t old_speed = speed; + old_speed = speed; if (ABS(o1 - rot) == 0x8000) /* special case */ speed = 0x100; |