From 4c28daf4a80c8d636109903574f4659a8d344585 Mon Sep 17 00:00:00 2001 From: 100thCoin Date: Thu, 13 Jul 2023 20:04:32 -0400 Subject: [PATCH] Write instructions now update the databus This corrects open bus execution following write instructions. --- src/x6502.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/x6502.cpp b/src/x6502.cpp index eba55955a..85c593629 100644 --- a/src/x6502.cpp +++ b/src/x6502.cpp @@ -61,6 +61,7 @@ static INLINE void WrMem(unsigned int A, uint8 V) #ifdef _S9XLUA_H CallRegisteredLuaMemHook(A, 1, V, LUAMEMHOOK_WRITE); #endif + _DB = V; } static INLINE uint8 RdRAM(unsigned int A) @@ -80,6 +81,7 @@ static INLINE void WrRAM(unsigned int A, uint8 V) #ifdef _S9XLUA_H CallRegisteredLuaMemHook(A, 1, V, LUAMEMHOOK_WRITE); #endif + _DB = V; } uint8 X6502_DMR(uint32 A) @@ -99,6 +101,7 @@ void X6502_DMW(uint32 A, uint8 V) #ifdef _S9XLUA_H CallRegisteredLuaMemHook(A, 1, V, LUAMEMHOOK_WRITE); #endif + _DB = V; } #define PUSH(V) \