mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 08:18:36 +03:00
Fixes to tests and ModRM + SIB
This commit is contained in:
@ -23,7 +23,14 @@ public class AddEaxImmHandler : InstructionHandler
|
||||
/// <returns>True if this handler can decode the opcode</returns>
|
||||
public override bool CanHandle(byte opcode)
|
||||
{
|
||||
return opcode == 0x05;
|
||||
// ADD EAX, imm32 is encoded as 0x05 without 0x66 prefix
|
||||
if (opcode != 0x05)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Only handle when the operand size prefix is NOT present
|
||||
return !Decoder.HasOperandSizePrefix();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user