mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-12-11 04:51:21 +04:00
Fix x86 disassembler issues with direct memory addressing and immediate value formatting
This commit is contained in:
@@ -56,6 +56,13 @@ public class IdivRm32Handler : InstructionHandler
|
||||
// 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 this is an IDIV instruction
|
||||
// The reg field should be 7 (IDIV)
|
||||
if (reg != RegisterIndex.Di)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Set the structured operands
|
||||
// IDIV has only one operand
|
||||
|
||||
Reference in New Issue
Block a user