See if this gets us through the day

This commit is contained in:
twinaphex 2017-08-06 01:12:49 +02:00
parent 1e5c1e3058
commit a96d21f47f

View File

@ -1058,7 +1058,8 @@ static void S9XSetC4Square(void)
{
int64 b = (int64) READ_3WORD(Memory.C4RAM + 0x1f80);
int64 c = b << 40;
int64 a = SAR(c, 40); /* TODO/FIXME - Compiler stack overflow with MSVC 2005 happens here */
int64 a = SAR(c, 30);
a = SAR(c, 10);
a *= a;
WRITE_3WORD(Memory.C4RAM + 0x1f83, a);
WRITE_3WORD(Memory.C4RAM + 0x1f86, (a >> 24));