mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 16:18:37 +03:00
implement shift and rotate handlers. Fix tests
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user