Write instructions now update the databus

This corrects open bus execution following write instructions.
This commit is contained in:
100thCoin 2023-07-13 20:04:32 -04:00 committed by zeromus
parent dda4443ae9
commit 4c28daf4a8
1 changed files with 3 additions and 0 deletions

View File

@ -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) \