src/mess/machine/pdp1.c
| r5681 | r5682 | |
| 527 | 527 | if (tape_reader.rcp) |
| 528 | 528 | { |
| 529 | 529 | cpu_set_reg(cputag_get_cpu(machine, "maincpu"), PDP1_IO, tape_reader.rb); /* transfer reader buffer to IO */ |
| 530 | | pdp1_pulse_iot_done(); |
| 530 | pdp1_pulse_iot_done(cputag_get_cpu(machine, "maincpu")); |
| 531 | 531 | } |
| 532 | 532 | else |
| 533 | 533 | io_status |= io_st_ptr; |
| r5681 | r5682 | |
| 552 | 552 | io_status |= io_st_ptp; |
| 553 | 553 | if (nac) |
| 554 | 554 | { |
| 555 | | pdp1_pulse_iot_done(); |
| 555 | pdp1_pulse_iot_done(cputag_get_cpu(machine, "maincpu")); |
| 556 | 556 | } |
| 557 | 557 | } |
| 558 | 558 | |
| r5681 | r5682 | |
| 849 | 849 | io_status |= io_st_tyo; |
| 850 | 850 | if (nac) |
| 851 | 851 | { |
| 852 | | pdp1_pulse_iot_done(); |
| 852 | pdp1_pulse_iot_done(cputag_get_cpu(machine, "maincpu")); |
| 853 | 853 | } |
| 854 | 854 | } |
| 855 | 855 | |
| r5681 | r5682 | |
| 965 | 965 | */ |
| 966 | 966 | static TIMER_CALLBACK(dpy_callback) |
| 967 | 967 | { |
| 968 | | pdp1_pulse_iot_done(); |
| 968 | pdp1_pulse_iot_done(cputag_get_cpu(machine, "maincpu")); |
| 969 | 969 | } |
| 970 | 970 | |
| 971 | 971 | |
| r5681 | r5682 | |
| 1374 | 1374 | } |
| 1375 | 1375 | if (control_transitions & pdp1_start_nobrk) |
| 1376 | 1376 | { |
| 1377 | | pdp1_pulse_start_clear(); /* pulse Start Clear line */ |
| 1377 | pdp1_pulse_start_clear(device); /* pulse Start Clear line */ |
| 1378 | 1378 | cpu_set_reg(device, PDP1_EXD, cpu_get_reg(device, PDP1_EXTEND_SW)); |
| 1379 | 1379 | cpu_set_reg(device, PDP1_SBM, 0); |
| 1380 | 1380 | cpu_set_reg(device, PDP1_OV, 0); |
| r5681 | r5682 | |
| 1383 | 1383 | } |
| 1384 | 1384 | if (control_transitions & pdp1_start_brk) |
| 1385 | 1385 | { |
| 1386 | | pdp1_pulse_start_clear(); /* pulse Start Clear line */ |
| 1386 | pdp1_pulse_start_clear(device); /* pulse Start Clear line */ |
| 1387 | 1387 | cpu_set_reg(device, PDP1_EXD, cpu_get_reg(device, PDP1_EXTEND_SW)); |
| 1388 | 1388 | cpu_set_reg(device, PDP1_SBM, 1); |
| 1389 | 1389 | cpu_set_reg(device, PDP1_OV, 0); |
| r5681 | r5682 | |
| 1403 | 1403 | } |
| 1404 | 1404 | if (control_transitions & pdp1_examine) |
| 1405 | 1405 | { |
| 1406 | | pdp1_pulse_start_clear(); /* pulse Start Clear line */ |
| 1406 | pdp1_pulse_start_clear(device); /* pulse Start Clear line */ |
| 1407 | 1407 | cpu_set_reg(device, PDP1_PC, cpu_get_reg(device, PDP1_TA)); |
| 1408 | 1408 | cpu_set_reg(device, PDP1_MA, cpu_get_reg(device, PDP1_PC)); |
| 1409 | 1409 | cpu_set_reg(device, PDP1_IR, LAC); /* this instruction is actually executed */ |
| r5681 | r5682 | |
| 1413 | 1413 | } |
| 1414 | 1414 | if (control_transitions & pdp1_deposit) |
| 1415 | 1415 | { |
| 1416 | | pdp1_pulse_start_clear(); /* pulse Start Clear line */ |
| 1416 | pdp1_pulse_start_clear(device); /* pulse Start Clear line */ |
| 1417 | 1417 | cpu_set_reg(device, PDP1_PC, cpu_get_reg(device, PDP1_TA)); |
| 1418 | 1418 | cpu_set_reg(device, PDP1_MA, cpu_get_reg(device, PDP1_PC)); |
| 1419 | 1419 | cpu_set_reg(device, PDP1_AC, cpu_get_reg(device, PDP1_TW)); |
| r5681 | r5682 | |
| 1424 | 1424 | } |
| 1425 | 1425 | if (control_transitions & pdp1_read_in) |
| 1426 | 1426 | { /* set cpu to read instructions from perforated tape */ |
| 1427 | | pdp1_pulse_start_clear(); /* pulse Start Clear line */ |
| 1427 | pdp1_pulse_start_clear(device); /* pulse Start Clear line */ |
| 1428 | 1428 | cpu_set_reg(device, PDP1_PC, ( cpu_get_reg(device, PDP1_TA) & 0170000) |
| 1429 | 1429 | | (cpu_get_reg(device, PDP1_PC) & 0007777)); /* transfer ETA to EPC */ |
| 1430 | 1430 | /*cpu_set_reg(cputag_get_cpu(machine, "maincpu"), PDP1_MA, cpu_get_reg(cputag_get_cpu(machine, "maincpu"), PDP1_PC));*/ |