static WRITE16_HANDLER( pokey_word_w ) { if (offset & 0x10) /* A5 selects chip */ pokey2_w(offset & 0x0f, data); else pokey1_w(offset & 0x0f, data); }
static WRITE_HANDLER( dual_pokey_w ) { int pokey_num = (offset >> 3) & 0x01; int control = (offset & 0x10) >> 1; int pokey_reg = (offset % 8) | control; if (pokey_num == 0) pokey1_w(pokey_reg, data); else pokey2_w(pokey_reg, data); }
static WRITE16_HANDLER( pokey2_word_w ) { if (ACCESSING_LSB) pokey2_w(offset, data & 0xff); }
void foodf_pokey2_w (int offset, int data) { pokey2_w (offset/2, data & 0xff); }