示例#1
0
        private static void lhb2_igs003_w(int offset, ushort data)
        {
            igs003_reg[offset] = data;
            if (offset == 0)
            {
                return;
            }
            switch (igs003_reg[0])
            {
            case 0x00:
                igs_input_sel = data;
                //if (ACCESSING_BITS_0_7)
                {
                    Generic.coin_counter_w(0, data & 0x20);
                }
                break;

            case 0x02:
                //if (ACCESSING_BITS_0_7)
            {
                lhb2_pen_hi = (byte)(data & 0x07);
                OKI6295.okim6295_set_bank_base((data & 0x08) != 0 ? 0x40000 : 0);
            }
            break;
            }
        }
示例#2
0
 private static void wlcc_igs003_w(int offset, ushort data)
 {
     igs003_reg[offset] = data;
     if (offset == 0)
     {
         return;
     }
     switch (igs003_reg[0])
     {
     case 0x02:
         //if (ACCESSING_BITS_0_7)
     {
         Generic.coin_counter_w(0, data & 0x01);
         OKI6295.okim6295_set_bank_base((data & 0x10) != 0 ? 0x40000 : 0);
     }
     break;
     }
 }
示例#3
0
 private static void lhb_okibank_w(ushort data)
 {
     OKI6295.okim6295_set_bank_base((data & 0x200) != 0 ? 0x40000 : 0);
 }
示例#4
0
 private static void lhb_okibank_w(byte data)
 {
     //ACCESSING_BITS_8_15
     OKI6295.okim6295_set_bank_base((data & 0x2) != 0 ? 0x40000 : 0);
 }