diff --git a/X86Disassembler/X86/Handlers/FloatingPointHandler.cs b/X86Disassembler/X86/Handlers/FloatingPointHandler.cs index 1a09972..9902f48 100644 --- a/X86Disassembler/X86/Handlers/FloatingPointHandler.cs +++ b/X86Disassembler/X86/Handlers/FloatingPointHandler.cs @@ -8,16 +8,12 @@ public class FloatingPointHandler : InstructionHandler // Floating-point instruction mnemonics based on opcode and ModR/M reg field private static readonly string[][] FpuMnemonics = new string[8][]; - // Two-byte floating-point instructions - private static readonly Dictionary TwoByteInstructions = new Dictionary(); - /// /// Static constructor to initialize the FPU mnemonic tables /// static FloatingPointHandler() { InitializeFpuMnemonics(); - InitializeTwoByteInstructions(); } /// @@ -109,17 +105,6 @@ public class FloatingPointHandler : InstructionHandler FpuMnemonics[7][7] = "fistp"; } - /// - /// Initializes the two-byte floating-point instructions - /// - private static void InitializeTwoByteInstructions() - { - // We no longer need to handle FNSTSW AX (DF E0) here since we have a dedicated FnstswHandler - // that is registered before this handler in the InstructionHandlerFactory - - // Add other two-byte instructions as needed - } - /// /// Initializes a new instance of the FloatingPointHandler class /// @@ -156,21 +141,6 @@ public class FloatingPointHandler : InstructionHandler return false; } - // Check for two-byte instructions - if (position < Length) - { - // Create a two-byte opcode by combining the primary opcode with the next byte - ushort twoByteOpcode = (ushort)((opcode << 8) | CodeBuffer[position]); - - // Check if this is a known two-byte instruction - if (TwoByteInstructions.TryGetValue(twoByteOpcode, out string? mnemonic) && mnemonic != null) - { - instruction.Mnemonic = mnemonic; - Decoder.SetPosition(position + 1); // Skip the second byte - return true; - } - } - // The opcode index in our tables (0-7 for D8-DF) int opcodeIndex = opcode - 0xD8;