修复语法错误
This commit is contained in:
parent
d84b221e81
commit
63f65b89c9
@ -1,9 +1,9 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal abstract class Bandai : Board
|
|
||||||
{
|
{
|
||||||
|
internal abstract class Bandai : Board
|
||||||
|
{
|
||||||
private bool irq_enable;
|
private bool irq_enable;
|
||||||
|
|
||||||
private int irq_counter;
|
private int irq_counter;
|
||||||
@ -137,4 +137,5 @@ internal abstract class Bandai : Board
|
|||||||
irq_counter = stream.ReadInt32();
|
irq_counter = stream.ReadInt32();
|
||||||
eprom.LoadState(stream);
|
eprom.LoadState(stream);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal struct BankInfo
|
|
||||||
{
|
{
|
||||||
|
internal struct BankInfo
|
||||||
|
{
|
||||||
public bool IsRAM;
|
public bool IsRAM;
|
||||||
|
|
||||||
public bool Enabled;
|
public bool Enabled;
|
||||||
@ -23,4 +23,5 @@ internal struct BankInfo
|
|||||||
this.DATA = DATA;
|
this.DATA = DATA;
|
||||||
this.IsBattery = IsBattery;
|
this.IsBattery = IsBattery;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal class BankInfoSorter : IComparer<BankInfo>
|
|
||||||
{
|
{
|
||||||
|
internal class BankInfoSorter : IComparer<BankInfo>
|
||||||
|
{
|
||||||
public int Compare(BankInfo x, BankInfo y)
|
public int Compare(BankInfo x, BankInfo y)
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
@ -12,4 +12,5 @@ internal class BankInfoSorter : IComparer<BankInfo>
|
|||||||
int.TryParse(y.ID, out result2);
|
int.TryParse(y.ID, out result2);
|
||||||
return result2 - result;
|
return result2 - result;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal class BlankJoypad : IJoypadConnecter
|
|
||||||
{
|
{
|
||||||
|
internal class BlankJoypad : IJoypadConnecter
|
||||||
|
{
|
||||||
public override void Update()
|
public override void Update()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal class BlankShortuctsHandler : IShortcutsHandler
|
|
||||||
{
|
{
|
||||||
|
internal class BlankShortuctsHandler : IShortcutsHandler
|
||||||
|
{
|
||||||
public void Update()
|
public void Update()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,10 +2,10 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal abstract class Board
|
|
||||||
{
|
{
|
||||||
|
internal abstract class Board
|
||||||
|
{
|
||||||
protected byte[][] PRG_RAM;
|
protected byte[][] PRG_RAM;
|
||||||
|
|
||||||
protected bool[] PRG_RAM_ENABLED;
|
protected bool[] PRG_RAM_ENABLED;
|
||||||
@ -1113,4 +1113,5 @@ internal abstract class Board
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal class BoardInfoAttribute : Attribute
|
|
||||||
{
|
{
|
||||||
|
internal class BoardInfoAttribute : Attribute
|
||||||
|
{
|
||||||
public string Name { get; private set; }
|
public string Name { get; private set; }
|
||||||
|
|
||||||
public int Mapper { get; private set; }
|
public int Mapper { get; private set; }
|
||||||
@ -53,4 +53,5 @@ internal class BoardInfoAttribute : Attribute
|
|||||||
this.Enabled_ppuA12ToggleTimer = Enabled_ppuA12ToggleTimer;
|
this.Enabled_ppuA12ToggleTimer = Enabled_ppuA12ToggleTimer;
|
||||||
this.PPUA12TogglesOnRaisingEdge = PPUA12TogglesOnRaisingEdge;
|
this.PPUA12TogglesOnRaisingEdge = PPUA12TogglesOnRaisingEdge;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public class BoardInfoObject
|
|
||||||
{
|
{
|
||||||
|
public class BoardInfoObject
|
||||||
|
{
|
||||||
public string Name { get; internal set; }
|
public string Name { get; internal set; }
|
||||||
|
|
||||||
public int MapperNumber { get; internal set; }
|
public int MapperNumber { get; internal set; }
|
||||||
@ -11,4 +11,5 @@ public class BoardInfoObject
|
|||||||
public string Issues { get; internal set; }
|
public string Issues { get; internal set; }
|
||||||
|
|
||||||
public bool HasIssues { get; internal set; }
|
public bool HasIssues { get; internal set; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal enum CHRArea : byte
|
|
||||||
{
|
{
|
||||||
|
internal enum CHRArea : byte
|
||||||
|
{
|
||||||
Area0000,
|
Area0000,
|
||||||
Area0400,
|
Area0400,
|
||||||
Area0800,
|
Area0800,
|
||||||
@ -10,4 +10,5 @@ internal enum CHRArea : byte
|
|||||||
Area1400,
|
Area1400,
|
||||||
Area1800,
|
Area1800,
|
||||||
Area1C00
|
Area1C00
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
internal sealed class Adler32
|
|
||||||
{
|
{
|
||||||
|
internal sealed class Adler32
|
||||||
|
{
|
||||||
private const int BASE = 65521;
|
private const int BASE = 65521;
|
||||||
|
|
||||||
private const int NMAX = 5552;
|
private const int NMAX = 5552;
|
||||||
@ -68,4 +68,5 @@ internal sealed class Adler32
|
|||||||
}
|
}
|
||||||
return (num2 << 16) | num;
|
return (num2 << 16) | num;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
public sealed class Deflate
|
|
||||||
{
|
{
|
||||||
|
public sealed class Deflate
|
||||||
|
{
|
||||||
internal class Config
|
internal class Config
|
||||||
{
|
{
|
||||||
internal int good_length;
|
internal int good_length;
|
||||||
@ -1408,4 +1408,5 @@ public sealed class Deflate
|
|||||||
config_table[8] = new Config(32, 128, 258, 1024, 2);
|
config_table[8] = new Config(32, 128, 258, 1024, 2);
|
||||||
config_table[9] = new Config(32, 258, 258, 4096, 2);
|
config_table[9] = new Config(32, 258, 258, 4096, 2);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
internal sealed class InfBlocks
|
|
||||||
{
|
{
|
||||||
|
internal sealed class InfBlocks
|
||||||
|
{
|
||||||
private const int MANY = 1440;
|
private const int MANY = 1440;
|
||||||
|
|
||||||
private static readonly int[] inflate_mask = new int[17]
|
private static readonly int[] inflate_mask = new int[17]
|
||||||
@ -657,4 +657,5 @@ internal sealed class InfBlocks
|
|||||||
read = num;
|
read = num;
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
internal sealed class InfCodes
|
|
||||||
{
|
{
|
||||||
|
internal sealed class InfCodes
|
||||||
|
{
|
||||||
private static readonly int[] inflate_mask = new int[17]
|
private static readonly int[] inflate_mask = new int[17]
|
||||||
{
|
{
|
||||||
0, 1, 3, 7, 15, 31, 63, 127, 255, 511,
|
0, 1, 3, 7, 15, 31, 63, 127, 255, 511,
|
||||||
@ -660,4 +660,5 @@ internal sealed class InfCodes
|
|||||||
s.write = num4;
|
s.write = num4;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
internal sealed class InfTree
|
|
||||||
{
|
{
|
||||||
|
internal sealed class InfTree
|
||||||
|
{
|
||||||
private const int MANY = 1440;
|
private const int MANY = 1440;
|
||||||
|
|
||||||
private const int Z_OK = 0;
|
private const int Z_OK = 0;
|
||||||
@ -475,4 +475,5 @@ internal sealed class InfTree
|
|||||||
td[0] = fixed_td;
|
td[0] = fixed_td;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
internal sealed class Inflate
|
|
||||||
{
|
{
|
||||||
|
internal sealed class Inflate
|
||||||
|
{
|
||||||
private const int MAX_WBITS = 15;
|
private const int MAX_WBITS = 15;
|
||||||
|
|
||||||
private const int PRESET_DICT = 32;
|
private const int PRESET_DICT = 32;
|
||||||
@ -405,4 +405,5 @@ internal sealed class Inflate
|
|||||||
}
|
}
|
||||||
return z.istate.blocks.sync_point();
|
return z.istate.blocks.sync_point();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
internal sealed class StaticTree
|
|
||||||
{
|
{
|
||||||
|
internal sealed class StaticTree
|
||||||
|
{
|
||||||
private const int MAX_BITS = 15;
|
private const int MAX_BITS = 15;
|
||||||
|
|
||||||
private const int BL_CODES = 19;
|
private const int BL_CODES = 19;
|
||||||
@ -122,4 +122,5 @@ internal sealed class StaticTree
|
|||||||
static_d_desc = new StaticTree(static_dtree, Tree.extra_dbits, 0, 30, 15);
|
static_d_desc = new StaticTree(static_dtree, Tree.extra_dbits, 0, 30, 15);
|
||||||
static_bl_desc = new StaticTree(null, Tree.extra_blbits, 0, 19, 7);
|
static_bl_desc = new StaticTree(null, Tree.extra_blbits, 0, 19, 7);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
public class SupportClass
|
|
||||||
{
|
{
|
||||||
|
public class SupportClass
|
||||||
|
{
|
||||||
public static long Identity(long literal)
|
public static long Identity(long literal)
|
||||||
{
|
{
|
||||||
return literal;
|
return literal;
|
||||||
@ -100,4 +100,5 @@ public class SupportClass
|
|||||||
{
|
{
|
||||||
return Encoding.UTF8.GetChars(byteArray);
|
return Encoding.UTF8.GetChars(byteArray);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
internal sealed class Tree
|
|
||||||
{
|
{
|
||||||
|
internal sealed class Tree
|
||||||
|
{
|
||||||
private const int MAX_BITS = 15;
|
private const int MAX_BITS = 15;
|
||||||
|
|
||||||
private const int BL_CODES = 19;
|
private const int BL_CODES = 19;
|
||||||
@ -337,4 +337,5 @@ internal sealed class Tree
|
|||||||
while (--len > 0);
|
while (--len > 0);
|
||||||
return SupportClass.URShift(num, 1);
|
return SupportClass.URShift(num, 1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
public class ZInputStream : BinaryReader
|
|
||||||
{
|
{
|
||||||
|
public class ZInputStream : BinaryReader
|
||||||
|
{
|
||||||
protected ZStream z = new ZStream();
|
protected ZStream z = new ZStream();
|
||||||
|
|
||||||
protected int bufsize = 512;
|
protected int bufsize = 512;
|
||||||
@ -130,4 +130,5 @@ public class ZInputStream : BinaryReader
|
|||||||
{
|
{
|
||||||
in_Renamed.Close();
|
in_Renamed.Close();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
public class ZOutputStream : Stream
|
|
||||||
{
|
{
|
||||||
|
public class ZOutputStream : Stream
|
||||||
|
{
|
||||||
protected internal ZStream z = new ZStream();
|
protected internal ZStream z = new ZStream();
|
||||||
|
|
||||||
protected internal int bufsize = 4096;
|
protected internal int bufsize = 4096;
|
||||||
@ -189,4 +189,5 @@ public class ZOutputStream : Stream
|
|||||||
{
|
{
|
||||||
return 0L;
|
return 0L;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
public sealed class ZStream
|
|
||||||
{
|
{
|
||||||
|
public sealed class ZStream
|
||||||
|
{
|
||||||
private const int MAX_WBITS = 15;
|
private const int MAX_WBITS = 15;
|
||||||
|
|
||||||
private static readonly int DEF_WBITS = 15;
|
private static readonly int DEF_WBITS = 15;
|
||||||
@ -220,4 +220,5 @@ public sealed class ZStream
|
|||||||
msg = null;
|
msg = null;
|
||||||
_adler = null;
|
_adler = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
public class ZStreamException : IOException
|
|
||||||
{
|
{
|
||||||
|
public class ZStreamException : IOException
|
||||||
|
{
|
||||||
public ZStreamException()
|
public ZStreamException()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -12,4 +12,5 @@ public class ZStreamException : IOException
|
|||||||
: base(s)
|
: base(s)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace ComponentAce.Compression.Libs.zlib;
|
namespace ComponentAce.Compression.Libs.zlib
|
||||||
|
|
||||||
public sealed class zlibConst
|
|
||||||
{
|
{
|
||||||
|
public sealed class zlibConst
|
||||||
|
{
|
||||||
private const string version_Renamed_Field = "1.0.2";
|
private const string version_Renamed_Field = "1.0.2";
|
||||||
|
|
||||||
public const int Z_NO_COMPRESSION = 0;
|
public const int Z_NO_COMPRESSION = 0;
|
||||||
@ -50,4 +50,5 @@ public sealed class zlibConst
|
|||||||
{
|
{
|
||||||
return "1.0.2";
|
return "1.0.2";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public class Crc32 : HashAlgorithm
|
|
||||||
{
|
{
|
||||||
|
public class Crc32 : HashAlgorithm
|
||||||
|
{
|
||||||
public const uint DefaultPolynomial = 3988292384u;
|
public const uint DefaultPolynomial = 3988292384u;
|
||||||
|
|
||||||
public const uint DefaultSeed = uint.MaxValue;
|
public const uint DefaultSeed = uint.MaxValue;
|
||||||
@ -105,4 +105,5 @@ public class Crc32 : HashAlgorithm
|
|||||||
(byte)(x & 0xFFu)
|
(byte)(x & 0xFFu)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public enum EmuRegion
|
|
||||||
{
|
{
|
||||||
|
public enum EmuRegion
|
||||||
|
{
|
||||||
NTSC,
|
NTSC,
|
||||||
PALB,
|
PALB,
|
||||||
DENDY
|
DENDY
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public class EmuSettings : ISettings
|
|
||||||
{
|
{
|
||||||
|
public class EmuSettings : ISettings
|
||||||
|
{
|
||||||
public string SnapsFolder = "Snaps";
|
public string SnapsFolder = "Snaps";
|
||||||
|
|
||||||
public string WavesFolder = "SoundRecords";
|
public string WavesFolder = "SoundRecords";
|
||||||
@ -96,4 +96,5 @@ public class EmuSettings : ISettings
|
|||||||
}
|
}
|
||||||
StateHandler.StateFolder = StateFolder;
|
StateHandler.StateFolder = StateFolder;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal class Eprom
|
|
||||||
{
|
{
|
||||||
|
internal class Eprom
|
||||||
|
{
|
||||||
private enum EpromDevice
|
private enum EpromDevice
|
||||||
{
|
{
|
||||||
X24C01,
|
X24C01,
|
||||||
@ -379,4 +379,5 @@ internal class Eprom
|
|||||||
cdata = stream.ReadInt32();
|
cdata = stream.ReadInt32();
|
||||||
isRead = stream.ReadBoolean();
|
isRead = stream.ReadBoolean();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal abstract class FFE : Board
|
|
||||||
{
|
{
|
||||||
|
internal abstract class FFE : Board
|
||||||
|
{
|
||||||
protected bool irqEnable;
|
protected bool irqEnable;
|
||||||
|
|
||||||
protected int irqCounter;
|
protected int irqCounter;
|
||||||
@ -52,4 +52,5 @@ internal abstract class FFE : Board
|
|||||||
irqEnable = bin.ReadBoolean();
|
irqEnable = bin.ReadBoolean();
|
||||||
irqCounter = bin.ReadInt32();
|
irqCounter = bin.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public class GameGenie
|
|
||||||
{
|
{
|
||||||
|
public class GameGenie
|
||||||
|
{
|
||||||
public string[] LettersTable = new string[16]
|
public string[] LettersTable = new string[16]
|
||||||
{
|
{
|
||||||
"A", "P", "Z", "L", "G", "I", "T", "Y", "E", "O",
|
"A", "P", "Z", "L", "G", "I", "T", "Y", "E", "O",
|
||||||
@ -148,4 +148,5 @@ public class GameGenie
|
|||||||
num = (code >> 4) & 1;
|
num = (code >> 4) & 1;
|
||||||
return (byte)((num8 << 7) | (num7 << 6) | (num6 << 5) | (num5 << 4) | (num4 << 3) | (num3 << 2) | (num2 << 1) | num);
|
return (byte)((num8 << 7) | (num7 << 6) | (num6 << 5) | (num5 << 4) | (num4 << 3) | (num3 << 2) | (num2 << 1) | num);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public struct GameGenieCode
|
|
||||||
{
|
{
|
||||||
|
public struct GameGenieCode
|
||||||
|
{
|
||||||
public string Name;
|
public string Name;
|
||||||
|
|
||||||
public string Descreption;
|
public string Descreption;
|
||||||
@ -15,4 +15,5 @@ public struct GameGenieCode
|
|||||||
public bool IsCompare;
|
public bool IsCompare;
|
||||||
|
|
||||||
public bool Enabled;
|
public bool Enabled;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
{
|
||||||
internal delegate void GetIsPlaying(out bool playing);
|
internal delegate void GetIsPlaying(out bool playing);
|
||||||
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal class HassIssuesAttribute : Attribute
|
|
||||||
{
|
{
|
||||||
|
internal class HassIssuesAttribute : Attribute
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public class HelperTools
|
|
||||||
{
|
{
|
||||||
|
public class HelperTools
|
||||||
|
{
|
||||||
public static string GetFileSize(string FilePath)
|
public static string GetFileSize(string FilePath)
|
||||||
{
|
{
|
||||||
if (File.Exists(Path.GetFullPath(FilePath)))
|
if (File.Exists(Path.GetFullPath(FilePath)))
|
||||||
@ -170,4 +170,5 @@ public class HelperTools
|
|||||||
stream.Close();
|
stream.Close();
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public interface IAudioProvider
|
|
||||||
{
|
{
|
||||||
|
public interface IAudioProvider
|
||||||
|
{
|
||||||
string Name { get; }
|
string Name { get; }
|
||||||
|
|
||||||
string ID { get; }
|
string ID { get; }
|
||||||
@ -25,4 +25,5 @@ public interface IAudioProvider
|
|||||||
void SignalToggle(bool started);
|
void SignalToggle(bool started);
|
||||||
|
|
||||||
void SetVolume(int Vol);
|
void SetVolume(int Vol);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public abstract class IJoypadConnecter
|
|
||||||
{
|
{
|
||||||
|
public abstract class IJoypadConnecter
|
||||||
|
{
|
||||||
protected byte DATA;
|
protected byte DATA;
|
||||||
|
|
||||||
public abstract void Update();
|
public abstract void Update();
|
||||||
@ -14,4 +14,5 @@ public abstract class IJoypadConnecter
|
|||||||
{
|
{
|
||||||
return DATA;
|
return DATA;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public class INes : IRom
|
|
||||||
{
|
{
|
||||||
|
public class INes : IRom
|
||||||
|
{
|
||||||
public bool HasBattery { get; private set; }
|
public bool HasBattery { get; private set; }
|
||||||
|
|
||||||
public bool IsPlaychoice10 { get; private set; }
|
public bool IsPlaychoice10 { get; private set; }
|
||||||
@ -91,4 +91,5 @@ public class INes : IRom
|
|||||||
fileStream.Dispose();
|
fileStream.Dispose();
|
||||||
fileStream.Close();
|
fileStream.Close();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public abstract class IRom
|
|
||||||
{
|
{
|
||||||
|
public abstract class IRom
|
||||||
|
{
|
||||||
public bool IsValid { get; set; }
|
public bool IsValid { get; set; }
|
||||||
|
|
||||||
public int PRGCount { get; set; }
|
public int PRGCount { get; set; }
|
||||||
@ -25,4 +25,5 @@ public abstract class IRom
|
|||||||
public virtual void Load(string fileName, bool loadDumps)
|
public virtual void Load(string fileName, bool loadDumps)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,10 +3,10 @@ using System.Collections.Generic;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public abstract class ISettings
|
|
||||||
{
|
{
|
||||||
|
public abstract class ISettings
|
||||||
|
{
|
||||||
protected string filePath;
|
protected string filePath;
|
||||||
|
|
||||||
protected FieldInfo[] Fields;
|
protected FieldInfo[] Fields;
|
||||||
@ -149,4 +149,5 @@ public abstract class ISettings
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public interface IShortcutsHandler
|
|
||||||
{
|
{
|
||||||
|
public interface IShortcutsHandler
|
||||||
|
{
|
||||||
void Update();
|
void Update();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public abstract class IVSUnisystemDIPConnecter
|
|
||||||
{
|
{
|
||||||
|
public abstract class IVSUnisystemDIPConnecter
|
||||||
|
{
|
||||||
public abstract void Update();
|
public abstract void Update();
|
||||||
|
|
||||||
public virtual void OnEmuShutdown()
|
public virtual void OnEmuShutdown()
|
||||||
@ -21,4 +21,5 @@ public abstract class IVSUnisystemDIPConnecter
|
|||||||
public virtual void Write4020(ref byte data)
|
public virtual void Write4020(ref byte data)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public interface IVideoProvider
|
|
||||||
{
|
{
|
||||||
|
public interface IVideoProvider
|
||||||
|
{
|
||||||
string Name { get; }
|
string Name { get; }
|
||||||
|
|
||||||
string ID { get; }
|
string ID { get; }
|
||||||
@ -37,4 +37,5 @@ public interface IVideoProvider
|
|||||||
void ToggleFPS(bool show_fps);
|
void ToggleFPS(bool show_fps);
|
||||||
|
|
||||||
void ApplyFilter();
|
void ApplyFilter();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public abstract class IZapperConnecter
|
|
||||||
{
|
{
|
||||||
|
public abstract class IZapperConnecter
|
||||||
|
{
|
||||||
protected bool Trigger;
|
protected bool Trigger;
|
||||||
|
|
||||||
protected bool State;
|
protected bool State;
|
||||||
@ -12,4 +12,5 @@ public abstract class IZapperConnecter
|
|||||||
{
|
{
|
||||||
return (byte)((Trigger ? 16u : 0u) | (State ? 8u : 0u));
|
return (byte)((Trigger ? 16u : 0u) | (State ? 8u : 0u));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal abstract class MMC2 : Board
|
|
||||||
{
|
{
|
||||||
|
internal abstract class MMC2 : Board
|
||||||
|
{
|
||||||
private byte chr_reg0A;
|
private byte chr_reg0A;
|
||||||
|
|
||||||
private byte chr_reg0B;
|
private byte chr_reg0B;
|
||||||
@ -112,4 +112,5 @@ internal abstract class MMC2 : Board
|
|||||||
latch_a = stream.ReadByte();
|
latch_a = stream.ReadByte();
|
||||||
latch_b = stream.ReadByte();
|
latch_b = stream.ReadByte();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal class MMC5Pcm
|
|
||||||
{
|
{
|
||||||
|
internal class MMC5Pcm
|
||||||
|
{
|
||||||
internal byte output;
|
internal byte output;
|
||||||
|
|
||||||
internal bool Outputable;
|
internal bool Outputable;
|
||||||
@ -82,4 +82,5 @@ internal class MMC5Pcm
|
|||||||
PCMIRQenable = stream.ReadBoolean();
|
PCMIRQenable = stream.ReadBoolean();
|
||||||
irqTrip = stream.ReadBoolean();
|
irqTrip = stream.ReadBoolean();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
internal class MMC5Sqr
|
|
||||||
{
|
{
|
||||||
|
internal class MMC5Sqr
|
||||||
|
{
|
||||||
private byte[][] duty_cycle_sequences = new byte[4][]
|
private byte[][] duty_cycle_sequences = new byte[4][]
|
||||||
{
|
{
|
||||||
new byte[8] { 0, 0, 0, 0, 0, 0, 0, 1 },
|
new byte[8] { 0, 0, 0, 0, 0, 0, 0, 1 },
|
||||||
@ -210,4 +210,5 @@ internal class MMC5Sqr
|
|||||||
envelope = bin.ReadByte();
|
envelope = bin.ReadByte();
|
||||||
output = bin.ReadInt32();
|
output = bin.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
public class MNInterfaceLanguage
|
|
||||||
{
|
{
|
||||||
|
public class MNInterfaceLanguage
|
||||||
|
{
|
||||||
public static string Message_RomInfoCanBeOnlyShown = "Rom info can be shown only when emulation is on (i.e. game is loaded)";
|
public static string Message_RomInfoCanBeOnlyShown = "Rom info can be shown only when emulation is on (i.e. game is loaded)";
|
||||||
|
|
||||||
public static string Message_StateSlotSetTo = "State slot set to";
|
public static string Message_StateSlotSetTo = "State slot set to";
|
||||||
@ -125,4 +125,5 @@ public class MNInterfaceLanguage
|
|||||||
public static string IssueMapper245 = "Graphic glitches, maybe chr switches.";
|
public static string IssueMapper245 = "Graphic glitches, maybe chr switches.";
|
||||||
|
|
||||||
public static string IssueMapper255 = "Mapper 255 is not tested, issues may occur";
|
public static string IssueMapper255 = "Mapper 255 is not tested, issues may occur";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("NROM", 0)]
|
|
||||||
internal class Mapper000 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("NROM", 0)]
|
||||||
|
internal class Mapper000 : Board
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("MMC1", 1, 4, 64)]
|
|
||||||
internal class Mapper001 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("MMC1", 1, 4, 64)]
|
||||||
|
internal class Mapper001 : Board
|
||||||
|
{
|
||||||
private int address_reg;
|
private int address_reg;
|
||||||
|
|
||||||
private byte[] reg = new byte[4];
|
private byte[] reg = new byte[4];
|
||||||
@ -241,4 +241,5 @@ internal class Mapper001 : Board
|
|||||||
use_sram_switch = stream.ReadBoolean();
|
use_sram_switch = stream.ReadBoolean();
|
||||||
cpuCycles = stream.ReadInt32();
|
cpuCycles = stream.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("UxROM", 2)]
|
|
||||||
internal class Mapper002 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("UxROM", 2)]
|
||||||
|
internal class Mapper002 : Board
|
||||||
|
{
|
||||||
internal override void HardReset()
|
internal override void HardReset()
|
||||||
{
|
{
|
||||||
base.HardReset();
|
base.HardReset();
|
||||||
@ -13,4 +13,5 @@ internal class Mapper002 : Board
|
|||||||
{
|
{
|
||||||
Switch16KPRG(val, PRGArea.Area8000);
|
Switch16KPRG(val, PRGArea.Area8000);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("CNROM", 3)]
|
|
||||||
internal class Mapper003 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("CNROM", 3)]
|
||||||
|
internal class Mapper003 : Board
|
||||||
|
{
|
||||||
private byte data_temp;
|
private byte data_temp;
|
||||||
|
|
||||||
internal override void WritePRG(ref ushort address, ref byte data)
|
internal override void WritePRG(ref ushort address, ref byte data)
|
||||||
@ -11,4 +11,5 @@ internal class Mapper003 : Board
|
|||||||
data_temp &= data;
|
data_temp &= data;
|
||||||
Switch08KCHR(data_temp);
|
Switch08KCHR(data_temp);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("MMC3", 4, true, true)]
|
|
||||||
internal class Mapper004 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("MMC3", 4, true, true)]
|
||||||
|
internal class Mapper004 : Board
|
||||||
|
{
|
||||||
private bool flag_c;
|
private bool flag_c;
|
||||||
|
|
||||||
private bool flag_p;
|
private bool flag_p;
|
||||||
@ -220,4 +220,5 @@ internal class Mapper004 : Board
|
|||||||
irq_clear = bin.ReadBoolean();
|
irq_clear = bin.ReadBoolean();
|
||||||
mmc3_alt_behavior = bin.ReadBoolean();
|
mmc3_alt_behavior = bin.ReadBoolean();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("MMC5", 5, 8, 16)]
|
|
||||||
[WithExternalSound]
|
|
||||||
[HassIssues]
|
|
||||||
internal class Mapper005 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("MMC5", 5, 8, 16)]
|
||||||
|
[WithExternalSound]
|
||||||
|
[HassIssues]
|
||||||
|
internal class Mapper005 : Board
|
||||||
|
{
|
||||||
private int ram_protectA;
|
private int ram_protectA;
|
||||||
|
|
||||||
private int ram_protectB;
|
private int ram_protectB;
|
||||||
@ -866,4 +866,5 @@ internal class Mapper005 : Board
|
|||||||
snd_2.ReadStateData(ref stream);
|
snd_2.ReadStateData(ref stream);
|
||||||
snd_3.LoadState(ref stream);
|
snd_3.LoadState(ref stream);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("FFE F4xxx", 6)]
|
|
||||||
[HassIssues]
|
|
||||||
internal class Mapper006 : FFE
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("FFE F4xxx", 6)]
|
||||||
|
[HassIssues]
|
||||||
|
internal class Mapper006 : FFE
|
||||||
|
{
|
||||||
internal override string Issues => MNInterfaceLanguage.IssueMapper6;
|
internal override string Issues => MNInterfaceLanguage.IssueMapper6;
|
||||||
|
|
||||||
internal override void HardReset()
|
internal override void HardReset()
|
||||||
@ -17,4 +17,5 @@ internal class Mapper006 : FFE
|
|||||||
Switch08KCHR(data & 3);
|
Switch08KCHR(data & 3);
|
||||||
Switch16KPRG((data >> 2) & 0xF, PRGArea.Area8000);
|
Switch16KPRG((data >> 2) & 0xF, PRGArea.Area8000);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("AxROM", 7)]
|
|
||||||
internal class Mapper007 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("AxROM", 7)]
|
||||||
|
internal class Mapper007 : Board
|
||||||
|
{
|
||||||
internal override void WritePRG(ref ushort addr, ref byte val)
|
internal override void WritePRG(ref ushort addr, ref byte val)
|
||||||
{
|
{
|
||||||
Switch01KNMTFromMirroring(((val & 0x10) == 16) ? Mirroring.OneScB : Mirroring.OneScA);
|
Switch01KNMTFromMirroring(((val & 0x10) == 16) ? Mirroring.OneScB : Mirroring.OneScA);
|
||||||
Switch32KPRG(val & 7, PRGArea.Area8000);
|
Switch32KPRG(val & 7, PRGArea.Area8000);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("FFE F3xxx", 8)]
|
|
||||||
[HassIssues]
|
|
||||||
internal class Mapper008 : FFE
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("FFE F3xxx", 8)]
|
||||||
|
[HassIssues]
|
||||||
|
internal class Mapper008 : FFE
|
||||||
|
{
|
||||||
internal override string Issues => MNInterfaceLanguage.IssueMapper8;
|
internal override string Issues => MNInterfaceLanguage.IssueMapper8;
|
||||||
|
|
||||||
internal override void WritePRG(ref ushort address, ref byte data)
|
internal override void WritePRG(ref ushort address, ref byte data)
|
||||||
@ -11,4 +11,5 @@ internal class Mapper008 : FFE
|
|||||||
Switch32KPRG((data >> 4) & 3, PRGArea.Area8000);
|
Switch32KPRG((data >> 4) & 3, PRGArea.Area8000);
|
||||||
Switch08KCHR(data & 3);
|
Switch08KCHR(data & 3);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("MMC2", 9)]
|
|
||||||
internal class Mapper009 : MMC2
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("MMC2", 9)]
|
||||||
|
internal class Mapper009 : MMC2
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("MMC4", 10)]
|
|
||||||
internal class Mapper010 : MMC2
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("MMC4", 10)]
|
||||||
|
internal class Mapper010 : MMC2
|
||||||
|
{
|
||||||
internal override void HardReset()
|
internal override void HardReset()
|
||||||
{
|
{
|
||||||
base.HardReset();
|
base.HardReset();
|
||||||
@ -21,4 +21,5 @@ internal class Mapper010 : MMC2
|
|||||||
base.WritePRG(ref address, ref data);
|
base.WritePRG(ref address, ref data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Color Dreams", 11)]
|
|
||||||
internal class Mapper011 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Color Dreams", 11)]
|
||||||
|
internal class Mapper011 : Board
|
||||||
|
{
|
||||||
private byte writeData;
|
private byte writeData;
|
||||||
|
|
||||||
internal override void WritePRG(ref ushort address, ref byte data)
|
internal override void WritePRG(ref ushort address, ref byte data)
|
||||||
@ -12,4 +12,5 @@ internal class Mapper011 : Board
|
|||||||
Switch32KPRG(writeData & 3, PRGArea.Area8000);
|
Switch32KPRG(writeData & 3, PRGArea.Area8000);
|
||||||
Switch08KCHR((writeData >> 4) & 0xF);
|
Switch08KCHR((writeData >> 4) & 0xF);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("CPROM", 13, 1, 16)]
|
|
||||||
internal class Mapper013 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("CPROM", 13, 1, 16)]
|
||||||
|
internal class Mapper013 : Board
|
||||||
|
{
|
||||||
private byte writeData;
|
private byte writeData;
|
||||||
|
|
||||||
internal override void HardReset()
|
internal override void HardReset()
|
||||||
@ -17,4 +17,5 @@ internal class Mapper013 : Board
|
|||||||
writeData &= data;
|
writeData &= data;
|
||||||
Switch04KCHR(writeData & 3, CHRArea.Area1000);
|
Switch04KCHR(writeData & 3, CHRArea.Area1000);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("100-in-1 Contra Function 16", 15)]
|
|
||||||
internal class Mapper015 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("100-in-1 Contra Function 16", 15)]
|
||||||
|
internal class Mapper015 : Board
|
||||||
|
{
|
||||||
private int temp;
|
private int temp;
|
||||||
|
|
||||||
internal override void WritePRG(ref ushort address, ref byte data)
|
internal override void WritePRG(ref ushort address, ref byte data)
|
||||||
@ -32,4 +32,5 @@ internal class Mapper015 : Board
|
|||||||
}
|
}
|
||||||
Switch01KNMTFromMirroring(((data & 0x40) == 64) ? Mirroring.Horz : Mirroring.Vert);
|
Switch01KNMTFromMirroring(((data & 0x40) == 64) ? Mirroring.Horz : Mirroring.Vert);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Bandai", 16)]
|
|
||||||
internal class Mapper016 : Bandai
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Bandai", 16)]
|
||||||
|
internal class Mapper016 : Bandai
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("FFE F8xxx", 17)]
|
|
||||||
internal class Mapper017 : FFE
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("FFE F8xxx", 17)]
|
||||||
|
internal class Mapper017 : FFE
|
||||||
|
{
|
||||||
internal override void HardReset()
|
internal override void HardReset()
|
||||||
{
|
{
|
||||||
base.HardReset();
|
base.HardReset();
|
||||||
@ -60,4 +60,5 @@ internal class Mapper017 : FFE
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Jaleco SS8806", 18)]
|
|
||||||
internal class Mapper018 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Jaleco SS8806", 18)]
|
||||||
|
internal class Mapper018 : Board
|
||||||
|
{
|
||||||
private int[] prg_reg;
|
private int[] prg_reg;
|
||||||
|
|
||||||
private int[] chr_reg;
|
private int[] chr_reg;
|
||||||
@ -215,4 +215,5 @@ internal class Mapper018 : Board
|
|||||||
irqEnable = stream.ReadBoolean();
|
irqEnable = stream.ReadBoolean();
|
||||||
irqMask = stream.ReadInt32();
|
irqMask = stream.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Namcot 106", 19, 1, 256)]
|
|
||||||
internal class Mapper019 : Namcot106
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Namcot 106", 19, 1, 256)]
|
||||||
|
internal class Mapper019 : Namcot106
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("VRC4", 21)]
|
|
||||||
internal class Mapper021 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("VRC4", 21)]
|
||||||
|
internal class Mapper021 : Board
|
||||||
|
{
|
||||||
private bool prg_mode;
|
private bool prg_mode;
|
||||||
|
|
||||||
private byte prg_reg0;
|
private byte prg_reg0;
|
||||||
@ -250,4 +250,5 @@ internal class Mapper021 : Board
|
|||||||
irq_enable = stream.ReadBoolean();
|
irq_enable = stream.ReadBoolean();
|
||||||
irq_enable_on_ak = stream.ReadBoolean();
|
irq_enable_on_ak = stream.ReadBoolean();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("VRC2", 22)]
|
|
||||||
internal class Mapper022 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("VRC2", 22)]
|
||||||
|
internal class Mapper022 : Board
|
||||||
|
{
|
||||||
private int[] chr_Reg;
|
private int[] chr_Reg;
|
||||||
|
|
||||||
internal override void HardReset()
|
internal override void HardReset()
|
||||||
@ -134,4 +134,5 @@ internal class Mapper022 : Board
|
|||||||
chr_Reg[i] = stream.ReadInt32();
|
chr_Reg[i] = stream.ReadInt32();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("VRC2", 23)]
|
|
||||||
internal class Mapper023 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("VRC2", 23)]
|
||||||
|
internal class Mapper023 : Board
|
||||||
|
{
|
||||||
private int[] chr_Reg;
|
private int[] chr_Reg;
|
||||||
|
|
||||||
private byte security;
|
private byte security;
|
||||||
@ -159,4 +159,5 @@ internal class Mapper023 : Board
|
|||||||
}
|
}
|
||||||
security = stream.ReadByte();
|
security = stream.ReadByte();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("VRC6", 24)]
|
|
||||||
[WithExternalSound]
|
|
||||||
internal class Mapper024 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("VRC6", 24)]
|
||||||
|
[WithExternalSound]
|
||||||
|
internal class Mapper024 : Board
|
||||||
|
{
|
||||||
private int irq_reload;
|
private int irq_reload;
|
||||||
|
|
||||||
private int irq_counter;
|
private int irq_counter;
|
||||||
@ -241,4 +241,5 @@ internal class Mapper024 : Board
|
|||||||
snd_2.LoadState(ref stream);
|
snd_2.LoadState(ref stream);
|
||||||
snd_3.LoadState(ref stream);
|
snd_3.LoadState(ref stream);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("VRC4", 25)]
|
|
||||||
internal class Mapper025 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("VRC4", 25)]
|
||||||
|
internal class Mapper025 : Board
|
||||||
|
{
|
||||||
private bool prg_mode;
|
private bool prg_mode;
|
||||||
|
|
||||||
private byte prg_reg0;
|
private byte prg_reg0;
|
||||||
@ -250,4 +250,5 @@ internal class Mapper025 : Board
|
|||||||
irq_enable = stream.ReadBoolean();
|
irq_enable = stream.ReadBoolean();
|
||||||
irq_enable_on_ak = stream.ReadBoolean();
|
irq_enable_on_ak = stream.ReadBoolean();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("VRC6", 26)]
|
|
||||||
[WithExternalSound]
|
|
||||||
internal class Mapper026 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("VRC6", 26)]
|
||||||
|
[WithExternalSound]
|
||||||
|
internal class Mapper026 : Board
|
||||||
|
{
|
||||||
private int irq_reload;
|
private int irq_reload;
|
||||||
|
|
||||||
private int irq_counter;
|
private int irq_counter;
|
||||||
@ -241,4 +241,5 @@ internal class Mapper026 : Board
|
|||||||
snd_2.LoadState(ref stream);
|
snd_2.LoadState(ref stream);
|
||||||
snd_3.LoadState(ref stream);
|
snd_3.LoadState(ref stream);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Irem G-101", 32)]
|
|
||||||
internal class Mapper032 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Irem G-101", 32)]
|
||||||
|
internal class Mapper032 : Board
|
||||||
|
{
|
||||||
private bool prg_mode;
|
private bool prg_mode;
|
||||||
|
|
||||||
private byte prg_reg0;
|
private byte prg_reg0;
|
||||||
@ -105,4 +105,5 @@ internal class Mapper032 : Board
|
|||||||
prg_mode = stream.ReadBoolean();
|
prg_mode = stream.ReadBoolean();
|
||||||
prg_reg0 = stream.ReadByte();
|
prg_reg0 = stream.ReadByte();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Taito TC0190/TC0350", 33)]
|
|
||||||
[HassIssues]
|
|
||||||
internal class Mapper033 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Taito TC0190/TC0350", 33)]
|
||||||
|
[HassIssues]
|
||||||
|
internal class Mapper033 : Board
|
||||||
|
{
|
||||||
private bool MODE;
|
private bool MODE;
|
||||||
|
|
||||||
private bool irq_enabled;
|
private bool irq_enabled;
|
||||||
@ -173,4 +173,5 @@ internal class Mapper033 : Board
|
|||||||
irq_reload = stream.ReadByte();
|
irq_reload = stream.ReadByte();
|
||||||
irq_clear = stream.ReadBoolean();
|
irq_clear = stream.ReadBoolean();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("BxROM/NINA-001", 34)]
|
|
||||||
internal class Mapper034 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("BxROM/NINA-001", 34)]
|
||||||
|
internal class Mapper034 : Board
|
||||||
|
{
|
||||||
private bool BxROM;
|
private bool BxROM;
|
||||||
|
|
||||||
private byte writeData;
|
private byte writeData;
|
||||||
@ -46,4 +46,5 @@ internal class Mapper034 : Board
|
|||||||
Switch32KPRG(writeData, PRGArea.Area8000);
|
Switch32KPRG(writeData, PRGArea.Area8000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Caltron 6-in-1", 41)]
|
|
||||||
internal class Mapper041 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Caltron 6-in-1", 41)]
|
||||||
|
internal class Mapper041 : Board
|
||||||
|
{
|
||||||
private bool enableReg;
|
private bool enableReg;
|
||||||
|
|
||||||
private int vromReg;
|
private int vromReg;
|
||||||
@ -54,4 +54,5 @@ internal class Mapper041 : Board
|
|||||||
enableReg = stream.ReadBoolean();
|
enableReg = stream.ReadBoolean();
|
||||||
vromReg = stream.ReadInt32();
|
vromReg = stream.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Mario Baby", 42)]
|
|
||||||
internal class Mapper042 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Mario Baby", 42)]
|
||||||
|
internal class Mapper042 : Board
|
||||||
|
{
|
||||||
private int SRAM_PRG_Page;
|
private int SRAM_PRG_Page;
|
||||||
|
|
||||||
private bool irqEnable;
|
private bool irqEnable;
|
||||||
@ -90,4 +90,5 @@ internal class Mapper042 : Board
|
|||||||
irqEnable = stream.ReadBoolean();
|
irqEnable = stream.ReadBoolean();
|
||||||
irqCounter = stream.ReadInt32();
|
irqCounter = stream.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("7-in-1 MMC3 Port A001h", 44, true, true)]
|
|
||||||
[HassIssues]
|
|
||||||
internal class Mapper044 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("7-in-1 MMC3 Port A001h", 44, true, true)]
|
||||||
|
[HassIssues]
|
||||||
|
internal class Mapper044 : Board
|
||||||
|
{
|
||||||
private bool flag_c;
|
private bool flag_c;
|
||||||
|
|
||||||
private bool flag_p;
|
private bool flag_p;
|
||||||
@ -231,4 +231,5 @@ internal class Mapper044 : Board
|
|||||||
chr_and = stream.ReadInt32();
|
chr_and = stream.ReadInt32();
|
||||||
chr_or = stream.ReadInt32();
|
chr_or = stream.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("X-in-1 MMC3 Port 6000hx4", 45, true, true)]
|
|
||||||
internal class Mapper045 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("X-in-1 MMC3 Port 6000hx4", 45, true, true)]
|
||||||
|
internal class Mapper045 : Board
|
||||||
|
{
|
||||||
private bool flag_c;
|
private bool flag_c;
|
||||||
|
|
||||||
private bool flag_p;
|
private bool flag_p;
|
||||||
@ -290,4 +290,5 @@ internal class Mapper045 : Board
|
|||||||
locked = stream.ReadBoolean();
|
locked = stream.ReadBoolean();
|
||||||
regCounter = stream.ReadInt32();
|
regCounter = stream.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("15-in-1 Color Dreams", 46)]
|
|
||||||
internal class Mapper046 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("15-in-1 Color Dreams", 46)]
|
||||||
|
internal class Mapper046 : Board
|
||||||
|
{
|
||||||
private int prg_reg;
|
private int prg_reg;
|
||||||
|
|
||||||
private int chr_reg;
|
private int chr_reg;
|
||||||
@ -38,4 +38,5 @@ internal class Mapper046 : Board
|
|||||||
prg_reg = stream.ReadInt32();
|
prg_reg = stream.ReadInt32();
|
||||||
chr_reg = stream.ReadInt32();
|
chr_reg = stream.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("2-in-1 MMC3 Port 6000h", 47, true, true)]
|
|
||||||
internal class Mapper047 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("2-in-1 MMC3 Port 6000h", 47, true, true)]
|
||||||
|
internal class Mapper047 : Board
|
||||||
|
{
|
||||||
private bool flag_c;
|
private bool flag_c;
|
||||||
|
|
||||||
private bool flag_p;
|
private bool flag_p;
|
||||||
@ -254,4 +254,5 @@ internal class Mapper047 : Board
|
|||||||
chr_or = stream.ReadInt32();
|
chr_or = stream.ReadInt32();
|
||||||
irq_enabled = stream.ReadBoolean();
|
irq_enabled = stream.ReadBoolean();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Taito TC0190/TC0350", 48, true, true)]
|
|
||||||
internal class Mapper048 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Taito TC0190/TC0350", 48, true, true)]
|
||||||
|
internal class Mapper048 : Board
|
||||||
|
{
|
||||||
private bool MODE;
|
private bool MODE;
|
||||||
|
|
||||||
private bool irq_enabled;
|
private bool irq_enabled;
|
||||||
@ -168,4 +168,5 @@ internal class Mapper048 : Board
|
|||||||
irq_reload = stream.ReadByte();
|
irq_reload = stream.ReadByte();
|
||||||
irq_clear = stream.ReadBoolean();
|
irq_clear = stream.ReadBoolean();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("4-in-1 MMC3 Port 6xxxh", 49, true, true)]
|
|
||||||
internal class Mapper049 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("4-in-1 MMC3 Port 6xxxh", 49, true, true)]
|
||||||
|
internal class Mapper049 : Board
|
||||||
|
{
|
||||||
private bool flag_c;
|
private bool flag_c;
|
||||||
|
|
||||||
private bool flag_p;
|
private bool flag_p;
|
||||||
@ -268,4 +268,5 @@ internal class Mapper049 : Board
|
|||||||
prg_32Mode = stream.ReadBoolean();
|
prg_32Mode = stream.ReadBoolean();
|
||||||
prg_32Page = stream.ReadInt32();
|
prg_32Page = stream.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("FDS-Port - Alt. Levels", 50)]
|
|
||||||
internal class Mapper050 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("FDS-Port - Alt. Levels", 50)]
|
||||||
|
internal class Mapper050 : Board
|
||||||
|
{
|
||||||
private int prg_page;
|
private int prg_page;
|
||||||
|
|
||||||
private int irq_counter;
|
private int irq_counter;
|
||||||
@ -67,4 +67,5 @@ internal class Mapper050 : Board
|
|||||||
irq_counter = stream.ReadInt32();
|
irq_counter = stream.ReadInt32();
|
||||||
irq_enabled = stream.ReadBoolean();
|
irq_enabled = stream.ReadBoolean();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("11-in-1", 51)]
|
|
||||||
internal class Mapper051 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("11-in-1", 51)]
|
||||||
|
internal class Mapper051 : Board
|
||||||
|
{
|
||||||
private int bank;
|
private int bank;
|
||||||
|
|
||||||
private int mode = 1;
|
private int mode = 1;
|
||||||
@ -75,4 +75,5 @@ internal class Mapper051 : Board
|
|||||||
mode = stream.ReadInt32();
|
mode = stream.ReadInt32();
|
||||||
offset = stream.ReadInt32();
|
offset = stream.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("7-in-1 MMC3 Port 6800h with SRAM", 52, true, true)]
|
|
||||||
internal class Mapper052 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("7-in-1 MMC3 Port 6800h with SRAM", 52, true, true)]
|
||||||
|
internal class Mapper052 : Board
|
||||||
|
{
|
||||||
private bool flag_c;
|
private bool flag_c;
|
||||||
|
|
||||||
private bool flag_p;
|
private bool flag_p;
|
||||||
@ -269,4 +269,5 @@ internal class Mapper052 : Board
|
|||||||
chr_or = stream.ReadInt32();
|
chr_or = stream.ReadInt32();
|
||||||
locked = stream.ReadBoolean();
|
locked = stream.ReadBoolean();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Unknown", 53)]
|
|
||||||
[HassIssues]
|
|
||||||
internal class Mapper053 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Unknown", 53)]
|
||||||
|
[HassIssues]
|
||||||
|
internal class Mapper053 : Board
|
||||||
|
{
|
||||||
private byte[] regs = new byte[2];
|
private byte[] regs = new byte[2];
|
||||||
|
|
||||||
private bool epromFirst;
|
private bool epromFirst;
|
||||||
@ -54,4 +54,5 @@ internal class Mapper053 : Board
|
|||||||
stream.Read(regs, 0, 2);
|
stream.Read(regs, 0, 2);
|
||||||
epromFirst = stream.ReadBoolean();
|
epromFirst = stream.ReadBoolean();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Pirate SMB3", 56)]
|
|
||||||
internal class Mapper056 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Pirate SMB3", 56)]
|
||||||
|
internal class Mapper056 : Board
|
||||||
|
{
|
||||||
private int irqCounter;
|
private int irqCounter;
|
||||||
|
|
||||||
private int irqLatch;
|
private int irqLatch;
|
||||||
@ -93,4 +93,5 @@ internal class Mapper056 : Board
|
|||||||
NesEmu.IRQFlags |= 8;
|
NesEmu.IRQFlags |= 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("6-in-1 (SuperGK)", 57)]
|
|
||||||
internal class Mapper057 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("6-in-1 (SuperGK)", 57)]
|
||||||
|
internal class Mapper057 : Board
|
||||||
|
{
|
||||||
private int chr_aaa;
|
private int chr_aaa;
|
||||||
|
|
||||||
private int chr_bbb;
|
private int chr_bbb;
|
||||||
@ -51,4 +51,5 @@ internal class Mapper057 : Board
|
|||||||
chr_bbb = stream.ReadInt32();
|
chr_bbb = stream.ReadInt32();
|
||||||
chr_hhh = stream.ReadInt32();
|
chr_hhh = stream.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("68-in-1 (Game Star)", 58)]
|
|
||||||
[HassIssues]
|
|
||||||
internal class Mapper058 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("68-in-1 (Game Star)", 58)]
|
||||||
|
[HassIssues]
|
||||||
|
internal class Mapper058 : Board
|
||||||
|
{
|
||||||
internal override string Issues => MNInterfaceLanguage.IssueMapper58;
|
internal override string Issues => MNInterfaceLanguage.IssueMapper58;
|
||||||
|
|
||||||
internal override void WritePRG(ref ushort address, ref byte data)
|
internal override void WritePRG(ref ushort address, ref byte data)
|
||||||
@ -20,4 +20,5 @@ internal class Mapper058 : Board
|
|||||||
}
|
}
|
||||||
Switch01KNMTFromMirroring(((address & 0x80) == 128) ? Mirroring.Horz : Mirroring.Vert);
|
Switch01KNMTFromMirroring(((address & 0x80) == 128) ? Mirroring.Horz : Mirroring.Vert);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Unknown", 60)]
|
|
||||||
[HassIssues]
|
|
||||||
internal class Mapper060 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Unknown", 60)]
|
||||||
|
[HassIssues]
|
||||||
|
internal class Mapper060 : Board
|
||||||
|
{
|
||||||
private int latch;
|
private int latch;
|
||||||
|
|
||||||
private byte menu;
|
private byte menu;
|
||||||
@ -63,4 +63,5 @@ internal class Mapper060 : Board
|
|||||||
latch = stream.ReadInt32();
|
latch = stream.ReadInt32();
|
||||||
menu = stream.ReadByte();
|
menu = stream.ReadByte();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("20-in-1", 61)]
|
|
||||||
internal class Mapper061 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("20-in-1", 61)]
|
||||||
|
internal class Mapper061 : Board
|
||||||
|
{
|
||||||
internal override void WritePRG(ref ushort address, ref byte data)
|
internal override void WritePRG(ref ushort address, ref byte data)
|
||||||
{
|
{
|
||||||
if ((address & 0x10) == 0)
|
if ((address & 0x10) == 0)
|
||||||
@ -16,4 +16,5 @@ internal class Mapper061 : Board
|
|||||||
}
|
}
|
||||||
Switch01KNMTFromMirroring(((address & 0x80) == 128) ? Mirroring.Horz : Mirroring.Vert);
|
Switch01KNMTFromMirroring(((address & 0x80) == 128) ? Mirroring.Horz : Mirroring.Vert);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Super 700-in-1", 62)]
|
|
||||||
internal class Mapper062 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Super 700-in-1", 62)]
|
||||||
|
internal class Mapper062 : Board
|
||||||
|
{
|
||||||
private int prg_page;
|
private int prg_page;
|
||||||
|
|
||||||
internal override void WritePRG(ref ushort address, ref byte data)
|
internal override void WritePRG(ref ushort address, ref byte data)
|
||||||
@ -20,4 +20,5 @@ internal class Mapper062 : Board
|
|||||||
}
|
}
|
||||||
Switch01KNMTFromMirroring(((address & 0x80) == 128) ? Mirroring.Horz : Mirroring.Vert);
|
Switch01KNMTFromMirroring(((address & 0x80) == 128) ? Mirroring.Horz : Mirroring.Vert);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Tengen RAMBO-1", 64, true, true)]
|
|
||||||
internal class Mapper064 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Tengen RAMBO-1", 64, true, true)]
|
||||||
|
internal class Mapper064 : Board
|
||||||
|
{
|
||||||
private bool flag_c;
|
private bool flag_c;
|
||||||
|
|
||||||
private bool flag_p;
|
private bool flag_p;
|
||||||
@ -254,4 +254,5 @@ internal class Mapper064 : Board
|
|||||||
irq_prescaler = stream.ReadInt32();
|
irq_prescaler = stream.ReadInt32();
|
||||||
irq_mode = stream.ReadBoolean();
|
irq_mode = stream.ReadBoolean();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Irem H-3001", 65)]
|
|
||||||
internal class Mapper065 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Irem H-3001", 65)]
|
||||||
|
internal class Mapper065 : Board
|
||||||
|
{
|
||||||
private bool irq_enable;
|
private bool irq_enable;
|
||||||
|
|
||||||
private int irq_reload;
|
private int irq_reload;
|
||||||
@ -90,4 +90,5 @@ internal class Mapper065 : Board
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("GxROM", 66)]
|
|
||||||
internal class Mapper066 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("GxROM", 66)]
|
||||||
|
internal class Mapper066 : Board
|
||||||
|
{
|
||||||
internal override void WritePRG(ref ushort address, ref byte data)
|
internal override void WritePRG(ref ushort address, ref byte data)
|
||||||
{
|
{
|
||||||
Switch32KPRG((data >> 4) & 3, PRGArea.Area8000);
|
Switch32KPRG((data >> 4) & 3, PRGArea.Area8000);
|
||||||
Switch08KCHR(data & 3);
|
Switch08KCHR(data & 3);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Sunsoft 3", 67)]
|
|
||||||
internal class Mapper067 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Sunsoft 3", 67)]
|
||||||
|
internal class Mapper067 : Board
|
||||||
|
{
|
||||||
private bool irq_enabled;
|
private bool irq_enabled;
|
||||||
|
|
||||||
private int irq_counter;
|
private int irq_counter;
|
||||||
@ -104,4 +104,5 @@ internal class Mapper067 : Board
|
|||||||
irq_counter = stream.ReadInt32();
|
irq_counter = stream.ReadInt32();
|
||||||
odd = stream.ReadBoolean();
|
odd = stream.ReadBoolean();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Sunsoft 4", 68)]
|
|
||||||
internal class Mapper068 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Sunsoft 4", 68)]
|
||||||
|
internal class Mapper068 : Board
|
||||||
|
{
|
||||||
private bool flag_r;
|
private bool flag_r;
|
||||||
|
|
||||||
private bool flag_m;
|
private bool flag_m;
|
||||||
@ -108,4 +108,5 @@ internal class Mapper068 : Board
|
|||||||
nt_reg1 = stream.ReadInt32();
|
nt_reg1 = stream.ReadInt32();
|
||||||
temp = stream.ReadInt32();
|
temp = stream.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("FME-7/Sunsoft 5B", 69)]
|
|
||||||
[WithExternalSound]
|
|
||||||
internal class Mapper069 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("FME-7/Sunsoft 5B", 69)]
|
||||||
|
[WithExternalSound]
|
||||||
|
internal class Mapper069 : Board
|
||||||
|
{
|
||||||
private int address_A000;
|
private int address_A000;
|
||||||
|
|
||||||
private int address_E000;
|
private int address_E000;
|
||||||
@ -255,4 +255,5 @@ internal class Mapper069 : Board
|
|||||||
snd_2.LoadState(ref stream);
|
snd_2.LoadState(ref stream);
|
||||||
snd_3.LoadState(ref stream);
|
snd_3.LoadState(ref stream);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Bandai", 70)]
|
|
||||||
internal class Mapper070 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Bandai", 70)]
|
||||||
|
internal class Mapper070 : Board
|
||||||
|
{
|
||||||
internal override void HardReset()
|
internal override void HardReset()
|
||||||
{
|
{
|
||||||
base.HardReset();
|
base.HardReset();
|
||||||
@ -14,4 +14,5 @@ internal class Mapper070 : Board
|
|||||||
Switch16KPRG((data >> 4) & 0xF, PRGArea.Area8000);
|
Switch16KPRG((data >> 4) & 0xF, PRGArea.Area8000);
|
||||||
Switch08KCHR(data & 0xF);
|
Switch08KCHR(data & 0xF);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Camerica", 71)]
|
|
||||||
internal class Mapper071 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Camerica", 71)]
|
||||||
|
internal class Mapper071 : Board
|
||||||
|
{
|
||||||
private bool fireHawk;
|
private bool fireHawk;
|
||||||
|
|
||||||
internal override void HardReset()
|
internal override void HardReset()
|
||||||
@ -26,4 +26,5 @@ internal class Mapper071 : Board
|
|||||||
Switch16KPRG(val, PRGArea.Area8000);
|
Switch16KPRG(val, PRGArea.Area8000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MyNes.Core;
|
namespace MyNes.Core
|
||||||
|
|
||||||
[BoardInfo("Jaleco Early Mapper 0", 72)]
|
|
||||||
internal class Mapper072 : Board
|
|
||||||
{
|
{
|
||||||
|
[BoardInfo("Jaleco Early Mapper 0", 72)]
|
||||||
|
internal class Mapper072 : Board
|
||||||
|
{
|
||||||
private byte writeData;
|
private byte writeData;
|
||||||
|
|
||||||
private int chr_reg;
|
private int chr_reg;
|
||||||
@ -49,4 +49,5 @@ internal class Mapper072 : Board
|
|||||||
chr_reg = stream.ReadInt32();
|
chr_reg = stream.ReadInt32();
|
||||||
prg_reg = stream.ReadInt32();
|
prg_reg = stream.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user