notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
random warning fixes
[fceu.git]
/
boards
/
n106.c
diff --git
a/boards/n106.c
b/boards/n106.c
index
2872d16
..
0b14ccf
100644
(file)
--- a/
boards/n106.c
+++ b/
boards/n106.c
@@
-47,7
+47,7
@@
static uint8 gorko;
static void NamcoSound(int Count);
static void NamcoSoundHack(void);
static void DoNamcoSound(int32 *Wave, int Count);
static void NamcoSound(int Count);
static void NamcoSoundHack(void);
static void DoNamcoSound(int32 *Wave, int Count);
-
//
static void DoNamcoSoundHQ(void);
+static void DoNamcoSoundHQ(void);
static void SyncHQ(int32 ts);
static int is210; /* Lesser mapper. */
static void SyncHQ(int32 ts);
static int is210; /* Lesser mapper. */
@@
-88,7
+88,9
@@
static DECLFR(Namco_Read4800)
{
uint8 ret=IRAM[dopol&0x7f];
/* Maybe I should call NamcoSoundHack() here? */
{
uint8 ret=IRAM[dopol&0x7f];
/* Maybe I should call NamcoSoundHack() here? */
+ #ifdef FCEUDEF_DEBUGGER
if(!fceuindbg)
if(!fceuindbg)
+ #endif
if(dopol&0x80)
dopol=(dopol&0x80)|((dopol+1)&0x7f);
return ret;
if(dopol&0x80)
dopol=(dopol&0x80)|((dopol+1)&0x7f);
return ret;
@@
-179,7
+181,7
@@
static DECLFW(Mapper19_write)
{
NamcoSoundHack();
GameExpSound.Fill=NamcoSound;
{
NamcoSoundHack();
GameExpSound.Fill=NamcoSound;
- GameExpSound.HiFill=
0;//
DoNamcoSoundHQ;
+ GameExpSound.HiFill=DoNamcoSoundHQ;
GameExpSound.HiSync=SyncHQ;
}
FixCache(dopol,V);
GameExpSound.HiSync=SyncHQ;
}
FixCache(dopol,V);
@@
-220,13
+222,11
@@
static int dwave=0;
static void NamcoSoundHack(void)
{
int32 z,a;
static void NamcoSoundHack(void)
{
int32 z,a;
-#if 0
if(FSettings.soundq>=1)
{
DoNamcoSoundHQ();
return;
}
if(FSettings.soundq>=1)
{
DoNamcoSoundHQ();
return;
}
-#endif
z=((SOUNDTS<<16)/soundtsinc)>>4;
a=z-dwave;
if(a) DoNamcoSound(&Wave[dwave], a);
z=((SOUNDTS<<16)/soundtsinc)>>4;
a=z-dwave;
if(a) DoNamcoSound(&Wave[dwave], a);
@@
-274,7
+274,6
@@
static INLINE uint32 FetchDuff(uint32 P, uint32 envelope)
return(duff);
}
return(duff);
}
-#if 0
static void DoNamcoSoundHQ(void)
{
int32 P,V;
static void DoNamcoSoundHQ(void)
{
int32 P,V;
@@
-311,7
+310,7
@@
static void DoNamcoSoundHQ(void)
}
CVBC=SOUNDTS;
}
}
CVBC=SOUNDTS;
}
-#endif
+
static void DoNamcoSound(int32 *Wave, int Count)
{
static void DoNamcoSound(int32 *Wave, int Count)
{
@@
-445,7
+444,7
@@
void Mapper19_Init(CartInfo *info)
Mapper19_ESI();
AddExState(WRAM, 8192, 0, "WRAM");
Mapper19_ESI();
AddExState(WRAM, 8192, 0, "WRAM");
- AddExState(IRAM, 128, 0, "
W
RAM");
+ AddExState(IRAM, 128, 0, "
I
RAM");
AddExState(N106_StateRegs, ~0, 0, 0);
if(info->battery)
AddExState(N106_StateRegs, ~0, 0, 0);
if(info->battery)
@@
-469,4
+468,5
@@
void Mapper210_Init(CartInfo *info)
GameStateRestore=Mapper210_StateRestore;
info->Power=N106_Power;
AddExState(WRAM, 8192, 0, "WRAM");
GameStateRestore=Mapper210_StateRestore;
info->Power=N106_Power;
AddExState(WRAM, 8192, 0, "WRAM");
+ AddExState(N106_StateRegs, ~0, 0, 0);
}
}