summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2020-08-19 18:47:32 +0200
committer hap <happppp@users.noreply.github.com>2020-08-19 18:47:59 +0200
commita51876c942ff2d92f923d7139df8fbe03a288627 (patch)
treef6417e429419d79dbf39e7794d6a2816424d6e31 /src/devices/video
parent4fe914da69126b2bfbfc17879f68877e78373231 (diff)
New working software list additions
----------------------------------- odyssey2: Martian Threat (Euro, Prototype, Alt) [unknown]
Diffstat (limited to 'src/devices/video')
-rw-r--r--src/devices/video/i8244.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/devices/video/i8244.cpp b/src/devices/video/i8244.cpp
index 3085508e7aa..985c18affba 100644
--- a/src/devices/video/i8244.cpp
+++ b/src/devices/video/i8244.cpp
@@ -797,13 +797,11 @@ void i8244_device::sound_update()
u32 signal = m_vdc.s.shift3 | (m_vdc.s.shift2 << 8) | (m_vdc.s.shift1 << 16);
m_sh_output = signal & 1;
- signal >>= 1;
-
- bool noise_enabled = bool(m_vdc.s.sound & 0x10);
int feedback = m_sh_output;
+ signal >>= 1;
/* Noise tap is on bits 0 and 5 and fed back to bit 15 */
- if (noise_enabled)
+ if (m_vdc.s.sound & 0x10)
{
feedback ^= signal >> 4 & 1; // pre-shift bit 5
signal = (signal & ~0x8000) | (feedback << 15);