gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 488a6a565ef6e2e25b302a0100250722779ac455
parent f2aee57b4bbc3714532464010eccef54fee4faca
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sun, 28 Jul 2024 21:16:13 +0200

do not do page wrap for reads

Diffstat:
Msource/hardwareLib/i2cFlash.cpp | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/source/hardwareLib/i2cFlash.cpp b/source/hardwareLib/i2cFlash.cpp @@ -88,7 +88,9 @@ namespace hwLib const auto res = m_data[m_address]; LOG("I2C op read from " << HEXN(m_address,4) << ", res " << HEXN(res,2)); - advanceAddress(); + ++m_address; + if(m_address >= m_data.size()) + m_address = static_cast<uint32_t>(m_data.size()) - 1; return res; }