momiji

m68k emulator infrastructure

About Source code

Table of contents

momiji::operands::AddressIndex

Defined in header <momiji/Parser.h>

struct AddressIndex

An operand of the form (X, Y*, a*) where ‘*’ is any number from 0 to 7, ‘Y’ is any data or address register and ‘X’ is any compile-time expression. This references the address inside the address register plus the value inside the register ‘Y*’ plus the value of ‘X’. It’s also possible to omit ‘X’, which results in an expression of the form (Y*, a*).

Member fields

Field Type Notes Default value
offset

std::unique_ptr

The AST representing the value of the offset.

reg

std::int32_t

The number of the address register. (eg: 0 is the first, 7 is the eight)

othreg

std::int32_t

The number of the other register (‘Y*’).

In (X, Y*, a*), ‘X’ is any compile-time expression, see AST objects for some examples.