trunk/src/mame/drivers/peplus.c
| r32315 | r32316 | |
| 168 | 168 | expect the Door Open bit to cycle. Later versions, Superboard & Wingboards require the Door Open cycling but |
| 169 | 169 | at different rates. It's currently not know what if any universal value will work for all sets. |
| 170 | 170 | |
| 171 | | NOTE: Some of the earlier 32K versions currently error out with a Coin-In Timeout error. These sets include: |
| 172 | | PP0008, PP0014, PP0023, PP0057, PP0059, PP0063 & PP0064 |
| 173 | | |
| 174 | 171 | ***********************************************************************************/ |
| 175 | 172 | |
| 176 | 173 | #include "emu.h" |
| r32315 | r32316 | |
| 875 | 872 | m_last_cycles = m_maincpu->total_cycles(); |
| 876 | 873 | } else { |
| 877 | 874 | /* Process Next Coin Optic State */ |
| 878 | | if (curr_cycles - m_last_cycles > 600000/6 && m_coin_state != 0) { |
| 875 | if (curr_cycles - m_last_cycles > 10000 && m_coin_state != 0) { // Must be below 100ms (833.3 x 100 cycles) or "Coin-in Timeout" error |
| 879 | 876 | m_coin_state++; |
| 880 | 877 | if (m_coin_state > 5) |
| 881 | 878 | m_coin_state = 0; |
| r32315 | r32316 | |
| 918 | 915 | m_last_door = m_maincpu->total_cycles(); |
| 919 | 916 | } |
| 920 | 917 | |
| 921 | | if (curr_cycles - m_last_coin_out > 600000/12 && m_coin_out_state != 0) { // Guessing with 600000 |
| 918 | if (curr_cycles - m_last_coin_out > 600000/12 && m_coin_out_state != 0) { // Must be below 700ms or it will time out |
| 922 | 919 | if (m_coin_out_state != 2) { |
| 923 | 920 | m_coin_out_state = 2; // Coin-Out Off |
| 924 | 921 | } else { |