From 99e48220f999ecd8f9535675c2d3432202abf57a Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 11 Aug 2018 10:22:51 -0700 Subject: 4501 --- subx/030---operands.cc | 4 +++- subx/031check_operands.cc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/subx/030---operands.cc b/subx/030---operands.cc index 1a4f0f10..0ae76ad5 100644 --- a/subx/030---operands.cc +++ b/subx/030---operands.cc @@ -165,10 +165,12 @@ void pack_operands(line& inst) { void add_opcodes(const line& in, line& out) { out.words.push_back(in.words.at(0)); - if (in.words.at(0).data == "0f" || in.words.at(0).data == "f3") + if (in.words.at(0).data == "0f" || in.words.at(0).data == "f2" || in.words.at(0).data == "f3") out.words.push_back(in.words.at(1)); if (in.words.at(0).data == "f3" && in.words.at(1).data == "0f") out.words.push_back(in.words.at(2)); + if (in.words.at(0).data == "f2" && in.words.at(1).data == "0f") + out.words.push_back(in.words.at(2)); } void add_modrm_byte(const line& in, line& out) { diff --git a/subx/031check_operands.cc b/subx/031check_operands.cc index 73a6e3d3..6afab0a6 100644 --- a/subx/031check_operands.cc +++ b/subx/031check_operands.cc @@ -266,7 +266,7 @@ bool has_operands(const line& inst) { int first_operand(const line& inst) { if (inst.words.at(0).data == "0f") return 2; - if (inst.words.at(0).data == "f3") { + if (inst.words.at(0).data == "f2" || inst.words.at(0).data == "f3") { if (inst.words.at(1).data == "0f") return 3; else -- cgit 1.4.1-2-gfad0