src/mess/machine/c64_cpm.c
| r14937 | r14938 | |
| 79 | 79 | |
| 80 | 80 | inline void c64_cpm_cartridge_device::update_signals()
|
| 81 | 81 | {
|
| 82 | | // NOTE: none of this works until the Z80 core has been rewritten
|
| 82 | if (m_enabled)
|
| 83 | {
|
| 84 | device_set_input_line(m_maincpu, INPUT_LINE_HALT, CLEAR_LINE);
|
| 85 | device_set_input_line(machine().firstcpu, INPUT_LINE_HALT, ASSERT_LINE);
|
| 83 | 86 | |
| 87 | if (m_reset)
|
| 88 | {
|
| 89 | device_set_input_line(m_maincpu, INPUT_LINE_RESET, ASSERT_LINE);
|
| 90 | device_set_input_line(m_maincpu, INPUT_LINE_RESET, CLEAR_LINE);
|
| 91 | m_maincpu->set_state(Z80_PC, 0);
|
| 92 | m_reset = 0;
|
| 93 | } |
| 94 | }
|
| 95 | else
|
| 96 | {
|
| 97 | device_set_input_line(m_maincpu, INPUT_LINE_HALT, ASSERT_LINE);
|
| 98 | device_set_input_line(machine().firstcpu, INPUT_LINE_HALT, CLEAR_LINE);
|
| 99 | }
|
| 100 | |
| 101 | /*
|
| 102 | // NOTE: the following is how it actually works once the Z80 core has been rewritten
|
| 103 | |
| 84 | 104 | // C64 DMA
|
| 85 | 105 | m_slot->dma_w(m_enabled ? ASSERT_LINE : CLEAR_LINE);
|
| 86 | 106 | |
| r14937 | r14938 | |
| 90 | 110 | |
| 91 | 111 | // Z80 WAIT
|
| 92 | 112 | m_maincpu->set_input_line(Z80_INPUT_LINE_WAIT, m_enabled ? CLEAR_LINE : ASSERT_LINE);
|
| 113 | */
|
| 93 | 114 | }
|
| 94 | 115 | |
| 95 | 116 | |
| r14937 | r14938 | |
| 131 | 152 | void c64_cpm_cartridge_device::device_reset()
|
| 132 | 153 | {
|
| 133 | 154 | m_enabled = 0;
|
| 155 | m_reset = 1;
|
| 134 | 156 | |
| 135 | 157 | update_signals();
|
| 136 | 158 | }
|