NesHawk - make boards and related classes internal, and sealed where possible
This commit is contained in:
parent
620c38af73
commit
f8acb61136
|
@ -4,7 +4,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
//AKA half of mapper 034 (the other half is BxROM which is entirely different..)
|
||||
public sealed class AVE_NINA_001 : NesBoardBase
|
||||
internal sealed class AVE_NINA_001 : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
int prg_bank_mask_32k, chr_bank_mask_4k;
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
//generally mapper7
|
||||
|
||||
[NesBoardImplPriority]
|
||||
public sealed class AxROM : NesBoardBase
|
||||
internal sealed class AxROM : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
bool bus_conflict;
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
Every real instance of [1], [2], [3], [4] had 128K or 256K of each of chr and prg.
|
||||
*/
|
||||
|
||||
public sealed class BANDAI_FCG_1 : NesBoardBase
|
||||
internal sealed class BANDAI_FCG_1 : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
int prg_bank_mask_16k, chr_bank_mask_1k;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// http://wiki.nesdev.com/w/index.php/INES_Mapper_096
|
||||
public sealed class BANDAI_74_161_02_74 : NesBoardBase
|
||||
internal sealed class BANDAI_74_161_02_74 : NesBoardBase
|
||||
{
|
||||
int chr_block;
|
||||
int chr_pos = 0;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class BANDAI_74_161_161_32 : NesBoardBase
|
||||
internal sealed class BANDAI_74_161_161_32 : NesBoardBase
|
||||
{
|
||||
//Mapper 70
|
||||
//Example Games:
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
|
||||
|
||||
// Magic Jewelry 2 (Unl)
|
||||
public class Bonza : NesBoardBase
|
||||
internal sealed class Bonza : NesBoardBase
|
||||
{
|
||||
private int _chrReg;
|
||||
private int _prgReg;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
//AKA half of mapper 034 (the other half is AVE_NINA_001 which is entirely different..)
|
||||
public sealed class BxROM : NesBoardBase
|
||||
internal sealed class BxROM : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
int prg_bank_mask_32k;
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
//Cybernoid
|
||||
|
||||
[NesBoardImplPriority]
|
||||
public sealed class CNROM : NesBoardBase
|
||||
internal sealed class CNROM : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
int prg_byte_mask, chr_mask;
|
||||
|
|
|
@ -2,7 +2,7 @@ using BizHawk.Common;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class CPROM : NesBoardBase
|
||||
internal sealed class CPROM : NesBoardBase
|
||||
{
|
||||
//generally mapper 13
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
{
|
||||
//AKA mapper 071
|
||||
//TODO - apparently this mapper contains good nes timing test cases
|
||||
public sealed class Camerica_Mapper071 : NesBoardBase
|
||||
internal sealed class Camerica_Mapper071 : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
int prg_bank_mask_16k;
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// Adapted from
|
||||
public sealed class CamericaGoldenFive : NesBoardBase
|
||||
internal sealed class CamericaGoldenFive : NesBoardBase
|
||||
{
|
||||
private byte[] regs = new byte[2];
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
{
|
||||
// Mapper 83 seems to be a hacky mess that represents 3 different Cony cartridges
|
||||
// http://problemkaputt.de/everynes.htm#mapper83cony
|
||||
public class ConyA : NesBoardBase
|
||||
internal sealed class ConyA : NesBoardBase
|
||||
{
|
||||
private byte[] prg_regs = new byte[4];
|
||||
private byte[] _low = new byte[4]; // some kind of security feature?
|
||||
|
@ -196,7 +196,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
}
|
||||
}
|
||||
|
||||
public class ConyB : NesBoardBase
|
||||
internal sealed class ConyB : NesBoardBase
|
||||
{
|
||||
private byte[] prg_regs = new byte[4];
|
||||
private byte[] _low = new byte[4]; // some kind of security feature?
|
||||
|
@ -386,9 +386,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class ConyC : NesBoardBase
|
||||
internal sealed class ConyC : NesBoardBase
|
||||
{
|
||||
private byte[] prg_regs = new byte[2];
|
||||
private byte[] chr_regs = new byte[8];
|
||||
|
|
|
@ -4,7 +4,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class CoolBoy : MMC3Board_Base
|
||||
internal sealed class CoolBoy : MMC3Board_Base
|
||||
{
|
||||
// eldritch horror pirate multicart
|
||||
// 32MB prg rom, no prg ram, no chr rom, 128KB chr ram
|
||||
|
|
|
@ -18,7 +18,7 @@ using BizHawk.Emulation.Cores.Components;
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
[NesBoardImplPriority]
|
||||
public sealed class ExROM : NesBoardBase
|
||||
internal sealed class ExROM : NesBoardBase
|
||||
{
|
||||
private int prg_bank_mask_8k, chr_bank_mask_1k; //board setup (to be isolated from mmc5 code later, when we need the separate mmc5 class)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public class Mapper006 : NesBoardBase
|
||||
internal sealed class Mapper006 : NesBoardBase
|
||||
{
|
||||
private int _reg;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public class Mapper017 : NesBoardBase
|
||||
internal sealed class Mapper017 : NesBoardBase
|
||||
{
|
||||
private byte[] prg_regs_8k = new byte[4];
|
||||
private byte[] chr_regs_1k = new byte[8];
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public class FS304 : NesBoardBase
|
||||
internal sealed class FS304 : NesBoardBase
|
||||
{
|
||||
// waixing?
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Farid_UNROM_8_in_1 : NesBoardBase
|
||||
internal sealed class Farid_UNROM_8_in_1 : NesBoardBase
|
||||
{
|
||||
// http://forums.nesdev.com/viewtopic.php?f=9&t=11099
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
{
|
||||
// this is an internal testing thing, not really for using
|
||||
|
||||
public class GameGenie : NesBoardBase
|
||||
internal sealed class GameGenie : NesBoardBase
|
||||
{
|
||||
static byte[] PatternTables = new byte[256];
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
//TODO - bus conflicts
|
||||
|
||||
[NesBoardImplPriority]
|
||||
public sealed class GxROM : NesBoardBase
|
||||
internal sealed class GxROM : NesBoardBase
|
||||
{
|
||||
//configuraton
|
||||
int prg_mask, chr_mask;
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
//Metal Fighter
|
||||
|
||||
[NesBoardImplPriority]
|
||||
public sealed class IC_74x377 : NesBoardBase
|
||||
internal sealed class IC_74x377 : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
int prg_bank_mask_32k, chr_bank_mask_8k;
|
||||
|
|
|
@ -3,12 +3,12 @@ using BizHawk.Common;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public enum EDetectionOrigin
|
||||
internal enum EDetectionOrigin
|
||||
{
|
||||
None, BootGodDB, GameDB, INES, UNIF, FDS, NSF
|
||||
}
|
||||
|
||||
public interface INesBoard
|
||||
internal interface INesBoard
|
||||
{
|
||||
// base class pre-configuration
|
||||
void Create(NES nes);
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
|
||||
//the 4screen implementation is a bit of a guess, but it seems to work
|
||||
|
||||
public sealed class IREM_74_161_161_21_138 : NesBoardBase
|
||||
internal sealed class IREM_74_161_161_21_138 : NesBoardBase
|
||||
{
|
||||
int chr, prg;
|
||||
public override bool Configure(EDetectionOrigin origin)
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
//iNES Mapper 97
|
||||
//Kaiketsu Yanchamaru (Kid Niki 1)
|
||||
|
||||
public sealed class IREM_TAM_S1 : NesBoardBase
|
||||
internal sealed class IREM_TAM_S1 : NesBoardBase
|
||||
{
|
||||
int prg_bank_mask_16k;
|
||||
byte prg_bank_16k;
|
||||
|
|
|
@ -4,19 +4,19 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
{
|
||||
// this will be used to track classes that implement boards
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public sealed class NesBoardImplAttribute : Attribute
|
||||
internal sealed class NesBoardImplAttribute : Attribute
|
||||
{
|
||||
}
|
||||
|
||||
// this tracks derived boards that shouldn't be used by the implementation scanner
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public sealed class NesBoardImplCancelAttribute : Attribute
|
||||
internal sealed class NesBoardImplCancelAttribute : Attribute
|
||||
{
|
||||
}
|
||||
|
||||
// flags it as being priority, i.e. in the top of the list
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public sealed class NesBoardImplPriorityAttribute : Attribute
|
||||
internal sealed class NesBoardImplPriorityAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
//Major League
|
||||
//Kaiketsu Yanchamaru 2
|
||||
|
||||
public sealed class Irem_G101 : NesBoardBase
|
||||
internal sealed class Irem_G101 : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
int prg_bank_mask, chr_bank_mask;
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
|
||||
//NOTE - fceux support for this mapper has some kind of -4 cpu cycle delay built into the timer. not sure yet whether we need that
|
||||
|
||||
public sealed class Irem_H3001 : NesBoardBase
|
||||
internal sealed class Irem_H3001 : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
int prg_bank_mask, chr_bank_mask;
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
Ninja Jajamaru Kun - JF_06
|
||||
Argus (J) - JF_07
|
||||
*/
|
||||
public sealed class JALECO_JF_05_06_07 : NesBoardBase
|
||||
internal sealed class JALECO_JF_05_06_07 : NesBoardBase
|
||||
{
|
||||
int prg_byte_mask;
|
||||
int chr;
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
//Moero!! Pro Yakyuu (Black)
|
||||
//Moero!! Pro Yakyuu (Red)
|
||||
|
||||
public sealed class JALECO_JF_13 : NesBoardBase
|
||||
internal sealed class JALECO_JF_13 : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
int prg_bank_mask_32k;
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
//when the top 2 bits arent 0, theyre written to the latch
|
||||
//interestingly, this works (for pinball quest) only when bus conflicts are applied, otherwise the game cant get past the title
|
||||
|
||||
public sealed class JALECO_JF_17 : NesBoardBase
|
||||
internal sealed class JALECO_JF_17 : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
int prg_bank_mask_16k;
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
|
||||
//Near Identical to Jaleco JF 17, except for a slight PRG setup
|
||||
|
||||
public sealed class JALECO_JF_19 : NesBoardBase
|
||||
internal sealed class JALECO_JF_19 : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
int prg_bank_mask_16k;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class JALECO_SS8806 : NesBoardBase
|
||||
internal sealed class JALECO_SS8806 : NesBoardBase
|
||||
{
|
||||
//http://wiki.nesdev.com/w/index.php/INES_Mapper_018
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ Other chips used: Sunsoft-1
|
|||
* Bio Senshi Dan - Increaser Tono Tatakai [allegedly; but it does not work]
|
||||
*/
|
||||
|
||||
public sealed class Jaleco_JF_11_14 : NesBoardBase
|
||||
internal sealed class Jaleco_JF_11_14 : NesBoardBase
|
||||
{
|
||||
int chr, prg;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
// http://wiki.nesdev.com/w/index.php/INES_Mapper_228
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class MLT_ACTION52 : NesBoardBase
|
||||
internal sealed class MLT_ACTION52 : NesBoardBase
|
||||
{
|
||||
[MapperProp]
|
||||
public bool prg_mode = false;
|
||||
|
|
|
@ -3,7 +3,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class MLT_MAX15 : NesBoardBase
|
||||
internal sealed class MLT_MAX15 : NesBoardBase
|
||||
{
|
||||
//http://wiki.nesdev.com/w/index.php/INES_Mapper_234
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
{
|
||||
//aka MMC6 aka StarTropics and StarTropics 2
|
||||
//for simplicity's sake, the behaviour of mmc6 is wrapped up into this board since it isnt used anywhere else
|
||||
public sealed class HKROM : MMC3Board_Base
|
||||
internal sealed class HKROM : MMC3Board_Base
|
||||
{
|
||||
//configuration
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public class MMC3
|
||||
internal class MMC3
|
||||
{
|
||||
//state
|
||||
public int reg_addr;
|
||||
|
@ -302,7 +302,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
}
|
||||
}
|
||||
|
||||
public abstract class MMC3Board_Base : NesBoardBase
|
||||
internal abstract class MMC3Board_Base : NesBoardBase
|
||||
{
|
||||
//state
|
||||
public MMC3 mmc3;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper012 : MMC3Board_Base
|
||||
internal sealed class Mapper012 : MMC3Board_Base
|
||||
{
|
||||
public override bool Configure(EDetectionOrigin origin)
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// mmc3 multi, PAL, "Super Mario Bros. / Tetris / Nintendo World Cup"
|
||||
public sealed class Mapper037 : MMC3Board_Base
|
||||
internal sealed class Mapper037 : MMC3Board_Base
|
||||
{
|
||||
int exreg;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
//http://wiki.nesdev.com/w/index.php/INES_Mapper_044
|
||||
public class Mapper044 : MMC3Board_Base
|
||||
internal class Mapper044 : MMC3Board_Base
|
||||
{
|
||||
public sealed override bool Configure(EDetectionOrigin origin)
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
//http://wiki.nesdev.com/w/index.php/INES_Mapper_044
|
||||
public sealed class Mapper049 : MMC3Board_Base
|
||||
internal sealed class Mapper049 : MMC3Board_Base
|
||||
{
|
||||
public override bool Configure(EDetectionOrigin origin)
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper52 : MMC3Board_Base
|
||||
internal sealed class Mapper52 : MMC3Board_Base
|
||||
{
|
||||
//http://wiki.nesdev.com/w/index.php/INES_Mapper_052
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper074 : MMC3Board_Base
|
||||
internal sealed class Mapper074 : MMC3Board_Base
|
||||
{
|
||||
//http://wiki.nesdev.com/w/index.php/INES_Mapper_074
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// Mapper for Aladdin Super Game
|
||||
public sealed class Mapper114 : MMC3Board_Base
|
||||
internal sealed class Mapper114 : MMC3Board_Base
|
||||
{
|
||||
private byte[] EXPREGS = new byte[2];
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
//this class also handles mapper 248
|
||||
//FCEUX uses 115 to implement 248 as well (as of 09-apr-2012 it does it buggily in the case of Bao Qing Tian (As))
|
||||
//VirtuaNES has its own class that implements 248. I think it's wrong (MAME and/or MESS may have switched to using 115 at some point)
|
||||
public sealed class Mapper115 : MMC3Board_Base
|
||||
internal sealed class Mapper115 : MMC3Board_Base
|
||||
{
|
||||
public override bool Configure(EDetectionOrigin origin)
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// Adapted from Nestopia src
|
||||
public sealed class Mapper121 : MMC3Board_Base
|
||||
internal sealed class Mapper121 : MMC3Board_Base
|
||||
{
|
||||
private byte[] exRegs = new byte[3];
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// Adapted from FCEUX src
|
||||
public sealed class Mapper123 : MMC3Board_Base
|
||||
internal sealed class Mapper123 : MMC3Board_Base
|
||||
{
|
||||
private byte[] EXPREGS = new byte[8];
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper134 : MMC3Board_Base
|
||||
internal sealed class Mapper134 : MMC3Board_Base
|
||||
{
|
||||
private byte reg;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
// Fire Emblem (Ch)
|
||||
// mmc3 with mmc2-style chr swapping
|
||||
// seem to be some graphical glitches...
|
||||
public sealed class Mapper165 : MMC3Board_Base
|
||||
internal sealed class Mapper165 : MMC3Board_Base
|
||||
{
|
||||
bool latch0 = false;
|
||||
bool latch1 = false;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper182 : MMC3Board_Base
|
||||
internal sealed class Mapper182 : MMC3Board_Base
|
||||
{
|
||||
public override bool Configure(EDetectionOrigin origin)
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// Adapted from FCEUX src
|
||||
public class Mapper187 : MMC3Board_Base
|
||||
internal sealed class Mapper187 : MMC3Board_Base
|
||||
{
|
||||
private byte[] exRegs = new byte[2];
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper189 : MMC3Board_Base
|
||||
internal sealed class Mapper189 : MMC3Board_Base
|
||||
{
|
||||
public override bool Configure(EDetectionOrigin origin)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper191 : MMC3Board_Base
|
||||
internal sealed class Mapper191 : MMC3Board_Base
|
||||
{
|
||||
public override bool Configure(EDetectionOrigin origin)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper192 : MMC3Board_Base
|
||||
internal sealed class Mapper192 : MMC3Board_Base
|
||||
{
|
||||
//http://wiki.nesdev.com/w/index.php/INES_Mapper_192
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper194 : MMC3Board_Base
|
||||
internal sealed class Mapper194 : MMC3Board_Base
|
||||
{
|
||||
//http://wiki.nesdev.com/w/index.php/INES_Mapper_194
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper195 : MMC3Board_Base
|
||||
internal sealed class Mapper195 : MMC3Board_Base
|
||||
{
|
||||
private int vram_bank_mask_1k;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper195_CW : MMC3Board_Base
|
||||
internal sealed class Mapper195_CW : MMC3Board_Base
|
||||
{
|
||||
private int vram_bank_mask_1k;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ using BizHawk.Common;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public class Mapper196 : MMC3Board_Base
|
||||
internal sealed class Mapper196 : MMC3Board_Base
|
||||
{
|
||||
// pirate crap
|
||||
// behavior from fceumm
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper197 : MMC3Board_Base
|
||||
internal sealed class Mapper197 : MMC3Board_Base
|
||||
{
|
||||
public override bool Configure(EDetectionOrigin origin)
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
}
|
||||
}
|
||||
|
||||
public class Mapper197_MMC3 : MMC3
|
||||
internal sealed class Mapper197_MMC3 : MMC3
|
||||
{
|
||||
//This board has 512k CHR ROM, so the ByteBuffer in the base class deosn't suffice.
|
||||
public int[] chr_regs_1k_512 = new int[8];
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public class Mapper198 : MMC3Board_Base
|
||||
internal sealed class Mapper198 : MMC3Board_Base
|
||||
{
|
||||
|
||||
public override bool Configure(EDetectionOrigin origin)
|
||||
{
|
||||
switch (Cart.board_type)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper199 : MMC3Board_Base
|
||||
internal sealed class Mapper199 : MMC3Board_Base
|
||||
{
|
||||
private byte[] exRegs = new byte[4];
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper205 : MMC3Board_Base
|
||||
internal sealed class Mapper205 : MMC3Board_Base
|
||||
{
|
||||
//Mapper 205 info: http://wiki.nesdev.com/w/index.php/INES_Mapper_205
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper208 : MMC3Board_Base
|
||||
internal sealed class Mapper208 : MMC3Board_Base
|
||||
{
|
||||
private byte[] exRegs = new byte[6];
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public class Mapper215 : MMC3Board_Base
|
||||
internal sealed class Mapper215 : MMC3Board_Base
|
||||
{
|
||||
private byte[] exRegs = new byte[4];
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper217 : MMC3Board_Base
|
||||
internal sealed class Mapper217 : MMC3Board_Base
|
||||
{
|
||||
private byte[] exRegs = new byte[4];
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper219 : MMC3Board_Base
|
||||
internal sealed class Mapper219 : MMC3Board_Base
|
||||
{
|
||||
public byte[] exregs = new byte[3];
|
||||
public byte[] prgregs = new byte[4];
|
||||
|
@ -17,7 +17,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
case "MAPPER219":
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
BaseSetup();
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// TODO
|
||||
public sealed class Mapper223 : MMC3Board_Base
|
||||
internal sealed class Mapper223 : MMC3Board_Base
|
||||
{
|
||||
public override bool Configure(EDetectionOrigin origin)
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// Adapted from FCEUX src
|
||||
public sealed class Mapper238 : MMC3Board_Base
|
||||
internal sealed class Mapper238 : MMC3Board_Base
|
||||
{
|
||||
private readonly int[] lut = { 0x00, 0x02, 0x02, 0x03 };
|
||||
private byte reg;
|
||||
|
|
|
@ -3,7 +3,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper245 : MMC3Board_Base
|
||||
internal sealed class Mapper245 : MMC3Board_Base
|
||||
{
|
||||
//http://wiki.nesdev.com/w/index.php/INES_Mapper_245
|
||||
bool chr_mode;
|
||||
|
|
|
@ -3,7 +3,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper249 : MMC3Board_Base
|
||||
internal sealed class Mapper249 : MMC3Board_Base
|
||||
{
|
||||
bool piratecrap = false;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// Time Diver Avenger (Unl)
|
||||
// MMC3 with slightly different write scheme
|
||||
// presumably the board contains an MMC3 clone with some unique edge case behavior; unknown
|
||||
public sealed class Mapper250 : MMC3Board_Base
|
||||
internal sealed class Mapper250 : MMC3Board_Base
|
||||
{
|
||||
public override bool Configure(EDetectionOrigin origin)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper254 : MMC3Board_Base
|
||||
internal sealed class Mapper254 : MMC3Board_Base
|
||||
{
|
||||
private byte[] regs = new byte[2];
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ using BizHawk.Common;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class NES_QJ : MMC3Board_Base
|
||||
internal sealed class NES_QJ : MMC3Board_Base
|
||||
{
|
||||
//state
|
||||
int block;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public class MapperPocahontas : MMC3Board_Base
|
||||
internal sealed class MapperPocahontas : MMC3Board_Base
|
||||
{
|
||||
private byte[] exRegs = new byte[3];
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
{
|
||||
// p-p-p-p-pirate?
|
||||
// http://svn.opennestopia.staulkor.com/Nestopia/core/board/NstBoardRexSoftSl1632.cpp
|
||||
public class RexSoftSL1632 : MMC3Board_Base
|
||||
internal sealed class RexSoftSL1632 : MMC3Board_Base
|
||||
{
|
||||
// state
|
||||
byte exmode;
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
{
|
||||
//aka mapper 118
|
||||
//wires the mapper outputs to control the nametables
|
||||
public sealed class TLSROM : MMC3Board_Base
|
||||
internal sealed class TLSROM : MMC3Board_Base
|
||||
{
|
||||
public int[] nametables = new int[4];
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
{
|
||||
//aka mapper 119
|
||||
//just high speed and pinbot with an MMC3 and some custom logic to select between chr rom and chr ram
|
||||
public sealed class TQSROM : MMC3Board_Base
|
||||
internal sealed class TQSROM : MMC3Board_Base
|
||||
{
|
||||
public override bool Configure(EDetectionOrigin origin)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class TVROM : MMC3Board_Base
|
||||
internal sealed class TVROM : MMC3Board_Base
|
||||
{
|
||||
public override bool Configure(EDetectionOrigin origin)
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ using BizHawk.Common;
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
[NesBoardImplPriority]
|
||||
public sealed class TxROM : MMC3Board_Base
|
||||
internal sealed class TxROM : MMC3Board_Base
|
||||
{
|
||||
public override void WritePrg(int addr, byte value)
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper015 : NesBoardBase
|
||||
internal sealed class Mapper015 : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
int prg_bank_mask_8k;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// http://wiki.nesdev.com/w/index.php/User:Tepples/Multi-discrete_mapper
|
||||
public sealed class Mapper028 : NesBoardBase
|
||||
internal sealed class Mapper028 : NesBoardBase
|
||||
{
|
||||
// config
|
||||
int chr_mask_8k;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// what is this?
|
||||
public class Mapper029 : NesBoardBase
|
||||
internal sealed class Mapper029 : NesBoardBase
|
||||
{
|
||||
int prg;
|
||||
int chr;
|
||||
|
|
|
@ -4,9 +4,8 @@ using BizHawk.Common;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public class Mapper030 : NesBoardBase
|
||||
internal sealed class Mapper030 : NesBoardBase
|
||||
{
|
||||
|
||||
enum flashmode { fm_default, fm_erase, fm_write, fm_id }
|
||||
|
||||
// config
|
||||
|
|
|
@ -2,7 +2,7 @@ using BizHawk.Common;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper034 : NesBoardBase
|
||||
internal sealed class Mapper034 : NesBoardBase
|
||||
{
|
||||
// zombie board that tries to handle both bxrom and ave-nina at once
|
||||
|
||||
|
|
|
@ -4,10 +4,9 @@ using System;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// mapper036
|
||||
// Strike Wolf (MGC-014) [!].nes
|
||||
// Using https://wiki.nesdev.com/w/index.php/INES_Mapper_036
|
||||
public sealed class Mapper036 : NesBoardBase
|
||||
internal sealed class Mapper036 : NesBoardBase
|
||||
{
|
||||
int chr;
|
||||
int prg;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// Crime Busters (Brazil) (Unl)
|
||||
public sealed class Mapper038 : NesBoardBase
|
||||
internal sealed class Mapper038 : NesBoardBase
|
||||
{
|
||||
//configuraton
|
||||
int prg_mask, chr_mask;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// smb2j (us pirate)
|
||||
public sealed class Mapper040 : NesBoardBase
|
||||
internal sealed class Mapper040 : NesBoardBase
|
||||
{
|
||||
int prg = 0;
|
||||
int irqcnt = 0;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// caltron 6 in 1
|
||||
public sealed class Mapper041 : NesBoardBase
|
||||
internal sealed class Mapper041 : NesBoardBase
|
||||
{
|
||||
int prg;
|
||||
int chr;
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
{
|
||||
// pirate FDS conversion
|
||||
// this is probably two different boards, but they seem to work well enough the same
|
||||
public sealed class Mapper042 : NesBoardBase
|
||||
internal sealed class Mapper042 : NesBoardBase
|
||||
{
|
||||
int prg = 0;
|
||||
int chr = 0;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper043 : NesBoardBase
|
||||
internal sealed class Mapper043 : NesBoardBase
|
||||
{
|
||||
int prg = 0;
|
||||
int irqcnt = 0;
|
||||
|
|
|
@ -3,7 +3,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper045 : MMC3Board_Base
|
||||
internal sealed class Mapper045 : MMC3Board_Base
|
||||
{
|
||||
//http://wiki.nesdev.com/w/index.php/INES_Mapper_045
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper046 : NesBoardBase
|
||||
internal sealed class Mapper046 : NesBoardBase
|
||||
{
|
||||
//Rumblestation 15-in-1 (Unl).nes
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper051 : NesBoardBase
|
||||
internal sealed class Mapper051 : NesBoardBase
|
||||
{
|
||||
private int _bank;
|
||||
private int _mode = 2;
|
||||
|
|
|
@ -4,7 +4,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
// Supervision 16-in-1 [p1].nes
|
||||
public sealed class Mapper053 : NesBoardBase
|
||||
internal sealed class Mapper053 : NesBoardBase
|
||||
{
|
||||
private byte _reg0;
|
||||
private byte _reg1;
|
||||
|
@ -83,7 +83,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
// Supervision 16-in-1 [U][p1][!].unf
|
||||
// Same as Mapper 53, except the 32kb PRG chip is at the end of the ROM space instead of the beginning
|
||||
// These could have been combined to reduce some code, but at the cost of being more convoluted
|
||||
public sealed class UNIF_BMC_Supervision16in1 : NesBoardBase
|
||||
internal sealed class UNIF_BMC_Supervision16in1 : NesBoardBase
|
||||
{
|
||||
private byte _reg0;
|
||||
private byte _reg1;
|
||||
|
|
|
@ -3,7 +3,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper057 : NesBoardBase
|
||||
internal sealed class Mapper057 : NesBoardBase
|
||||
{
|
||||
// http://wiki.nesdev.com/w/index.php/INES_Mapper_057
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
// http://wiki.nesdev.com/w/index.php/INES_Mapper_058
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper058 : NesBoardBase
|
||||
internal sealed class Mapper058 : NesBoardBase
|
||||
{
|
||||
bool prg_mode = false;
|
||||
int chr_reg;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper063 : NesBoardBase
|
||||
internal sealed class Mapper063 : NesBoardBase
|
||||
{
|
||||
int prg0, prg1, prg2, prg3;
|
||||
bool open_bus;
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
//Mapper 069 is FME7
|
||||
//or, Sunsoft-5, which is FME7 with additional sound hardware
|
||||
|
||||
public sealed class Sunsoft_5 : Sunsoft_FME7
|
||||
internal sealed class Sunsoft_5 : Sunsoft_FME7
|
||||
{
|
||||
Sunsoft5BAudio audio;
|
||||
|
||||
|
@ -54,7 +54,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
}
|
||||
}
|
||||
|
||||
public class Sunsoft_FME7 : NesBoardBase
|
||||
internal class Sunsoft_FME7 : NesBoardBase
|
||||
{
|
||||
//configuration
|
||||
int prg_bank_mask_8k, chr_bank_mask_1k, wram_bank_mask_8k;
|
||||
|
|
|
@ -3,7 +3,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper078 : NesBoardBase
|
||||
internal sealed class Mapper078 : NesBoardBase
|
||||
{
|
||||
bool holydiver;
|
||||
int chr;
|
||||
|
|
|
@ -3,7 +3,7 @@ using BizHawk.Common.NumberExtensions;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class Mapper090 : NesBoardBase
|
||||
internal sealed class Mapper090 : NesBoardBase
|
||||
{
|
||||
byte[] prg_regs = new byte[4];
|
||||
int[] chr_regs = new int[8];
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue