From af3f7647f40b19c6198ebe29281f8113774777fa Mon Sep 17 00:00:00 2001 From: AJR Date: Thu, 13 Dec 2018 13:17:19 -0500 Subject: x86: Step over RET instructions --- src/devices/cpu/i386/i386dasm.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/devices/cpu/i386/i386dasm.cpp b/src/devices/cpu/i386/i386dasm.cpp index e201c4c02a4..02df10a6e5a 100644 --- a/src/devices/cpu/i386/i386dasm.cpp +++ b/src/devices/cpu/i386/i386dasm.cpp @@ -270,8 +270,8 @@ const i386_disassembler::I386_OPCODE i386_disassembler::i386_opcode_table1[256] {"lock", 0, 0, 0, 0 }, {"???", 0, 0, 0, 0 }, {"repne", PREFIX, 0, 0, 0 }, - {"rep", PREFIX, 0, 0, 0 }, - {"hlt", 0, 0, 0, 0 }, + {"rep", PREFIX, 0, 0, 0, STEP_OVER}, + {"hlt", 0, 0, 0, 0, STEP_OVER}, {"cmc", 0, 0, 0, 0 }, {"groupF6", GROUP, 0, 0, 0 }, {"groupF7", GROUP, 0, 0, 0 }, @@ -2842,6 +2842,7 @@ void i386_disassembler::decode_opcode(std::ostream &stream, const I386_OPCODE *o if ((op2 == 0x90) && !pre0f) pre0f = op1; decode_opcode(stream, &i386_opcode_table1[op2], op2, base_pc, pc, opcodes); + dasm_flags |= op->dasm_flags; return; case GROUP: -- cgit v1.2.3