From 6a2b6f51976522b928db23b01b6ad3ae80c0c3dc Mon Sep 17 00:00:00 2001 From: hap Date: Mon, 4 Dec 2023 12:05:41 +0100 Subject: hd6301: RTI after TRAP returns to the address where the trap error occured --- src/devices/cpu/m6800/6800ops.hxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/devices/cpu/m6800/6800ops.hxx b/src/devices/cpu/m6800/6800ops.hxx index 5f3c2dd2e75..4872049f888 100644 --- a/src/devices/cpu/m6800/6800ops.hxx +++ b/src/devices/cpu/m6800/6800ops.hxx @@ -41,6 +41,7 @@ OP_HANDLER( illegl3 ) OP_HANDLER( trap ) { logerror("m6800: illegal opcode: address %04X, op %02X\n",PC-1,(int) M_RDOP_ARG(PC-1)&0xFF); + PC--; take_trap(); } -- cgit v1.2.3