|
LIEF: Library to Instrument Executable Formats Version 1.0.0
|
This class represents a memory operand. More...
#include <Memory.hpp>


Classes | |
| struct | offset_t |
| Wraps the memory offset as either an integer displacement or an index register. More... | |
Public Member Functions | |
| REG | base () const |
| The base register. | |
| offset_t | offset () const |
| The addressing offset. | |
| ~Memory () override=default | |
| Public Member Functions inherited from LIEF::assembly::powerpc::Operand | |
| std::string | to_string () const |
| Pretty representation of the operand. | |
| template<class T> | |
| const T * | as () const |
| This function can be used to down cast an Operand instance: | |
| virtual | ~Operand () |
Static Public Member Functions | |
| static bool | classof (const Operand *op) |
This class represents a memory operand.
PowerPC has two addressing forms:
|
overridedefault |
| REG LIEF::assembly::powerpc::operands::Memory::base | ( | ) | const |
The base register.
For lwz 3, 8(4) it would return 4.
|
static |
| offset_t LIEF::assembly::powerpc::operands::Memory::offset | ( | ) | const |
The addressing offset.
It can be either:
References LIEF_LOCAL.