Skip to content

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 = {} );
PARAMETERDESCRIPTION
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 );
PARAMETERDESCRIPTION
type
symbol
method is_argumentconst
DEFINITION
bool  is_argument ( ) const;
RETURNSDESCRIPTION
bool
member symbol
DEFINITION
Symbol  symbol;
member type
DEFINITION
Type  type;

enum Type

DEFINITION
enum Type;
VALUEDESCRIPTION
ARGUMENT
PUNCTUATION
RESERVED_WORD

member elements

DEFINITION
std::vector< Element >  elements;

method add_notation

DEFINITION
void  add_notation ( Notation  notation );
PARAMETERDESCRIPTION
notation

method argumentconst

DEFINITION
const Argument * argument ( Symbol  name ) const;
PARAMETERDESCRIPTION
name
RETURNSDESCRIPTION
const Argument *

method has_argumentconst

DEFINITION
bool  has_argument ( Symbol  name ) const;
PARAMETERDESCRIPTION
name
RETURNSDESCRIPTION
bool

method operator<const

DEFINITION
bool  operator< ( const AddressingMode & other ) const;
PARAMETERDESCRIPTION
other
RETURNSDESCRIPTION
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 = {} );
PARAMETERDESCRIPTION
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 );
PARAMETERDESCRIPTION
type
symbol

method is_argumentconst

DEFINITION
bool  is_argument ( ) const;
RETURNSDESCRIPTION
bool

member symbol

DEFINITION
Symbol  symbol;

member type

DEFINITION
Type  type;

enum Type

DEFINITION
enum Type;
VALUEDESCRIPTION
ARGUMENT
PUNCTUATION
RESERVED_WORD

member elements

DEFINITION
std::vector< Element >  elements;

class Element

DEFINITION
class Element;

constructor Element

DEFINITION
Element ( Type  type,
Symbol  symbol );
PARAMETERDESCRIPTION
type
symbol

method is_argumentconst

DEFINITION
bool  is_argument ( ) const;
RETURNSDESCRIPTION
bool

member symbol

DEFINITION
Symbol  symbol;

member type

DEFINITION
Type  type;