commit f0775afa1a50af567b3b04e02c774ef99728730c
parent fe02905a3f0afa906030477b62e2584be59ef696
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Sun, 21 Jul 2024 02:19:31 +0200
helper func to write ram to disk
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/source/nord/n2x/n2xLib/n2xmc.cpp b/source/nord/n2x/n2xLib/n2xmc.cpp
@@ -5,6 +5,7 @@
#include "n2xdsp.h"
#include "n2xrom.h"
#include "synthLib/midiTypes.h"
+#include "synthLib/os.h"
namespace n2x
{
@@ -291,12 +292,20 @@ namespace n2x
}
static volatile bool writeFlash = false;
+ static volatile bool writeRam = false;
if(writeFlash)
{
writeFlash = false;
m_flash.saveAs("flash_runtime.bin");
}
+
+ if(writeRam)
+ {
+ writeRam = false;
+ synthLib::writeFile("ram_runtime.bin", m_ram);
+ }
+
const auto cycles = Mc68k::exec();
m_hdi08A.exec(cycles);