mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 16:18:37 +03:00
Test fixes
This commit is contained in:
@ -52,14 +52,13 @@ public class AndImmToRm8Handler : InstructionHandler
|
||||
// Set the instruction type
|
||||
instruction.Type = InstructionType.And;
|
||||
|
||||
// Read the ModR/M byte
|
||||
// Read the ModR/M byte, specifying that we're dealing with 8-bit operands
|
||||
// For AND r/m8, imm8 (0x80 /4):
|
||||
// - The r/m field with mod specifies the destination operand (register or memory)
|
||||
// - The immediate value is the source operand
|
||||
var (_, _, _, destinationOperand) = ModRMDecoder.ReadModRM();
|
||||
var (_, _, _, destinationOperand) = ModRMDecoder.ReadModRM8();
|
||||
|
||||
// Adjust the operand size to 8-bit
|
||||
destinationOperand.Size = 8;
|
||||
// Note: The operand size is already set to 8-bit by the ReadModRM8 method
|
||||
|
||||
if (!Decoder.CanReadByte())
|
||||
{
|
||||
|
Reference in New Issue
Block a user