mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-07-01 12:40:25 +03:00
16 lines
342 B
C#
16 lines
342 B
C#
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
|
|
};
|
|
}
|
|
} |