src/emu/cpu/cp1610/cp1610.c
| r4033 | r4034 | |
| 1554 | 1554 | static CPU_RESET( cp1610 ) |
| 1555 | 1555 | { |
| 1556 | 1556 | /* This is how we set the reset vector */ |
| 1557 | | cpu_set_input_line(device, CP1610_RESET, PULSE_LINE); |
| 1557 | cpu_set_input_line(device, INPUT_LINE_RESET, PULSE_LINE); |
| 1558 | 1558 | } |
| 1559 | 1559 | |
| 1560 | 1560 | /*************************************************** |
| r4033 | r4034 | |
| 3368 | 3368 | if (cpustate->reset_pending == 1) |
| 3369 | 3369 | { |
| 3370 | 3370 | cpustate->reset_pending = 0; |
| 3371 | | cpustate->r[7] = cpustate->irq_callback(cpustate->device, CP1610_RESET); |
| 3371 | cpustate->r[7] = cpustate->irq_callback(cpustate->device, INPUT_LINE_RESET); |
| 3372 | 3372 | } |
| 3373 | 3373 | } |
| 3374 | 3374 | |
| r4033 | r4034 | |
| 3398 | 3398 | cpustate->intrm_pending = 1; |
| 3399 | 3399 | cpustate->intrm_state = state; |
| 3400 | 3400 | break; |
| 3401 | | case CP1610_RESET: |
| 3401 | case INPUT_LINE_RESET: |
| 3402 | 3402 | if (state == ASSERT_LINE) |
| 3403 | 3403 | cpustate->reset_pending = 1; |
| 3404 | 3404 | cpustate->reset_state = state; |
| r4033 | r4034 | |
| 3419 | 3419 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 3420 | 3420 | case CPUINFO_INT_PREVIOUSPC: break; /* TODO? */ |
| 3421 | 3421 | case CPUINFO_INT_INPUT_STATE + CP1610_INT_INTRM: |
| 3422 | | case CPUINFO_INT_INPUT_STATE + CP1610_RESET: |
| 3422 | case CPUINFO_INT_INPUT_STATE + INPUT_LINE_RESET: |
| 3423 | 3423 | case CPUINFO_INT_INPUT_STATE + CP1610_INT_INTR: |
| 3424 | 3424 | cp1610_set_irq_line(cpustate, state-CPUINFO_INT_INPUT_STATE, info->i); break; |
| 3425 | 3425 | |
| r4033 | r4034 | |
| 3467 | 3467 | case CPUINFO_INT_PREVIOUSPC: info->i = 0; /* TODO??? */ break; |
| 3468 | 3468 | |
| 3469 | 3469 | case CPUINFO_INT_INPUT_STATE + CP1610_INT_INTRM: info->i = cpustate->intrm_state; break; |
| 3470 | | case CPUINFO_INT_INPUT_STATE + CP1610_RESET: info->i = cpustate->reset_state; break; |
| 3470 | case CPUINFO_INT_INPUT_STATE + INPUT_LINE_RESET: info->i = cpustate->reset_state; break; |
| 3471 | 3471 | case CPUINFO_INT_INPUT_STATE + CP1610_INT_INTR: info->i = cpustate->intr_state; break; |
| 3472 | 3472 | |
| 3473 | 3473 | case CPUINFO_INT_REGISTER + CP1610_R0: info->i = cpustate->r[0]; break; |