AxibugEmuOnline/OtherCore/MyNes.Standard2/MyNes.Core/Mapper093.cs

19 lines
471 B
C#
Raw Permalink Normal View History

2024-07-24 15:03:33 +08:00
namespace MyNes.Core
{
[BoardInfo("74161/32", 93)]
internal class Mapper093 : Board
{
internal override void HardReset()
{
base.HardReset();
Switch16KPRG(PRG_ROM_16KB_Mask, PRGArea.AreaC000);
}
internal override void WritePRG(ref ushort address, ref byte data)
{
Switch16KPRG((data >> 4) & 0xF, PRGArea.Area8000);
Switch01KNMTFromMirroring(((data & 1) == 1) ? Mirroring.Horz : Mirroring.Vert);
}
}
}