public int handler(int offset) {
            if (kingball_speech_dip != 0) {
                return (readinputport(0) & 0x80) >> 1;
            } else {
                return readinputport(0);
            }
        }