From daf1b10074096b9148d1edf51510dfc8bf46128c Mon Sep 17 00:00:00 2001 From: gocha Date: Mon, 14 Feb 2011 13:21:28 +0000 Subject: [PATCH] better support for iowrite.readbyte() --- src/x6502.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/x6502.cpp b/src/x6502.cpp index 3f04de88..13377541 100644 --- a/src/x6502.cpp +++ b/src/x6502.cpp @@ -50,6 +50,7 @@ static INLINE uint8 RdMem(unsigned int A) //normal memory write static INLINE void WrMem(unsigned int A, uint8 V) { + IOWriteLog[A] = V; BWrite[A](A,V); #ifdef _S9XLUA_H CallRegisteredLuaMemHook(A, 1, V, LUAMEMHOOK_WRITE); @@ -80,6 +81,7 @@ uint8 X6502_DMR(uint32 A) void X6502_DMW(uint32 A, uint8 V) { ADDCYC(1); + IOWriteLog[A] = V; BWrite[A](A,V); #ifdef _S9XLUA_H CallRegisteredLuaMemHook(A, 1, V, LUAMEMHOOK_WRITE);