trunk/src/emu/machine/smpc.c
| r21053 | r21054 | |
| 315 | 315 | saturn_state *state = machine.driver_data<saturn_state>(); |
| 316 | 316 | int i; |
| 317 | 317 | |
| 318 | // printf("%02x %02x %02x\n",state->m_smpc.intback_buf[0],state->m_smpc.intback_buf[1],state->m_smpc.intback_buf[2]); |
| 319 | |
| 318 | 320 | if(state->m_smpc.intback_buf[0] != 0) |
| 319 | 321 | { |
| 320 | 322 | state->m_smpc.OREG[0] = (0x80) | ((state->m_NMI_reset & 1) << 6); |
| r21053 | r21054 | |
| 365 | 367 | state->m_smpc.OREG[31] = 0x10; |
| 366 | 368 | machine.scheduler().timer_set(attotime::from_usec(0), FUNC(stv_intback_peripheral),0); |
| 367 | 369 | } |
| 370 | else |
| 371 | { |
| 372 | /* Shienryu calls this, it would be plainly illegal on Saturn, I'll just return the command and clear the hs flag for now. */ |
| 373 | state->m_smpc.OREG[31] = 0x10; |
| 374 | state->m_smpc.SF = 0x00; |
| 375 | } |
| 368 | 376 | } |
| 369 | 377 | |
| 370 | 378 | |