swim1/swim2 - initialize m_floppy and m_timer (#9291)

This commit is contained in:
ksherlock 2022-02-10 06:53:11 -05:00 committed by GitHub
parent 553c256108
commit d77dbf20ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -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));

View File

@ -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)
{
}