mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
sinclair/beta_m.cpp: allow to use turbo clock for wd179x (#12531)
This commit is contained in:
parent
bcb1756ebc
commit
5985cbfcee
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user