summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2023-01-02 14:35:58 +0000
committerIan C <ianc@noddybox.co.uk>2023-01-02 14:35:58 +0000
commitd1ca8a0f91d15e192e9c5f218524769d91e19a54 (patch)
tree856635f608d2f84830eed7a2938ab8d0d30a49f5
parentdf871d0ec225a2001b36d0e788895bd7f25976bd (diff)
Now passes all zexall tests.
-rw-r--r--z80_decode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/z80_decode.c b/z80_decode.c
index 004682f..dcca2c2 100644
--- a/z80_decode.c
+++ b/z80_decode.c
@@ -271,6 +271,7 @@ do { \
#define OP_ON_MEM_WITH_ARG(OP,addr,arg) \
do { \
Z80Byte memop=PEEK(addr); \
+ PRIV->memptr.w=addr; \
OP(memop,arg); \
POKE(addr,memop); \
} while(0)