mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
swim1/swim2 - initialize m_floppy and m_timer (#9291)
This commit is contained in:
parent
553c256108
commit
d77dbf20ea
@ -12,7 +12,9 @@
|
||||
DEFINE_DEVICE_TYPE(SWIM1, swim1_device, "swim1", "Apple SWIM1 (Sander/Wozniak Integrated Machine) version 1 floppy controller")
|
||||
|
||||
swim1_device::swim1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
|
||||
applefdintf_device(mconfig, SWIM1, tag, owner, clock)
|
||||
applefdintf_device(mconfig, SWIM1, tag, owner, clock),
|
||||
m_floppy(nullptr),
|
||||
m_timer(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
@ -20,6 +22,7 @@ void swim1_device::device_start()
|
||||
{
|
||||
applefdintf_device::device_start();
|
||||
|
||||
m_timer = timer_alloc();
|
||||
save_item(NAME(m_last_sync));
|
||||
save_item(NAME(m_flux_write_start));
|
||||
save_item(NAME(m_flux_write));
|
||||
|
@ -20,7 +20,8 @@
|
||||
DEFINE_DEVICE_TYPE(SWIM2, swim2_device, "swim2", "Apple SWIM2 (Sander/Wozniak Integrated Machine) version 2 floppy controller")
|
||||
|
||||
swim2_device::swim2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
|
||||
applefdintf_device(mconfig, SWIM2, tag, owner, clock)
|
||||
applefdintf_device(mconfig, SWIM2, tag, owner, clock),
|
||||
m_floppy(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user