Skip to content

Commit

Permalink
Write instructions now update the databus
Browse files Browse the repository at this point in the history
This corrects open bus execution following write instructions.
  • Loading branch information
100thCoin authored and zeromus committed Jul 14, 2023
1 parent dda4443 commit 4c28daf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/x6502.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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) \
Expand Down

0 comments on commit 4c28daf

Please sign in to comment.