|
OpenASIP 2.2
|
#include <ImmediateElement.hh>


Public Member Functions | |
| ImmediateElement () | |
| virtual | ~ImmediateElement () |
| bool | isInline () const |
| void | addByte (Byte aByte) |
| Byte | byte (unsigned int index) const |
| void | setByte (unsigned int index, Byte aValue) |
| void | setWord (Word aValue) |
| void | setSignedWord (SignedWord aValue) |
| void | setSignedLong (SLongWord aValue) |
| void | setULongWord (ULongWord aValue) |
| Word | word () const |
| LongWord | longWord () const |
| SignedLongWord | sLongWord () const |
| SignedWord | signedWord () const |
| unsigned int | length () const |
| Byte | destinationUnit () const |
| void | setDestinationUnit (Byte aDestinationUnit) |
| Byte | destinationIndex () const |
| void | setDestinationIndex (Byte aDestinationIndex) |
Public Member Functions inherited from TPEF::InstructionElement | |
| virtual | ~InstructionElement () |
| bool | isMove () const |
| bool | isImmediate () const |
| bool | begin () const |
| void | setBegin (bool isBegin) |
| InstructionAnnotation * | annotation (Word index) const |
| void | addAnnotation (InstructionAnnotation *anAnnotation) |
| Word | annotationCount () const |
Public Member Functions inherited from TPEF::SectionElement | |
| virtual | ~SectionElement () |
Public Member Functions inherited from TPEF::SafePointable | |
| virtual | ~SafePointable () |
Private Attributes | |
| std::vector< Byte > | value_ |
| Value of immediate. | |
| Byte | destinationUnit_ |
| Destination unit of immediate. | |
| Byte | destinationIndex_ |
| Destination index of immediate. | |
Additional Inherited Members | |
Protected Member Functions inherited from TPEF::InstructionElement | |
| InstructionElement (bool isMove) | |
Protected Member Functions inherited from TPEF::SectionElement | |
| SectionElement () | |
Protected Member Functions inherited from TPEF::SafePointable | |
| SafePointable () | |
Immediate data element of CodeSection.
Definition at line 49 of file ImmediateElement.hh.
| TPEF::ImmediateElement::ImmediateElement | ( | ) |
Constructor.
Definition at line 43 of file ImmediateElement.cc.
|
virtual |
| void TPEF::ImmediateElement::addByte | ( | Byte | aByte | ) |
Referenced by TPEF::TPEFCodeSectionReader::readData().
| Byte TPEF::ImmediateElement::byte | ( | unsigned int | index | ) | const |
Referenced by TPEF::TPEFCodeSectionWriter::writeDataField().
| Byte TPEF::ImmediateElement::destinationIndex | ( | ) | const |
| Byte TPEF::ImmediateElement::destinationUnit | ( | ) | const |
Referenced by TTAProgram::TPEFProgramFactory::addProcedures(), TTAProgram::ProgramWriter::createCodeSection(), TTAProgram::TPEFProgramFactory::createInstruction(), TPEFDisassembler::createInstruction(), CodeSectionCreator::finalize(), TTAProgram::TPEFProgramFactory::findInstrTemplate(), CodeCompressorPlugin::programImmediate(), and TPEF::TPEFCodeSectionWriter::writeDataField().
| bool TPEF::ImmediateElement::isInline | ( | ) | const |
| unsigned int TPEF::ImmediateElement::length | ( | ) | const |
| LongWord TPEF::ImmediateElement::longWord | ( | ) | const |
| void TPEF::ImmediateElement::setByte | ( | unsigned int | index, |
| Byte | aValue | ||
| ) |
| void TPEF::ImmediateElement::setDestinationIndex | ( | Byte | aDestinationIndex | ) |
| void TPEF::ImmediateElement::setDestinationUnit | ( | Byte | aDestinationUnit | ) |
| void TPEF::ImmediateElement::setSignedLong | ( | SLongWord | aValue | ) |
Referenced by TTAProgram::ProgramWriter::createCodeSection().
| void TPEF::ImmediateElement::setSignedWord | ( | SignedWord | aValue | ) |
| void TPEF::ImmediateElement::setULongWord | ( | ULongWord | aValue | ) |
Referenced by TTAProgram::ProgramWriter::createCodeSection().
| void TPEF::ImmediateElement::setWord | ( | Word | aValue | ) |
| SignedWord TPEF::ImmediateElement::signedWord | ( | ) | const |
| SignedLongWord TPEF::ImmediateElement::sLongWord | ( | ) | const |
| Word TPEF::ImmediateElement::word | ( | ) | const |
|
private |
Destination index of immediate.
Definition at line 88 of file ImmediateElement.hh.
|
private |
Destination unit of immediate.
Definition at line 86 of file ImmediateElement.hh.
|
private |
Value of immediate.
Definition at line 84 of file ImmediateElement.hh.