Esempio n. 1
0
        public void mucInit()
        {
            expand = new ver1_1.expand();
            errmsg = new ver1_0.errmsg();
            msub   = new ver1_1.msub();
            muc88  = new ver1_1.muc88();
            ssgdat = new ver1_0.ssgdat();
            time   = new ver1_0.time();
            smon   = new ver1_0.smon();
            music2 = new ver1_0.music2();

            z80  = new Z80();
            mem  = new Mem();
            pc88 = new PC88();

            expand.Mem  = mem;
            expand.Z80  = z80;
            expand.PC88 = pc88;
            expand.msub = msub;
            expand.smon = smon;

            msub.Mem  = mem;
            msub.Z80  = z80;
            msub.PC88 = pc88;

            muc88.Mem    = mem;
            muc88.Z80    = z80;
            muc88.PC88   = pc88;
            muc88.msub   = msub;
            muc88.expand = expand;
            muc88.smon   = smon;

            time.Mem  = mem;
            time.Z80  = z80;
            time.PC88 = pc88;

            smon.Mem    = mem;
            smon.Z80    = z80;
            smon.PC88   = pc88;
            smon.msub   = msub;
            smon.expand = expand;

            z80.Mem = mem;

            pc88.Mem          = mem;
            pc88.Z80          = z80;
            pc88.ChipRegister = chipRegister;
            pc88.fmTimer      = timerOPN;

            ssgdat.SetSSGDAT(mem);

            music2.Z80  = z80;
            music2.Mem  = mem;
            music2.PC88 = pc88;

            timerOPN = new MNDRV.FMTimer(false, null, baseclock);

            //ほぼ意味なし
            muc88.CINT();
        }