void jvc_xvd701_device::device_start() { int startbits = 1; int databits = 8; parity_t parity = PARITY_ODD; stop_bits_t stopbits = STOP_BITS_1; set_data_frame(startbits, databits, parity, stopbits); int txbaud = 9600; set_tra_rate(txbaud); int rxbaud = 9600; set_rcv_rate(rxbaud); output_rxd(1); // TODO: make this configurable output_dcd(0); output_dsr(0); output_ri(0); output_cts(0); m_timer_response = timer_alloc(TIMER_RESPONSE); }
static void output_dic_index (void) { if (which_dict == WNN_UD_DICT) { fprintf (stderr, " tnum = %d\n ind2= %d\n kanji = %d\n", tnum, (int)((char *) uhopter - (char *) hostart), kanjicount); jt.maxtable = tnum; jt.maxhontai = (char *) uhopter - (char *) hostart; jt.maxri2 = jt.maxri1[D_YOMI] = jt.maxri1[D_KANJI] = 0; jt.hontai = hostart; jt.table = tary; jt.ri1[D_YOMI] = NULL; jt.ri1[D_KANJI] = NULL; jt.ri2 = NULL; #ifdef CHINESE } else if ((which_dict & 0xff) == WNN_REV_DICT) { #else } else if (which_dict == WNN_REV_DICT) { #endif fprintf (stderr, "kanji = %d\n", kanjicount); jt.maxtable = 0; jt.maxhontai = 0; jt.maxri2 = jt.maxserial; jt.hontai = NULL; jt.table = NULL; /* jt.ri1, jt.ri2 is set in create_rev_dict */ } else { fprintf (stderr, "node_count = %d ind= %d\n kanji = %d\n", node_count, (int)((char *) hopter - (char *) hostart), kanjicount); jt.maxtable = 0; jt.maxhontai = (char *) hopter - (char *) hostart; jt.maxri2 = jt.maxri1[D_YOMI] = jt.maxri1[D_KANJI] = 0; jt.hontai = hostart; jt.table = NULL; jt.ri1[D_YOMI] = NULL; jt.ri1[D_KANJI] = NULL; jt.ri2 = NULL; } jt.maxkanji = kanjicount; if (little_endian ()) { revdic (&jt, 1); } if (which_dict == WNN_UD_DICT) { fwrite ((char *) tary, sizeof (struct uind1), tnum, ofpter); fwrite (hostart, 1, (char *) uhopter - (char *) hostart, ofpter); #ifdef CHINESE } else if ((which_dict & 0xff) == WNN_REV_DICT) { #else } else if (which_dict == WNN_REV_DICT) { #endif output_ri (ofpter); } else { fwrite (hostart, 1, (char *) hopter - (char *) hostart, ofpter); } }