Mapper 242 stuff
This commit is contained in:
parent
8b3f6cb55b
commit
a066d6e03d
|
@ -21,6 +21,15 @@ mirroring - both
|
|||
class Mapper242 : NES.NESBoardBase
|
||||
{
|
||||
int prg, mirror;
|
||||
|
||||
public enum EMirrorType
|
||||
{
|
||||
Vertical, Horizontal,
|
||||
OneScreenA, OneScreenB,
|
||||
//unknown or controlled by the board
|
||||
External
|
||||
}
|
||||
|
||||
public override bool Configure(NES.EDetectionOrigin origin)
|
||||
{
|
||||
//configure
|
||||
|
@ -36,19 +45,22 @@ mirroring - both
|
|||
|
||||
public override byte ReadPPU(int addr)
|
||||
{
|
||||
//SetMirroring(mirror, mirror, 0, 0); //?? TODO
|
||||
if (mirror == 0)
|
||||
SetMirrorType(0, 1);
|
||||
else
|
||||
SetMirrorType(1, 0);
|
||||
SetMirrorType(Cart.pad_h, Cart.pad_v);
|
||||
return base.ReadPPU(addr);
|
||||
}
|
||||
|
||||
public override byte ReadPRG(int addr)
|
||||
{
|
||||
return VROM[addr + (prg * 0x8000)];
|
||||
//return base.ReadPRG(addr);
|
||||
return ROM[addr + (prg * 0x8000)];
|
||||
}
|
||||
|
||||
public override void WriteWRAM(int addr, byte value)
|
||||
{
|
||||
mirror = (addr & 0x01);
|
||||
int mirror = (addr & 0x01);
|
||||
prg = (addr & 0x7F) >> 3;
|
||||
base.WriteWRAM(addr, value);
|
||||
}
|
||||
|
|
|
@ -2267,7 +2267,7 @@ sha1:CF655333DCE649A3C7060E9989860F2FC74E473A Demon Sword (U) NES board=NES-SL
|
|||
sha1:7786BA1FE8E7E9E542EEB13CF2A6E2A1AD7F696D Metal Gear (U) NES board=KONAMI-UNROM;PRG=128
|
||||
sha1:894F20405286F5F75133CE4648300E2C67972B40 Solomon's Key (U) NES board=NES-CNROM;PRG=32;CHR=32
|
||||
sha1:0C53B06E1D13AE917536BB39010914EA3D111FF5 Thunder & Lightning (U) NES board=NES-GNROM;PRG=128;CHR=32;bad
|
||||
sha1:9BDFF9A19265D84979F43F0F6E925A735DDEB38B Wai Xing Zhan Shi (Ch) NES board=Mapper242;PRG=32;CHR=0;VRAM=8
|
||||
sha1:9BDFF9A19265D84979F43F0F6E925A735DDEB38B Wai Xing Zhan Shi (Ch) NES board=Mapper242;PRG=512;CHR=0;VRAM=8
|
||||
|
||||
;these roms are from goodNES but they are confusingly messed up somehow
|
||||
sha1:192C543866F1037276D2778046ABEDCA84868E26 Bio Senshi Dan - Increaser To No Tatakai (J) NES board=JALECO-JF-14;PRG=128;CHR=128
|
||||
|
|
Loading…
Reference in New Issue