Unified ADC accumulator handlers into a single handler

This commit is contained in:
bird_egop
2025-04-17 01:34:08 +03:00
parent 8c9b34ef09
commit 3fc0ebf1d5
79 changed files with 2564 additions and 473 deletions
@@ -24,7 +24,9 @@ public class DecRegHandler : InstructionHandler
public override bool CanHandle(byte opcode)
{
// DEC EAX = 0x48, DEC ECX = 0x49, ..., DEC EDI = 0x4F
return opcode >= 0x48 && opcode <= 0x4F;
// Only handle when the operand size prefix is NOT present
// This ensures 16-bit handlers get priority when the prefix is present
return opcode >= 0x48 && opcode <= 0x4F && !Decoder.HasOperandSizePrefix();
}
/// <summary>