summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/pokey.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/pokey.cpp')
-rw-r--r--src/devices/sound/pokey.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/devices/sound/pokey.cpp b/src/devices/sound/pokey.cpp
index b82463a3e8e..6664e684933 100644
--- a/src/devices/sound/pokey.cpp
+++ b/src/devices/sound/pokey.cpp
@@ -289,16 +289,11 @@ void pokey_device::device_start()
save_item(NAME(m_channel[i].m_AUDC), i);
}
- save_item(NAME(m_divisor));
save_item(NAME(m_clock_cnt));
save_item(NAME(m_p4));
save_item(NAME(m_p5));
save_item(NAME(m_p9));
save_item(NAME(m_p17));
- save_item(NAME(m_pot_counter));
- save_item(NAME(m_kbd_cnt));
- save_item(NAME(m_kbd_latch));
- save_item(NAME(m_kbd_state));
save_item(NAME(m_POTx));
save_item(NAME(m_AUDCTL));
@@ -311,6 +306,11 @@ void pokey_device::device_start()
save_item(NAME(m_SKSTAT));
save_item(NAME(m_SKCTL));
+ save_item(NAME(m_pot_counter));
+ save_item(NAME(m_kbd_cnt));
+ save_item(NAME(m_kbd_latch));
+ save_item(NAME(m_kbd_state));
+
// State support
state_add(AUDF1_C, "AUDF1", m_channel[0].m_AUDF);
@@ -332,8 +332,7 @@ void pokey_device::device_start()
state_add(SKCTL_C, "SKCTL", m_SKCTL);
// set our instruction counter
- m_icountptr = &m_icount;
-
+ set_icountptr(m_icount);
}
//-------------------------------------------------
@@ -1271,7 +1270,6 @@ pokey_device::pokey_channel::pokey_channel()
m_borrow_cnt(0),
m_counter(0),
m_output(0),
- m_filter_sample(0),
- m_div2(0)
+ m_filter_sample(0)
{
}