Previous 15994 Revisions Next

r5723 Monday 14th September, 2009 at 01:37:48 UTC by Barry Rodewald
[X1] Corrected CMT test bit.
[src/mess/drivers]x1.c

src/mess/drivers/x1.c
r5722r5723
12411241   */
12421242   UINT8 dat = 0;
12431243   vdisp = (video_screen_get_vpos(device->machine->primary_screen) < 200) ? 0x80 : 0x00;
1244   dat = (input_port_read(device->machine, "SYSTEM") & 0x11) | sub_obf | vsync | vdisp;
1244   dat = (input_port_read(device->machine, "SYSTEM") & 0x10) | sub_obf | vsync | vdisp;
12451245
12461246   if(cassette_input(devtag_get_device(device->machine,"cass")) > 0.03)
12471247      dat |= 0x02;
r5722r5723
12491249//   if(cassette_get_state(devtag_get_device(device->machine,"cass")) & CASSETTE_MOTOR_DISABLED)
12501250//      dat &= ~0x02;  // is zero if not playing
12511251
1252   // CMT test bit is set low when the CMT Stop command is issued, and becomes
1253   // high again when this bit is read.
1254   dat |= 0x01;
12521255   if(cmt_test != 0)
12531256   {
1254      dat |= 0x01;
1255      cmt_test = 1;
1257      cmt_test = 0;
1258      dat &= ~0x01;
12561259   }
12571260
12581261   return dat;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team