0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-21 00:28:36 +03:00

simplify reading logic

This commit is contained in:
bird_egop
2025-04-13 23:22:30 +03:00
parent 0ea3294c61
commit 00547ed273
13 changed files with 31 additions and 79 deletions

View File

@ -53,14 +53,11 @@ public class AndR32Rm32Handler : InstructionHandler
// For mod == 3, both operands are registers
if (mod == 3)
{
string rmRegName = ModRMDecoder.GetRegisterName(rm, 32);
instruction.Operands = $"{regName}, {rmRegName}";
memOperand = ModRMDecoder.GetRegisterName(rm, 32);
}
else // Memory operand
{
instruction.Operands = $"{regName}, {memOperand}";
}
instruction.Operands = $"{regName}, {memOperand}";
return true;
}
}