mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-07-02 04:50:27 +03:00
t
This commit is contained in:
16
X86Disassembler/Analysers/OperandExtensions.cs
Normal file
16
X86Disassembler/Analysers/OperandExtensions.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using X86Disassembler.X86;
|
||||
using X86Disassembler.X86.Operands;
|
||||
|
||||
namespace X86Disassembler.Analysers;
|
||||
|
||||
public static class OperandExtensions
|
||||
{
|
||||
public static uint GetValue(this Operand operand)
|
||||
{
|
||||
return operand switch
|
||||
{
|
||||
RelativeOffsetOperand roo => roo.TargetAddress,
|
||||
_ => 0
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user