Describes an assembled instruction.
More...
#include <fcml_assembler.hpp>
Describes an assembled instruction.
- Since
- 1.1.0
◆ AssembledInstruction() [1/2]
fcml::AssembledInstruction::AssembledInstruction |
( |
const fcml_uint8_t * |
buffer, |
|
|
fcml_usize |
len, |
|
|
const ErrorContainer & |
errorContainer |
|
) |
| |
|
inline |
Creates an assembled instruction basing on given code buffer and errors.
- Parameters
-
buffer | Pointer to the machine code buffer. |
len | Number of machine code bytes. |
errorContainer | Potential warnings related to the assembled instruction. |
- Since
- 1.1.0
◆ AssembledInstruction() [2/2]
Copy constructor.
- Since
- 1.1.0
◆ ~AssembledInstruction()
virtual fcml::AssembledInstruction::~AssembledInstruction |
( |
| ) |
|
|
inlinevirtual |
◆ getCode()
const fcml_uint8_t* fcml::AssembledInstruction::getCode |
( |
| ) |
const |
|
inline |
Gets pointer to machine code buffer.
- Returns
- Pointer to machine code buffer.
- Since
- 1.1.0
◆ getCodeLength()
fcml_usize fcml::AssembledInstruction::getCodeLength |
( |
| ) |
const |
|
inline |
Gets number of bytes in the buffer.
- Returns
- Number of bytes in the buffer.
- Since
- 1.1.0
◆ getWarningContainer()
const ErrorContainer& fcml::AssembledInstruction::getWarningContainer |
( |
| ) |
const |
|
inline |
Gets reference to the errors container.
- Returns
- A reference to the errors container.
- Since
- 1.1.0
◆ operator=()
Copies one instruction into another.
- Parameters
-
cpy | The source instruction. |
- Returns
- A reference to the destination instruction.
- Since
- 1.1.0
The documentation for this class was generated from the following file: