aboutsummaryrefslogtreecommitdiff
path: root/source/seta010.c
diff options
context:
space:
mode:
authorJoão Silva2017-01-16 22:39:57 +0000
committerJoão Silva2017-01-16 22:39:57 +0000
commitcbbfa871ae3d9db3852d9122a6d8355896c073ed (patch)
tree73e7755d117b8dd9eea499977c632727deb20d00 /source/seta010.c
parent7ed90abe19954aaf1fa56657a08e3cae4c8a67ce (diff)
downloadsnesemu-cbbfa871ae3d9db3852d9122a6d8355896c073ed.tar.gz
snesemu-cbbfa871ae3d9db3852d9122a6d8355896c073ed.tar.bz2
snesemu-cbbfa871ae3d9db3852d9122a6d8355896c073ed.zip
Many cleanups.
Diffstat (limited to 'source/seta010.c')
-rw-r--r--source/seta010.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source/seta010.c b/source/seta010.c
index 856e700..b9ce7c3 100644
--- a/source/seta010.c
+++ b/source/seta010.c
@@ -36,10 +36,6 @@ bool seta_hack;
//temporary Op04 requirement
#include <math.h>
-#ifndef PI
-#define PI 3.1415926535897932384626433832795
-#endif
-
ST010_Regs ST010;
uint8_t S9xGetST010(uint32_t Address)
@@ -288,12 +284,6 @@ void ST010_Rotate(int16_t Theta, int16_t X0, int16_t Y0, int16_t* X1, int16_t* Y
*Y1 = (Y0 * ST010_Cos(Theta) >> 15) - (X0 * ST010_Sin(Theta) >> 15);
}
-void SETA_Distance(int16_t Y0, int16_t X0, int16_t* Distance)
-{
- if (X0 < 0) X0 = -X0;
- *Distance = ((X0 * 0x7af0) + 0x4000) >> 15;
-}
-
void ST010_SortDrivers(uint16_t Positions, uint16_t Places[32], uint16_t Drivers[32])
{
bool Sorted;
@@ -331,7 +321,6 @@ void S9xSetST010(uint32_t Address, uint8_t Byte)
ST010.control_enable = true;
return;
}
- //printf("Write %06X:%02X\n", Address, Byte);
if ((Address & 0xFFF) == 0x20 && ST010.control_enable)
ST010.op_reg = Byte;
@@ -574,7 +563,6 @@ void S9xSetST010(uint32_t Address, uint8_t Byte)
y = Memory.SRAM[2] | (Memory.SRAM[3] << 8);
#endif
square = (int16_t)sqrt((double)(y * y + x * x));
- //SETA_Distance( x,y,square );
#if defined(FAST_LSB_WORD_ACCESS) && !defined(ANDROID)
/* TODO - FIXME */
@@ -743,4 +731,3 @@ void S9xSetST010(uint32_t Address, uint8_t Byte)
ST010.execute = 0;
}
}
-