notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mapper fixes for ncpu, debug is broken atm
[fceu.git]
/
mappers
/
16.c
diff --git
a/mappers/16.c
b/mappers/16.c
index
3742c34
..
58dd0b1
100644
(file)
--- a/
mappers/16.c
+++ b/
mappers/16.c
@@
-43,7
+43,10
@@
static DECLFW(Mapper16_write)
if(A<=0x7)
VROM_BANK1(A<<10,V);
else if(A==0x8)
if(A<=0x7)
VROM_BANK1(A<<10,V);
else if(A==0x8)
+ {
ROM_BANK16(0x8000,V);
ROM_BANK16(0x8000,V);
+ X6502_Rebase();
+ }
else switch(A) {
case 0x9: switch(V&3) {
case 0x00:MIRROR_SET2(1);break;
else switch(A) {
case 0x9: switch(V&3) {
case 0x00:MIRROR_SET2(1);break;
@@
-78,17
+81,18
@@
static void PRGO(void)
uint32 base=(mapbyte1[0]&1)<<4;
ROM_BANK16(0x8000,(mapbyte2[0]&0xF)|base);
ROM_BANK16(0xC000,base|0xF);
uint32 base=(mapbyte1[0]&1)<<4;
ROM_BANK16(0x8000,(mapbyte2[0]&0xF)|base);
ROM_BANK16(0xC000,base|0xF);
+ X6502_Rebase();
}
static DECLFW(Mapper153_write)
{
A&=0xF;
}
static DECLFW(Mapper153_write)
{
A&=0xF;
- if(A<=0x7)
+ if(A<=0x7)
{
mapbyte1[A&7]=V;
PRGO();
}
{
mapbyte1[A&7]=V;
PRGO();
}
- else if(A==0x8)
+ else if(A==0x8)
{
mapbyte2[0]=V;
PRGO();
{
mapbyte2[0]=V;
PRGO();