diff options
author | arbee <rb6502@users.noreply.github.com> | 2022-01-09 19:44:06 -0500 |
---|---|---|
committer | arbee <rb6502@users.noreply.github.com> | 2022-01-09 19:44:06 -0500 |
commit | ce944be92fe89915ae0842a9590d614e3f7e97eb (patch) | |
tree | a5286be49d70ff9d7bbacb633427fdb985fd7ffa /src | |
parent | 35a18bd96054d5f5e2638eea9f8a8c27f7bc2aa9 (diff) |
es5503: additional cleanups to oscillator enable usage. [R. Belmont]
Diffstat (limited to 'src')
-rw-r--r-- | src/devices/sound/es5503.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/sound/es5503.cpp b/src/devices/sound/es5503.cpp index 025a7946871..8b38b1cd068 100644 --- a/src/devices/sound/es5503.cpp +++ b/src/devices/sound/es5503.cpp @@ -326,7 +326,7 @@ u8 es5503_device::read(offs_t offset) m_irq_func(0); // scan all oscillators - for (i = 0; i < oscsenabled+1; i++) + for (i = 0; i < oscsenabled; i++) { if (oscillators[i].irqpend) { @@ -342,7 +342,7 @@ u8 es5503_device::read(offs_t offset) } // if any oscillators still need to be serviced, assert IRQ again immediately - for (i = 0; i < oscsenabled+1; i++) + for (i = 0; i < oscsenabled; i++) { if (oscillators[i].irqpend) { @@ -354,7 +354,7 @@ u8 es5503_device::read(offs_t offset) return retval | 0x41; case 0xe1: // oscillator enable - return oscsenabled<<1; + return (oscsenabled - 1) << 1; case 0xe2: // A/D converter return m_adc_func(); |