commit d086bfd5b25d9697734e7a923817f78e4fa29c99
parent 8570bfcfdd84f873bfe9c99c8564fc9cb7e6c317
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Sun, 11 Aug 2024 03:37:25 +0200
do not check for keyboard access in release builds
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/source/nord/n2x/n2xLib/n2xmc.cpp b/source/nord/n2x/n2xLib/n2xmc.cpp
@@ -153,13 +153,14 @@ namespace n2x
return m_panel.cs6().read16(pa);
}
+#ifdef _DEBUG
if(_addr >= g_keyboardAddress && _addr < g_keyboardAddress + g_keyboardSize)
{
assert(false && "keyboard access is unexpected");
LOG("Read Keyboard " << HEX(_addr));
return 0;
}
-
+#endif
return Mc68k::read16(_addr);
}
@@ -190,13 +191,14 @@ namespace n2x
return m_panel.cs6().read8(pa);
}
+#ifdef _DEBUG
if(_addr >= g_keyboardAddress && _addr < g_keyboardAddress + g_keyboardSize)
{
assert(false && "keyboard access is unexpected");
LOG("Read Keyboard " << HEX(_addr));
return 0;
}
-
+#endif
return Mc68k::read8(_addr);
}