prettyDisasm

Disassembles a function and returns its string representation.

  1. string prettyDisasm(void* eip, short maxNesting = 1)
    string
    prettyDisasm
    (
    void* eip
    ,
    short maxNesting = 1
    )
  2. string prettyDisasm(T eip, short maxNesting = 1)

Parameters

eip
Type: void*

the entry point, a pointer to a function.

maxNesting
Type: short

indicates how many consecutive sub fonctions can be disassembled.

Return Value

Type: string

a string representing the function(s).

Examples

1 import std.stdio;
2 import disassembler;
3 
4 void main(string[] args)
5 {
6    // prints the code generated for main().
7    writeln(prettyDisasm(&main, 1));
8 }

Meta