Skip to content

Instruction

class Instruction

Represents an instruction, listing the valid addressing modes and their corresponding opcodes.

DEFINITION
class Instruction;

method has_addressing_modeconst

DEFINITION
bool  has_addressing_mode ( Symbol  addressing_mode ) const;
PARAMETERDESCRIPTION
addressing_mode
RETURNSDESCRIPTION
bool

method opcodeconst

DEFINITION
uint64_t  opcode ( Symbol  addressing_mode ) const;
PARAMETERDESCRIPTION
addressing_mode
RETURNSDESCRIPTION
uint64_t

member opcodes

DEFINITION
std::unordered_map< Symbol, uint64_t >  opcodes;