summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2020-08-21 11:33:06 -0700
committer Aaron Giles <aaron@aarongiles.com>2020-08-21 11:33:06 -0700
commitac28659b50f1d6afdd3131d578cb61995783c418 (patch)
tree64a126f9c69689935f0a1561b79e2ccb9127484c
parent69de4f30f644343c219a5e230e13ba3edb4bab70 (diff)
sp0250: count one more for pitch; update comments.
-rw-r--r--src/devices/sound/sp0250.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/devices/sound/sp0250.cpp b/src/devices/sound/sp0250.cpp
index 03d5004f695..bf0162a7c35 100644
--- a/src/devices/sound/sp0250.cpp
+++ b/src/devices/sound/sp0250.cpp
@@ -6,11 +6,8 @@
By O. Galibert.
Unknown:
- - Exact clock divider
- - Exact noise algorithm
- Exact noise pitch (probably ok)
- - 7 bits output mapping
- - Whether the pitch starts counting from 0 or 1
+ - Whether the pitch starts counting from 0 or 1 (guessing 0)
Unimplemented:
- Direct Data test mode (pin 7)
@@ -256,7 +253,7 @@ int8_t sp0250_device::next()
(((dac + 68 + 0) >> 2) << 24);
m_pcount++;
- if (m_pcount >= m_pitch)
+ if (m_pcount == 0 || m_pcount > m_pitch)
{
m_pcount = 0;
m_rcount++;