diff options
Diffstat (limited to 'src/mame/machine/mac.cpp')
-rw-r--r-- | src/mame/machine/mac.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/mame/machine/mac.cpp b/src/mame/machine/mac.cpp index 1337bc1caa2..cd0f83cbf5a 100644 --- a/src/mame/machine/mac.cpp +++ b/src/mame/machine/mac.cpp @@ -2457,3 +2457,51 @@ void mac_state::mac_tracetrap(const char *cpu_name_local, int addr, int trap) logerror("mac_trace_trap: %s at 0x%08x: %s\n",cpu_name_local, addr, buf); } #endif + +#if !NEW_SWIM +void mac_state::phases_w(u8) +{ +} + +void mac_state::sel35_w(int) +{ +} + +void mac_state::devsel_w(u8) +{ +} + +void mac_state::hdsel_w(int) +{ +} +#else + +void mac_state::phases_w(uint8_t phases) +{ + if(m_cur_floppy) + m_cur_floppy->seek_phase_w(phases); +} + +void mac_state::sel35_w(int sel35) +{ + logerror("fdc mac sel35 %d\n", sel35); +} + +void mac_state::devsel_w(uint8_t devsel) +{ + if(devsel == 1) + m_cur_floppy = m_floppy[0]->get_device(); + else if(devsel == 2) + m_cur_floppy = m_floppy[1]->get_device(); + else + m_cur_floppy = nullptr; + m_fdc->set_floppy(m_cur_floppy); +} + +void mac_state::hdsel_w(int hdsel) +{ + if(m_cur_floppy) + m_cur_floppy->ss_w(hdsel); +} + +#endif |