]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Some instructions had wrong stacked address error/bus error PC.
authorToni Wilen <twilen@winuae.net>
Sun, 16 Apr 2017 19:09:11 +0000 (22:09 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 16 Apr 2017 19:09:11 +0000 (22:09 +0300)
gencpu.cpp

index 1c0bbf171a096a06534b6a9a054738b7cf3afc18..2420d64e224ffb295a431a24fe4f1db93902cc3a 100644 (file)
@@ -1628,8 +1628,7 @@ static void genamode2x (amodes mode, const char *reg, wordsizes size, const char
                }
        } else {
                // fetch
-               pc_68000_offset_fetch += 2;
-               exception_pc_offset = pc_68000_offset_fetch;
+               exception_pc_offset = pc_68000_offset + pc_68000_offset_fetch;
        }
 
        if ((using_prefetch || using_ce) && using_exception_3 && getv != 0 && size != sz_byte) {