示例#1
0
		public override bool Configure(NES.EDetectionOrigin origin)
		{
			switch (Cart.board_type)
			{
				case "MAPPER105":
					break;
				case "NES-EVENT":
					AssertPrg(256); AssertChr(0); AssertVram(8); AssertWram(8);
					break;
				default:
					return false;
			}

			prg_bank_mask_16k = Cart.prg_size / 16 - 1;

			SetMirrorType(EMirrorType.Vertical);

			scnt = new MMC1.MMC1_SerialController();
			scnt.WriteRegister = SerialWriteRegister;
			scnt.Reset = SerialReset;

			Sync();

			return true;
		}
示例#2
0
        public override bool Configure(EDetectionOrigin origin)
        {
            switch (Cart.BoardType)
            {
            case "MAPPER105":
                break;

            case "NES-EVENT":
                AssertPrg(256); AssertChr(0); AssertVram(8); AssertWram(8);
                break;

            default:
                return(false);
            }

            prg_bank_mask_16k = Cart.PrgSize / 16 - 1;
            init_sequence     = 0;

            SetMirrorType(EMirrorType.Vertical);

            scnt = new MMC1.MMC1_SerialController
            {
                WriteRegister = SerialWriteRegister,
                Reset         = SerialReset
            };

            InitValues();

            return(true);
        }
示例#3
0
        public override bool Configure(NES.EDetectionOrigin origin)
        {
            switch (Cart.board_type)
            {
            case "MAPPER105":
                break;

            case "NES-EVENT":
                AssertPrg(256); AssertChr(0); AssertVram(8); AssertWram(8);
                break;

            default:
                return(false);
            }

            prg_bank_mask_16k = Cart.prg_size / 16 - 1;

            SetMirrorType(EMirrorType.Vertical);

            scnt = new MMC1.MMC1_SerialController();
            scnt.WriteRegister = SerialWriteRegister;
            scnt.Reset         = SerialReset;

            Sync();

            return(true);
        }