public void handler(int offset, int data) {
            if (offset == 0) {
                YM2413_register_port_0_w.handler(0, (data >> 8) & 0xff);
            } else {
                YM2413_data_port_0_w.handler(0, (data >> 8) & 0xff);
            }
        }