OpenASIP
2.0
|
#include <DisassemblyImmediateAssignment.hh>
Public Member Functions | |
DisassemblyImmediateAssignment (SimValue value, bool sign, DisassemblyElement *destination) | |
virtual | ~DisassemblyImmediateAssignment () |
virtual std::string | toString () const |
Public Member Functions inherited from DisassemblyInstructionSlot | |
virtual | ~DisassemblyInstructionSlot () |
DisassemblyAnnotation & | annotation (int index) const |
void | addAnnotation (DisassemblyAnnotation *annotation) |
int | annotationCount () const |
Private Member Functions | |
DisassemblyImmediateAssignment (const DisassemblyImmediateAssignment &) | |
Coying not allowed. More... | |
DisassemblyImmediateAssignment & | operator= (const DisassemblyImmediateAssignment &) |
Assignment not allowed. More... | |
Private Attributes | |
SimValue | value_ |
Value of the immediate. More... | |
DisassemblyElement * | destination_ |
The destination register. More... | |
bool | hasValue_ |
True, if the immediate has value set. More... | |
bool | signed_ |
True, if the imm unit is signed. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from DisassemblyInstructionSlot | |
DisassemblyInstructionSlot () | |
Represents piece of long immediate assignment in the disassembler.
If the long immediate value is given using the constructor with value parameter, disassembly string displays the value.
Definition at line 46 of file DisassemblyImmediateAssignment.hh.
DisassemblyImmediateAssignment::DisassemblyImmediateAssignment | ( | SimValue | value, |
bool | sign, | ||
DisassemblyElement * | destination | ||
) |
The Constructor.
Creates disassembly of an immediate assignment.
value | Value of the immediate to assign. |
destination | The destination register. |
Definition at line 44 of file DisassemblyImmediateAssignment.cc.
|
virtual |
The destructor.
Definition at line 56 of file DisassemblyImmediateAssignment.cc.
References destination_.
|
private |
Coying not allowed.
|
private |
Assignment not allowed.
|
virtual |
Disassembles the immediate assignment.
Implements DisassemblyInstructionSlot.
Definition at line 67 of file DisassemblyImmediateAssignment.cc.
References DisassemblyInstructionSlot::annotation(), DisassemblyInstructionSlot::annotationCount(), destination_, hasValue_, signed_, SimValue::sLongWordValue(), DisassemblyElement::toString(), DisassemblyAnnotation::toString(), Conversion::toString(), SimValue::uLongWordValue(), and value_.
Referenced by DisassemblyGridTable::GetValue(), and DisassemblyInstruction::toString().
|
private |
The destination register.
Definition at line 66 of file DisassemblyImmediateAssignment.hh.
Referenced by toString(), and ~DisassemblyImmediateAssignment().
|
private |
True, if the immediate has value set.
Definition at line 68 of file DisassemblyImmediateAssignment.hh.
Referenced by toString().
|
private |
True, if the imm unit is signed.
Definition at line 70 of file DisassemblyImmediateAssignment.hh.
Referenced by toString().
|
private |
Value of the immediate.
Definition at line 64 of file DisassemblyImmediateAssignment.hh.
Referenced by toString().