sinclair/beta_m.cpp: allow to use turbo clock for wd179x (#12531)

This commit is contained in:
holub 2024-07-04 15:12:04 -04:00 committed by GitHub
parent bcb1756ebc
commit 5985cbfcee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 0 deletions

View File

@ -173,6 +173,14 @@ void beta_disk_device::data_w(uint8_t data)
}
}
void beta_disk_device::turbo_w(int state)
{
if (m_betadisk_active == 1)
{
m_wd179x->set_clock_scale(1 << (state & 1));
}
}
void beta_disk_device::fdc_hld_w(int state)
{
m_wd179x->set_force_ready(state); // HLD connected to RDY pin
@ -206,6 +214,7 @@ void beta_disk_device::floppy_formats(format_registration &fr)
static void beta_disk_floppies(device_slot_interface &device)
{
device.option_add("525qd", FLOPPY_525_QD);
device.option_add("35hd", FLOPPY_35_HD);
}

View File

@ -36,6 +36,7 @@ public:
void track_w(uint8_t data);
void sector_w(uint8_t data);
void data_w(uint8_t data);
void turbo_w(int state);
int is_active();
void enable();

View File

@ -686,6 +686,8 @@ void sprinter_state::dcp_w(offs_t offset, u8 data)
m_beta->param_w(data);
break;
case 0x16:
case 0x17:
m_beta->turbo_w(dcpp & 1);
if (data & 2)
m_beta->disable();
else