diff options
author | 2022-02-10 06:53:11 -0500 | |
---|---|---|
committer | 2022-02-10 12:53:11 +0100 | |
commit | d77dbf20ea8f7169a24d17347f359dd11993a1da (patch) | |
tree | 44298faaa4c5c69f8cee56480c6604f36f7233c9 | |
parent | 553c2561089b59f2cb3918be337774e9392459e8 (diff) |
swim1/swim2 - initialize m_floppy and m_timer (#9291)
-rw-r--r-- | src/devices/machine/swim1.cpp | 5 | ||||
-rw-r--r-- | src/devices/machine/swim2.cpp | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/devices/machine/swim1.cpp b/src/devices/machine/swim1.cpp index a366f66a4a2..d3d36dfd777 100644 --- a/src/devices/machine/swim1.cpp +++ b/src/devices/machine/swim1.cpp @@ -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)); diff --git a/src/devices/machine/swim2.cpp b/src/devices/machine/swim2.cpp index d04ea62ed98..45d8447c367 100644 --- a/src/devices/machine/swim2.cpp +++ b/src/devices/machine/swim2.cpp @@ -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) { } |