public int handler(int offset) {
            int res;

            res = input_port_0_r.handler(0);
            if (init_eeprom_count != 0) {
                init_eeprom_count--;
                res &= 0xf7ff;
            }
            return res;
        }