commit bd79026612358cc8afd0542ae7499ba5b6357ba1 parent d67c26628086f6151fc7de433a0eb98adc8871b5 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Sat, 20 Jul 2024 02:00:46 +0200 write flash to file debug func Diffstat:
M | source/nord/n2x/n2xLib/n2xmc.cpp | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/source/nord/n2x/n2xLib/n2xmc.cpp b/source/nord/n2x/n2xLib/n2xmc.cpp @@ -234,6 +234,14 @@ namespace n2x // if(pc == 0x1000c8) // dumpAssembly("nl2x_68k_ram.asm", g_ramAddress, g_ramSize); } + + static volatile bool writeFlash = false; + + if(writeFlash) + { + writeFlash = false; + m_flash.saveAs("flash_runtime.bin"); + } const auto cycles = Mc68k::exec(); m_hdi08A.exec(cycles);