public void handler(int offset, int data) {
            /* bit 0 - VOC0 - Video banking related */
 /* bit 1 - VOC1 - Video banking related */
 /* bit 2 - MSCHNG - Mono Sound select (Amp) */
 /* bit 3 - EEPCS - Eeprom CS */
 /* bit 4 - EEPCLK - Eeprom CLK */
 /* bit 5 - EEPDI - Eeprom data */
 /* bit 6 - IRQ enable */
 /* bit 7 - Unused */

            if (data == 0xff) /* this is a bug in the eeprom write code */ {
                return;
            }

            /* EEPROM */
            EEPROM_write_bit(data & 0x20);
            EEPROM_set_clock_line((data & 0x10) != 0 ? ASSERT_LINE : CLEAR_LINE);
            EEPROM_set_cs_line((data & 0x08) != 0 ? CLEAR_LINE : ASSERT_LINE);

            irq_enabled = (data >> 6) & 1;

            vendetta_video_banking(data & 1);
        }