0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-20 00:18:02 +03:00

implement shift and rotate handlers. Fix tests

This commit is contained in:
bird_egop
2025-04-17 21:35:49 +03:00
parent a9d4c39717
commit a62812f71c
55 changed files with 2924 additions and 51 deletions

View File

@ -57,13 +57,7 @@ public class IdivRm32Handler : InstructionHandler
// Read the ModR/M byte
// For IDIV r/m32 (0xF7 /7):
// - The r/m field with mod specifies the operand (register or memory)
var (mod, reg, rm, operand) = ModRMDecoder.ReadModRM();
// Verify that the reg field is 7 (IDIV)
if (reg != RegisterIndex.Di)
{
return false;
}
var (_, _, _, operand) = ModRMDecoder.ReadModRM();
// Set the structured operands
// IDIV has only one operand