commit bd1803cfa4141dbeaad7be697d037037e0a51c06
parent 00c5ff9c6432127875f6eb5e4bb94d87423bcdae
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Thu, 3 Oct 2024 17:14:20 +0200
fix flash memory writes not working in Xenia due to missing address masking
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/source/hardwareLib/am29f.cpp b/source/hardwareLib/am29f.cpp
@@ -41,6 +41,7 @@ namespace hwLib
bool anyMatch = false;
const auto d = _data & 0xff;
+ const auto a = _addr & 0xfff;
for (size_t i=0; i<m_commands.size(); ++i)
{
@@ -50,7 +51,7 @@ namespace hwLib
{
const auto& c = cycles[m_currentBusCycle];
- if(c.addr == _addr && c.data == d)
+ if(c.addr == a && c.data == d)
{
anyMatch = true;