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; } }
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; } }
private static void lhb_okibank_w(ushort data) { OKI6295.okim6295_set_bank_base((data & 0x200) != 0 ? 0x40000 : 0); }
private static void lhb_okibank_w(byte data) { //ACCESSING_BITS_8_15 OKI6295.okim6295_set_bank_base((data & 0x2) != 0 ? 0x40000 : 0); }