public int handler(int offset) {
            int res;

            res = EEPROM_read_bit();

            res |= 0x02;//konami_eeprom_ack() << 5; /* add the ack */

            res |= readinputport(3) & 0x0c;
            /* test switch */

            if (init_eeprom_count != 0) {
                init_eeprom_count--;
                res &= 0xfb;
            }
            return res;
        }