public void handler(int offset, int data) {
            /* bit 0 is data */
            /* bit 1 is cs (active low) */
            /* bit 2 is clock (active high) */
            EEPROM_write_bit(data & 0x01);
            EEPROM_set_cs_line((data & 0x02) != 0 ? CLEAR_LINE : ASSERT_LINE);
            EEPROM_set_clock_line((data & 0x04) != 0 ? ASSERT_LINE : CLEAR_LINE);

            /* bit 5 selects sprite ROM for testing in TMNT2 */
            K053244_bankselect((data & 0x20) >> 5);
        }