AddressingMode
class AddressingMode
Represents an addressing mode, which defines how an instruction's operands are specified and encoded.
DEFINITION
class AddressingMode;
class Argument
DEFINITION
class Argument;
constructor Argument
DEFINITION
| Argument | ( | ); |
constructor Argument
DEFINITION
| Argument | ( | const ArgumentType * type, | |
| std::optional< Value > default_value = {} | ); |
| PARAMETER | DESCRIPTION |
|---|---|
type |
|
default_value |
member default_value
DEFINITION
std::optional< Value > default_value;
member type
DEFINITION
const ArgumentType * type;
class Notation
DEFINITION
class Notation;
class Element
DEFINITION
class Element;
constructor Element
DEFINITION
| Element | ( | Type type, | |
| Symbol symbol | ); |
| PARAMETER | DESCRIPTION |
|---|---|
type |
|
symbol |
method is_argumentconst
DEFINITION
| bool is_argument | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
member symbol
DEFINITION
Symbol symbol;
member type
DEFINITION
Type type;
enum Type
DEFINITION
enum Type;
| VALUE | DESCRIPTION |
|---|---|
ARGUMENT |
|
PUNCTUATION |
|
RESERVED_WORD |
member elements
DEFINITION
std::vector< Element > elements;
method add_notation
DEFINITION
| void add_notation | ( | Notation notation | ); |
| PARAMETER | DESCRIPTION |
|---|---|
notation |
method argumentconst
DEFINITION
| const Argument * argument | ( | Symbol name | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
name |
| RETURNS | DESCRIPTION |
|---|---|
const Argument * |
method has_argumentconst
DEFINITION
| bool has_argument | ( | Symbol name | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
name |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method operator<const
DEFINITION
| bool operator< | ( | const AddressingMode & other | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
other |
| RETURNS | DESCRIPTION |
|---|---|
bool |
member arguments
DEFINITION
std::unordered_map< Symbol, std::unique_ptr< Argument > > arguments;
member encoding
DEFINITION
Body encoding;
member notations
DEFINITION
std::vector< Notation > notations;
member priority
DEFINITION
size_t priority;
member uses_pc
DEFINITION
bool uses_pc;
class Argument
DEFINITION
class Argument;
constructor Argument
DEFINITION
| Argument | ( | ); |
constructor Argument
DEFINITION
| Argument | ( | const ArgumentType * type, | |
| std::optional< Value > default_value = {} | ); |
| PARAMETER | DESCRIPTION |
|---|---|
type |
|
default_value |
member default_value
DEFINITION
std::optional< Value > default_value;
member type
DEFINITION
const ArgumentType * type;
class Notation
DEFINITION
class Notation;
class Element
DEFINITION
class Element;
constructor Element
DEFINITION
| Element | ( | Type type, | |
| Symbol symbol | ); |
| PARAMETER | DESCRIPTION |
|---|---|
type |
|
symbol |
method is_argumentconst
DEFINITION
| bool is_argument | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
member symbol
DEFINITION
Symbol symbol;
member type
DEFINITION
Type type;
enum Type
DEFINITION
enum Type;
| VALUE | DESCRIPTION |
|---|---|
ARGUMENT |
|
PUNCTUATION |
|
RESERVED_WORD |
member elements
DEFINITION
std::vector< Element > elements;
class Element
DEFINITION
class Element;
constructor Element
DEFINITION
| Element | ( | Type type, | |
| Symbol symbol | ); |
| PARAMETER | DESCRIPTION |
|---|---|
type |
|
symbol |
method is_argumentconst
DEFINITION
| bool is_argument | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
member symbol
DEFINITION
Symbol symbol;
member type
DEFINITION
Type type;