Assembler result.
More...
#include <fcml_assembler.hpp>
|
void | setErrorContainer (const ErrorContainer &errorContainer) |
|
std::vector< AssembledInstruction > & | getAssembledInstructions () |
|
void | setChoosenInstructionIndex (fcml_int index) |
|
|
std::basic_ostream< fcml_uint8_t > & | operator<< (std::basic_ostream< fcml_uint8_t > &out, const AssemblerResult &result) |
| Copies machine code of the chosen instruction to the output stream. More...
|
|
◆ AssemblerResult()
fcml::AssemblerResult::AssemblerResult |
( |
| ) |
|
|
inline |
◆ clear()
void fcml::AssemblerResult::clear |
( |
| ) |
|
|
inline |
Clears assembler result by removing all assembled instructions, errors and reseting the chosen instruction.
- Since
- 1.1.0
◆ getChosenInstruction()
Gets instruction chosen by the assembler as the preferred one.
- Returns
- Preferred instruction.
- Since
- 1.1.0
◆ getErrorContainer()
const ErrorContainer& fcml::AssemblerResult::getErrorContainer |
( |
| ) |
const |
|
inline |
Gets errors container.
- Returns
- Errors container.
- Since
- 1.1.0
◆ getSize()
fcml_usize fcml::AssemblerResult::getSize |
( |
| ) |
const |
|
inline |
Gets number of instructions alternatives available in the result.
- Returns
- Number of available instructions.
- Since
- 1.1.0
◆ operator const AssembledInstruction *()
Gets pointer to the chosen instruction.
- Returns
- Pointer to the chosen instruction.
- Since
- 1.1.0
◆ operator[]()
Gets an assembled instruction reference by its index.
- Returns
- The assembled instruction for given index.
- Exceptions
-
- Since
- 1.1.0
◆ operator<<
std::basic_ostream<fcml_uint8_t>& operator<< |
( |
std::basic_ostream< fcml_uint8_t > & |
out, |
|
|
const AssemblerResult & |
result |
|
) |
| |
|
friend |
Copies machine code of the chosen instruction to the output stream.
- Parameters
-
[out] | out | Output stream. |
| result | Assembler result. |
- Returns
- Output stream from the parameter.
- Since
- 1.1.0
The documentation for this class was generated from the following file: