0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-07-01 12:40:25 +03:00
Files
ParkanPlayground/X86Disassembler/Analysers/AsmFunction.cs

22 lines
553 B
C#
Raw Normal View History

namespace X86Disassembler.Analysers;
2025-04-18 16:29:53 +03:00
/// <summary>
/// Represents a disassembled function with its control flow graph
/// </summary>
2025-04-18 16:29:53 +03:00
public class AsmFunction
{
/// <summary>
/// The starting address of the function
/// </summary>
2025-04-18 16:29:53 +03:00
public ulong Address { get; set; }
/// <summary>
/// The list of basic blocks that make up the function
/// </summary>
public List<InstructionBlock> Blocks { get; set; } = [];
2025-04-18 16:29:53 +03:00
public override string ToString()
{
2025-04-19 02:12:46 +03:00
return $"{Address:X8}\n{string.Join("\n", Blocks)}";
2025-04-18 16:29:53 +03:00
}
}