Skip to main content

Module cpu

Module cpu 

Source
Expand description

CPU Backend - m68k wrapper

Hosts the 68k interpreter that drives the HLE Toolbox dispatch path.

Structs§

M68kCpu
68k CPU wrapper holding the m68k interpreter core. CPU type is fixed at construction to match the canonical machine profile (crate::machine_profile::REFERENCE_MACHINE_PROFILE).

Enums§

Register
68k CPU register identifiers — eight data registers (D0–D7), eight address registers (A0–A7, with A7 doubling as the user stack pointer), and the program counter.
StepResult
Outcome of a single 68k instruction step. Returned by FixtureRunner::step.

Traits§

CpuOps
Trait the trap dispatcher uses to read/write CPU state without pulling in the full 68k interpreter type — lets handlers be generic over both the production M68kCpu and test fakes.
HleHandler
Trap handler with CPU and bus access for HLE.