decompiler  1.0.0
Public Member Functions | Private Attributes | List of all members
ghidra::IfaceAssemblyEmit Class Reference

Disassembly emitter that prints to a console stream. More...

#include <ifacedecomp.hh>

Inheritance diagram for ghidra::IfaceAssemblyEmit:
ghidra::AssemblyEmit

Public Member Functions

 IfaceAssemblyEmit (ostream *val, int4 mp)
 Constructor.
 
virtual void dump (const Address &addr, const string &mnem, const string &body)
 The main disassembly emitting method. More...
 
- Public Member Functions inherited from ghidra::AssemblyEmit
virtual ~AssemblyEmit (void)
 Virtual destructor.
 

Private Attributes

int4 mnemonicpad
 How much to pad the mnemonic.
 
ostream * s
 The current stream to write to.
 

Detailed Description

Disassembly emitter that prints to a console stream.

An instruction is printed to a stream simply, as an address followed by the mnemonic and then column aligned operands.

Member Function Documentation

◆ dump()

virtual void ghidra::IfaceAssemblyEmit::dump ( const Address addr,
const string &  mnem,
const string &  body 
)
inlinevirtual

The main disassembly emitting method.

The disassembly strings for a single machine instruction are passed back to an application through this method. Particular applications can tailor the use of the disassembly by overriding this method.

Parameters
addris the Address of the machine instruction
mnemis the decoded instruction mnemonic
bodyis the decode body (or operands) of the instruction

Implements ghidra::AssemblyEmit.

References ghidra::Address::printRaw().


The documentation for this class was generated from the following file: