mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 08:18:36 +03:00
Updated instruction handlers to use factory methods instead of directly setting Size property
This commit is contained in:
@ -49,8 +49,7 @@ public class SubImmFromRm8Handler : InstructionHandler
|
||||
// Read the ModR/M byte, specifying that we're dealing with 8-bit operands
|
||||
var (_, _, _, destinationOperand) = ModRMDecoder.ReadModRM8();
|
||||
|
||||
// Ensure the destination operand has the correct size (8-bit)
|
||||
destinationOperand.Size = 8;
|
||||
// Note: The operand size is already set to 8-bit by the ReadModRM8 method
|
||||
|
||||
// Read the immediate byte
|
||||
if (!Decoder.CanReadByte())
|
||||
|
Reference in New Issue
Block a user