src/mess/drivers/x1.c
| r5722 | r5723 | |
| 1241 | 1241 | */ |
| 1242 | 1242 | UINT8 dat = 0; |
| 1243 | 1243 | 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; |
| 1245 | 1245 | |
| 1246 | 1246 | if(cassette_input(devtag_get_device(device->machine,"cass")) > 0.03) |
| 1247 | 1247 | dat |= 0x02; |
| r5722 | r5723 | |
| 1249 | 1249 | // if(cassette_get_state(devtag_get_device(device->machine,"cass")) & CASSETTE_MOTOR_DISABLED) |
| 1250 | 1250 | // dat &= ~0x02; // is zero if not playing |
| 1251 | 1251 | |
| 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; |
| 1252 | 1255 | if(cmt_test != 0) |
| 1253 | 1256 | { |
| 1254 | | dat |= 0x01; |
| 1255 | | cmt_test = 1; |
| 1257 | cmt_test = 0; |
| 1258 | dat &= ~0x01; |
| 1256 | 1259 | } |
| 1257 | 1260 | |
| 1258 | 1261 | return dat; |