From 8564945713ccd1015c599f62f2d22b031e843863 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 29 Apr 2019 17:10:33 -0400 Subject: [PATCH] Corrects vector nomination for unrecognised opcodes. --- Processors/68000/Implementation/68000Implementation.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Processors/68000/Implementation/68000Implementation.hpp b/Processors/68000/Implementation/68000Implementation.hpp index 57c756449..00091ecfd 100644 --- a/Processors/68000/Implementation/68000Implementation.hpp +++ b/Processors/68000/Implementation/68000Implementation.hpp @@ -154,9 +154,9 @@ template void Proces // The vector used depends on whether this is a vanilla unrecognised instruction, // or one on the A or F lines. switch(decoded_instruction_ >> 12) { - default: populate_trap_steps(get_status(), 4); break; - case 0xa: populate_trap_steps(get_status(), 10); break; - case 0xf: populate_trap_steps(get_status(), 11); break; + default: populate_trap_steps(4, get_status()); break; + case 0xa: populate_trap_steps(10, get_status()); break; + case 0xf: populate_trap_steps(11, get_status()); break; } } }