From 5062d2f4ad35ae550765e978721254ebd97656aa Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 28 Dec 2011 11:36:44 +0000 Subject: [PATCH] Improve handling of prefix 0xf in the debugger. Thanks ripsaw Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3770 --- src/debug/debug_disasm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/debug/debug_disasm.cpp b/src/debug/debug_disasm.cpp index f1e2deed..6d8d5bc8 100644 --- a/src/debug/debug_disasm.cpp +++ b/src/debug/debug_disasm.cpp @@ -949,7 +949,9 @@ static void percent(char type, char subtype) break; case '2': /* old [pop cs]! now indexes */ - ua_str(second[getbyte()]); /* instructions in 386/486 */ + c = getbyte(); + wordop = c & 1; + ua_str(second[c]); /* instructions in 386/486 */ break; case 'g': /* modrm group `subtype' (0--7) */