Example #1
0
        public static void sound_reset()
        {
            switch (Machine.sBoard)
            {
            case "CPS-1":
                YM2151.ym2151_reset_chip();
                OKI6295.okim6295_reset();
                break;

            case "CPS-1(QSound)":
            case "CPS2":
                break;

            case "Neo Geo":
                FM.ym2610_reset_chip();
                break;

            case "Namco System 1":
                YM2151.ym2151_reset_chip();
                break;

            case "IGS011":
                OKI6295.okim6295_reset();
                break;

            case "PGM":
                ICS2115.ics2115_reset();
                break;
            }
        }
Example #2
0
 public static void z80_reset_w(ushort data)
 {
     if (data == 0x5050)
     {
         ICS2115.ics2115_reset();
         Cpuint.cpunum_set_input_line(1, (int)LineState.INPUT_LINE_HALT, LineState.CLEAR_LINE);
         Cpuint.cpunum_set_input_line(1, (int)LineState.INPUT_LINE_RESET, LineState.PULSE_LINE);
     }
     else
     {
         Cpuint.cpunum_set_input_line(1, (int)LineState.INPUT_LINE_HALT, LineState.ASSERT_LINE);
     }
 }