branches/alto2/src/emu/cpu/alto2/alto2cpu.c
r26353 | r26354 | |
1161 | 1161 | void alto2_cpu_device::device_reset() |
1162 | 1162 | { |
1163 | 1163 | soft_reset(); |
1164 | | |
1165 | | // call all sub-devices' reset_... |
1166 | | reset_memory(); |
1167 | | reset_disk(); |
1168 | | reset_disp(); |
1169 | | reset_kbd(); |
1170 | | reset_mouse(); |
1171 | | reset_hw(); |
1172 | | |
1173 | | reset_emu(); |
1174 | | reset_ksec(); |
1175 | | reset_ether(); |
1176 | | reset_mrt(); |
1177 | | reset_dwt(); |
1178 | | reset_curt(); |
1179 | | reset_dht(); |
1180 | | reset_dvt(); |
1181 | | reset_part(); |
1182 | | reset_kwd(); |
1183 | 1164 | } |
1184 | 1165 | |
1185 | 1166 | /** |
r26353 | r26354 | |
2864 | 2845 | } |
2865 | 2846 | m_next2_task = task_emu; // switch to task 0 (emulator) |
2866 | 2847 | m_reset_mode = 0xffff; // all tasks start in ROM0 again |
| 2848 | m_task = task_emu; // set current task to emulator |
| 2849 | m_task_wakeup = 1 << task_emu; // set only the emulator task wakeup flag |
2867 | 2850 | |
2868 | | m_dsp_time = 0; // reset the display state timing |
| 2851 | m_dsp_time = 0; // reset the display state machine timing accu |
| 2852 | m_unload_time = 0; // reset the word unload timing accu |
| 2853 | #if (USE_BITCLK_TIMER == 0) |
| 2854 | m_bitclk_time = 0; // reset the bitclk timing accu |
| 2855 | #endif |
2869 | 2856 | |
2870 | | m_task = task_emu; // start with task 0 (emulator) |
2871 | | m_task_wakeup |= 1 << task_emu; // set wakeup flag |
| 2857 | // call all sub-devices' reset_... |
| 2858 | reset_memory(); |
| 2859 | reset_disk(); |
| 2860 | reset_disp(); |
| 2861 | reset_kbd(); |
| 2862 | reset_mouse(); |
| 2863 | reset_hw(); |
| 2864 | |
| 2865 | reset_emu(); |
| 2866 | reset_ksec(); |
| 2867 | reset_ether(); |
| 2868 | reset_mrt(); |
| 2869 | reset_dwt(); |
| 2870 | reset_curt(); |
| 2871 | reset_dht(); |
| 2872 | reset_dvt(); |
| 2873 | reset_part(); |
| 2874 | reset_kwd(); |
2872 | 2875 | } |