From: Toni Wilen Date: Sun, 16 Apr 2017 19:09:11 +0000 (+0300) Subject: Some instructions had wrong stacked address error/bus error PC. X-Git-Tag: 3500~61 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=5100cfd4a120a57824e44314b1229a888a6f2990;p=francis%2Fwinuae.git Some instructions had wrong stacked address error/bus error PC. --- diff --git a/gencpu.cpp b/gencpu.cpp index 1c0bbf17..2420d64e 100644 --- a/gencpu.cpp +++ b/gencpu.cpp @@ -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) {