momiji

m68k emulator infrastructure

About Source code

Table of contents

System

Classes and functions that revolve around the management of an emulated MC68000 system (eg: CPU, memory, etc...).

Components

Traps Classes that represent an hardware trap (or exception).

Classes

momiji::Cpu

Class describing a generic MC68000 CPU.

momiji::Register<IntType, PhantomTag>

Generic class describing a register with its value.

momiji::StatusRegister

A class representing the status register. The status register is set accordingly when executing a cmp, add, sub, mul or div.

momiji::System

Class that represents a running MC68000 system.

Free functions

momiji::make_memory_view

Creates a view of the memory of a running momiji::System instance.

Typedefs

Type Definition Notes
momiji::DataRegister
Register<std::int32_t, /* implementation-defined */>
momiji::AddressRegister
Register<std::int32_t, /* implementation-defined */>
momiji::ProgramCounter
Register<std::uint32_t, /* implementation-defined */>
momiji::TrapType
std::variant<momiji::traps::InvalidMemoryRead,
             momiji::traps::InvalidMemoryWrite,
             momiji::traps::DivisionByZero,
             momiji::traps::IllegalInstruction>;