compat hacks for this old version of fceu
authornotaz <notasas@gmail.com>
Sun, 30 Sep 2012 15:02:12 +0000 (18:02 +0300)
committernotaz <notasas@gmail.com>
Sun, 30 Sep 2012 15:09:39 +0000 (18:09 +0300)
boards/Makefile
boards/addrlatch.c
boards/bandai.c
boards/mapinc.h
boards/mmc3.c
drivers/common/input.c
mappers/mapinc.h
sound.c
sound.h

index 33f1c5f..d85a466 100644 (file)
@@ -102,7 +102,6 @@ B_C += boards/KS7032.c
 B_C += boards/KS7037.c
 B_C += boards/KS7057.c
 B_C += boards/SA-9602B.c
-B_C += boards/__serial.c
 B_C += boards/ac-08.c
 B_C += boards/bb.c
 B_C += boards/cityfighter.c
index afd0919..031315a 100644 (file)
@@ -128,7 +128,7 @@ static void UNL43272Sync(void)
     setprg32(0x8000,(latche&0x38)>>3);\r
   }\r
   else\r
-    FCEU_printf("unrecognized command %04!\n",latche);\r
+    FCEU_printf("unrecognized command %04x!\n",latche);\r
   setchr8(0);\r
   setmirror(0);\r
 }\r
index 8928bfb..b1f4dde 100644 (file)
@@ -349,7 +349,7 @@ void Mapper157_Init(CartInfo *info)
   info->Power=M157Power;\r
   MapIRQHook=BarcodeIRQHook;\r
 \r
-  FCEUGameInfo->cspecial = SIS_DATACH;\r
+  GameInfo->cspecial = SIS_DATACH;\r
 \r
   GameStateRestore=StateRestore;\r
   AddExState(&StateRegs, ~0, 0, 0);\r
index e305e30..7c2b042 100644 (file)
@@ -8,4 +8,5 @@
 #include "../cart.h"
 #include "../cheat.h"
 #include "../unif.h"
+#include "../svga.h"
 #include <string.h>
index 6d3af95..415e3bf 100644 (file)
@@ -276,6 +276,11 @@ void GenMMC3Power(void)
    FCEU_CheatAddRAM(1,0x7000,WRAM);
    SetReadHandler(0x7000,0x7FFF,MAWRAMMMC6);
    SetWriteHandler(0x7000,0x7FFF,MBWRAMMMC6);
+#ifdef ASM_6502
+   // asm code needs pages to be set again..
+   Page[14]=WRAM-0x7000;
+   Page[15]=WRAM-0x7800;
+#endif
   }
   else
   {
@@ -1374,6 +1379,10 @@ static void M254_Power(void)
  GenMMC3Power();
  SetWriteHandler(0x8000,0xBFFF,M254Write);
  SetReadHandler(0x6000,0x7FFF,MR254WRAM);
+#ifdef ASM_6502
+ // hrrr.. can't handle those evil xors here..
+ Page[12]=Page[13]=Page[14]=Page[15]=WRAM-0x6000;
+#endif
 }
 
 void Mapper254_Init(CartInfo *info)
index e4d0466..10c6efa 100644 (file)
@@ -380,3 +380,9 @@ static void PrepareOtherInput(void)
        // printf("generated combo_acts: %08x, combo_keys: %08x\n", combo_acts, combo_keys);
 }
 
+// TODO?
+char *GetKeyboard(void)
+{
+       static char dummy[256];
+       return dummy;
+}
index 2c7acf0..7e2f5e3 100644 (file)
@@ -8,4 +8,5 @@
 #include "../memory.h"
 #include "../sound.h"
 #include "../state.h"
+#include "../svga.h"
 #include <string.h>
diff --git a/sound.c b/sound.c
index f95b050..70ce2d4 100644 (file)
--- a/sound.c
+++ b/sound.c
@@ -40,6 +40,7 @@
 #include "sound.h"
 
 uint32 Wave[2048+512];
+int32 WaveHi[40000]; // unused
 int16 WaveFinalMono[2048+512];
 
 EXPSOUND GameExpSound={0,0,0,0,0,0};
diff --git a/sound.h b/sound.h
index fcaaf16..223aa6d 100644 (file)
--- a/sound.h
+++ b/sound.h
@@ -74,6 +74,7 @@ int GetSoundBuffer(int16 **W);
 int FlushEmulateSound(void);
 extern uint32 Wave[2048+512];
 extern int16 WaveFinalMono[2048+512];
+extern int32 WaveHi[];
 extern uint32 soundtsinc;
 
 extern uint32 soundtsoffs;