NesHawk - oops, fix unl-ks7012
This commit is contained in:
parent
839eabac2e
commit
5d85f459b8
|
@ -5,7 +5,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
public class UNIF_UNL_KS7012 : NES.NESBoardBase
|
||||
{
|
||||
private int reg;
|
||||
private byte[] wram = new byte[8192];
|
||||
|
||||
public override bool Configure(NES.EDetectionOrigin origin)
|
||||
{
|
||||
switch (Cart.board_type)
|
||||
|
@ -16,6 +16,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
return false;
|
||||
}
|
||||
|
||||
WRAM = new byte[8192];
|
||||
reg = 0xFF;
|
||||
|
||||
SetMirrorType(Cart.pad_h, Cart.pad_v);
|
||||
|
@ -40,18 +41,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
}
|
||||
}
|
||||
|
||||
public override byte ReadWRAM(int addr)
|
||||
{
|
||||
return wram[addr];
|
||||
//int offset = ROM.Length - 0x2000;
|
||||
//return ROM[offset + addr];
|
||||
}
|
||||
|
||||
public override void WriteWRAM(int addr, byte value)
|
||||
{
|
||||
wram[addr] = value;
|
||||
}
|
||||
|
||||
public override byte ReadPRG(int addr)
|
||||
{
|
||||
return ROM[((reg & 1) << 15) + addr];
|
||||
|
|
Loading…
Reference in New Issue