Beispiel #1
0
        public override void WriteWRAM(int addr, byte value)
        {
            switch (addr & 0x7003)
            {
            case 0x0000:
                chr_regs_2k[0] = value;
                break;

            case 0x0001:
                chr_regs_2k[1] = value;
                break;

            case 0x0002:
                chr_regs_2k[2] = value;
                break;

            case 0x0003:
                chr_regs_2k[3] = value;
                break;

            case 0x1000:
                prg_regs_8k[0] = (byte)(value & 0x0F);
                break;

            case 0x1001:
                prg_regs_8k[1] = (byte)(value & 0x0F);
                break;

            case 0x1002:                     //$7002
                mmc3.WritePRG(0xE000, value);
                break;

            case 0x1003:                     //$7003
                mmc3.WritePRG(0xC000, 7);
                mmc3.WritePRG(0xC001, value);
                mmc3.WritePRG(0xE001, value);
                break;
            }
        }
Beispiel #2
0
 public override void WritePRG(int addr, byte value)
 {
     mmc3.WritePRG(addr, value);
 }