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 5779d09f4b8336cd0151e31bf52c79d162a05de8
parent 78d36213591a6b1ba0e4b3fbcf36cc5192d7440f
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Wed, 24 Jul 2024 23:48:08 +0200

put debug code into #ifdef _DEBUG

Diffstat:
Msource/nord/n2x/n2xLib/n2xmc.cpp | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/source/nord/n2x/n2xLib/n2xmc.cpp b/source/nord/n2x/n2xLib/n2xmc.cpp @@ -330,8 +330,10 @@ namespace n2x uint32_t Microcontroller::exec() { +#ifdef _DEBUG const auto pc = getPC(); m_prevPC = pc; + // LOG("uc PC=" << HEX(pc)); if(pc >= g_ramAddress) { @@ -353,14 +355,14 @@ namespace n2x writeRam = false; synthLib::writeFile("ram_runtime.bin", m_ram); } - +#endif const auto cycles = Mc68k::exec(); m_hdi08A.exec(cycles); m_hdi08B.exec(cycles); - m_totalCycles += cycles; /* + m_totalCycles += cycles; if(m_totalCycles > 0x5000000 && !m_hasSentMidi) { m_totalCycles -= 0x5000000;