notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge mapper code from FCEUX
[fceu.git]
/
boards
/
tengen.c
diff --git
a/boards/tengen.c
b/boards/tengen.c
index
a4f33f5
..
3881622
100644
(file)
--- a/
boards/tengen.c
+++ b/
boards/tengen.c
@@
-15,7
+15,7
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 5
9 Temple Place, Suite 330, Boston, MA 02111-1307
USA
+ * Foundation, Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
*/
#include "mapinc.h"
*/
#include "mapinc.h"
@@
-36,10
+36,10
@@
static SFORMAT Rambo_StateRegs[]={
{0}
};
{0}
};
-static void
FP_FASTAPASS(2)
(*setchr1wrap)(unsigned int A, unsigned int V);
-static int nomirror;
+static void (*setchr1wrap)(unsigned int A, unsigned int V);
+
//
static int nomirror;
-static void
FP_FASTAPASS(1)
RAMBO1_IRQHook(int a)
+static void RAMBO1_IRQHook(int a)
{
static int smallcount;
if(!IRQmode) return;
{
static int smallcount;
if(!IRQmode) return;
@@
-104,7
+104,7
@@
static DECLFW(RAMBO1_write)
switch(A&0xF001)
{
case 0xa000: mir=V&1;
switch(A&0xF001)
{
case 0xa000: mir=V&1;
- if(!nomirror)
+
//
if(!nomirror)
setmirror(mir^1);
break;
case 0x8000: cmd = V;
setmirror(mir^1);
break;
case 0x8000: cmd = V;
@@
-138,7
+138,7
@@
static DECLFW(RAMBO1_write)
static void RAMBO1_Restore(int version)
{
Synco();
static void RAMBO1_Restore(int version)
{
Synco();
- if(!nomirror)
+
//
if(!nomirror)
setmirror(mir^1);
}
setmirror(mir^1);
}
@@
-148,7
+148,7
@@
static void RAMBO1_init(void)
for(x=0;x<11;x++)
DRegs[x]=~0;
cmd=mir=0;
for(x=0;x<11;x++)
DRegs[x]=~0;
cmd=mir=0;
- if(!nomirror)
+
//
if(!nomirror)
setmirror(1);
Synco();
GameHBIRQHook=RAMBO1_hb;
setmirror(1);
Synco();
GameHBIRQHook=RAMBO1_hb;
@@
-158,7
+158,7
@@
static void RAMBO1_init(void)
AddExState(Rambo_StateRegs, ~0, 0, 0);
}
AddExState(Rambo_StateRegs, ~0, 0, 0);
}
-static void
FP_FASTAPASS(2)
CHRWrap(unsigned int A, unsigned int V)
+static void CHRWrap(unsigned int A, unsigned int V)
{
setchr1(A,V);
}
{
setchr1(A,V);
}
@@
-166,14
+166,14
@@
static void FP_FASTAPASS(2) CHRWrap(unsigned int A, unsigned int V)
void Mapper64_init(void)
{
setchr1wrap=CHRWrap;
void Mapper64_init(void)
{
setchr1wrap=CHRWrap;
- nomirror=0;
+
//
nomirror=0;
RAMBO1_init();
}
RAMBO1_init();
}
-
+/*
static int MirCache[8];
static unsigned int PPUCHRBus;
static int MirCache[8];
static unsigned int PPUCHRBus;
-static void
FP_FASTAPASS(2)
MirWrap(unsigned int A, unsigned int V)
+static void MirWrap(unsigned int A, unsigned int V)
{
MirCache[A>>10]=(V>>7)&1;
if(PPUCHRBus==(A>>10))
{
MirCache[A>>10]=(V>>7)&1;
if(PPUCHRBus==(A>>10))
@@
-181,7
+181,7
@@
static void FP_FASTAPASS(2) MirWrap(unsigned int A, unsigned int V)
setchr1(A,V);
}
setchr1(A,V);
}
-static void
FP_FASTAPASS(1)
MirrorFear(uint32 A)
+static void MirrorFear(uint32 A)
{
A&=0x1FFF;
A>>=10;
{
A&=0x1FFF;
A>>=10;
@@
-196,3
+196,5
@@
void Mapper158_init(void)
nomirror=1;
RAMBO1_init();
}
nomirror=1;
RAMBO1_init();
}
+*/
+