From 1f7fc49bf63185108b08691fd604819b8f9aa41e Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Thu, 19 Jun 2003 01:44:08 +0000 Subject: [PATCH] Some fixes in C4 code. --- zsnes/src/cpu/memory.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsnes/src/cpu/memory.asm b/zsnes/src/cpu/memory.asm index 72371a05..013dbdd6 100644 --- a/zsnes/src/cpu/memory.asm +++ b/zsnes/src/cpu/memory.asm @@ -2532,7 +2532,8 @@ NEWSYM C4WriteReg movzx ecx,word[esi+1F43h] ;Num of bytes to copy movzx eax,byte[esi+1F42h] ;Source bank mov eax,[snesmmap+eax*4] - add eax,word[esi+1F40h] + movzx edx,word[esi+1F40h] + add eax,edx movzx edx,word[esi+1F45h] ;Destination mov ebx,[C4Ram] and edx,01FFFh