mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 00:18:02 +03:00
Fix x86 disassembler issues with direct memory addressing and immediate value formatting
This commit is contained in:
@ -117,7 +117,7 @@ public class SubInstructionTests
|
||||
var immOperand = instruction.StructuredOperands[1];
|
||||
Assert.IsType<ImmediateOperand>(immOperand);
|
||||
var immediateOperand = (ImmediateOperand)immOperand;
|
||||
Assert.Equal(0x42, immediateOperand.Value);
|
||||
Assert.Equal(0x42U, immediateOperand.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -192,7 +192,7 @@ public class SubInstructionTests
|
||||
var immOperand = instruction.StructuredOperands[1];
|
||||
Assert.IsType<ImmediateOperand>(immOperand);
|
||||
var immediateOperand = (ImmediateOperand)immOperand;
|
||||
Assert.Equal(0x42, immediateOperand.Value);
|
||||
Assert.Equal(0x42U, immediateOperand.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -231,7 +231,7 @@ public class SubInstructionTests
|
||||
var immOperand = instruction.StructuredOperands[1];
|
||||
Assert.IsType<ImmediateOperand>(immOperand);
|
||||
var immediateOperand = (ImmediateOperand)immOperand;
|
||||
Assert.Equal(0x10, immediateOperand.Value);
|
||||
Assert.Equal(0x10U, immediateOperand.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -426,7 +426,7 @@ public class SubInstructionTests
|
||||
var immOperand = instruction1.StructuredOperands[1];
|
||||
Assert.IsType<ImmediateOperand>(immOperand);
|
||||
var immediateOperand = (ImmediateOperand)immOperand;
|
||||
Assert.Equal(0x10, immediateOperand.Value);
|
||||
Assert.Equal(0x10U, immediateOperand.Value);
|
||||
|
||||
// Second instruction: SUB EAX, EBX
|
||||
var instruction2 = instructions[1];
|
||||
|
Reference in New Issue
Block a user