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

new handlers and test fixes

This commit is contained in:
bird_egop
2025-04-16 20:54:08 +03:00
parent f654f64c71
commit 800915b534
20 changed files with 342 additions and 117 deletions

View File

@ -54,14 +54,7 @@ public class MulRm8Handler : InstructionHandler
// Read the ModR/M byte
// For MUL r/m8 (0xF6 /4):
// - The r/m field with mod specifies the operand (register or memory)
var (_, reg, _, operand) = ModRMDecoder.ReadModRM8();
// Verify this is a MUL instruction
// The reg field should be 4 (MUL), which maps to RegisterIndex8.AH in our enum
if (reg != RegisterIndex8.AH)
{
return false;
}
var (_, _, _, operand) = ModRMDecoder.ReadModRM8();
// Set the structured operands
// MUL has only one operand