perfect vsync, bugfixes
[fceu.git] / boards / n106.c
index 2872d16..d54af02 100644 (file)
@@ -23,8 +23,8 @@
 static uint16 IRQCount;
 static uint8 IRQa;
 
-static uint8 WRAM[8192];
-static uint8 IRAM[128];
+static uint8 WRAM[8192] __attribute__ ((aligned (4)));
+static uint8 IRAM[128] __attribute__ ((aligned (4)));
 
 static DECLFR(AWRAM)
 {
@@ -229,7 +229,7 @@ static void NamcoSoundHack(void)
 #endif
   z=((SOUNDTS<<16)/soundtsinc)>>4;
   a=z-dwave;
-  if(a) DoNamcoSound(&Wave[dwave], a);
+  if(a) DoNamcoSound((int32 *)&Wave[dwave], a);
   dwave+=a;
 }
 
@@ -238,7 +238,7 @@ static void NamcoSound(int Count)
   int32 z,a;
   z=((SOUNDTS<<16)/soundtsinc)>>4;
   a=z-dwave;
-  if(a) DoNamcoSound(&Wave[dwave], a);
+  if(a) DoNamcoSound((int32 *)&Wave[dwave], a);
   dwave=0;
 }