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 6a40a80d845b2d20d720f402e20cba471717cc7a
parent a3f110b873171fddae152685798fc534b9ab67fe
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sat, 20 Jul 2024 01:59:35 +0200

remember last PC for debugging

Diffstat:
Msource/nord/n2x/n2xLib/n2xmc.cpp | 1+
Msource/nord/n2x/n2xLib/n2xmc.h | 4++++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/source/nord/n2x/n2xLib/n2xmc.cpp b/source/nord/n2x/n2xLib/n2xmc.cpp @@ -226,6 +226,7 @@ namespace n2x uint32_t Microcontroller::exec() { const auto pc = getPC(); + m_prevPC = pc; // LOG("uc PC=" << HEX(pc)); if(pc >= g_ramAddress) { diff --git a/source/nord/n2x/n2xLib/n2xmc.h b/source/nord/n2x/n2xLib/n2xmc.h @@ -23,6 +23,8 @@ namespace n2x uint32_t exec() override; + auto getPrevPC() const { return m_prevPC; } + private: uint32_t read32(uint32_t _addr) override; uint16_t readImm16(uint32_t _addr) override; @@ -38,5 +40,7 @@ namespace n2x Hdi08DspA m_hdi08A; Hdi08DspB m_hdi08B; + + uint32_t m_prevPC; }; }