From: Toni Wilen Date: Sun, 11 Jan 2015 12:31:19 +0000 (+0200) Subject: Set 68000 bus/address undocumented bits. X-Git-Tag: 3100~134 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=5e6355d335b900695e0db316a75c685e27148e97;p=francis%2Fwinuae.git Set 68000 bus/address undocumented bits. --- diff --git a/newcpu.cpp b/newcpu.cpp index 2676898d..1eb5196f 100644 --- a/newcpu.cpp +++ b/newcpu.cpp @@ -2141,6 +2141,8 @@ static void Exception_ce000 (int nr) if (nr == 2 || nr == 3) { /* 2=bus error, 3=address error */ uae_u16 mode = (sv ? 4 : 0) | (last_instructionaccess_for_exception_3 ? 2 : 1); mode |= last_writeaccess_for_exception_3 ? 0 : 16; + // undocumented bits seem to contain opcode + mode |= last_op_for_exception_3 & ~31; m68k_areg (regs, 7) -= 14; /* fixme: bit3=I/N */ x_put_word (m68k_areg (regs, 7) + 12, last_addr_for_exception_3);