momiji

m68k emulator infrastructure

About Source code

Table of contents

momiji::InstructionData

Defined in header <momiji/Decoder.h>

struct InstructionData

A compact class representing the data inside an instruction. This class is filled in by the decoder and it’s used in the implementation of the instruction to retrieve the correct parameters.

Member fields

Field Type Notes Default value
size

std::int8_t

The size (as in, “data type”) of the instruction.

  • 0 = Byte
  • 1 = Word
  • 2 = Long

TO BE CHANGED

2

operandType

std::array<momiji::OperandType, 2>

An array of two operands for the instruction. The value inside OperandType is specific to the instruction.

addressingMode

std::array<momiji::SpecialAddressingMode, 2>

An array of two addressing modes for the instruction. The value inside SpecialAddressingMode is specific to the instruction.