SplitScript reference / Genesis
Genesis
state provider
state Genesis
Attaches to a supported Sega Genesis emulator.
The provider discovers the console's 64 KiB work RAM and exposes original Genesis offsets through the read-only genesis value of type GenesisEmulator. It normalizes the word-swapped storage used by several emulators before decoding values in the console's big-endian byte order. It owns discovery for Fusion, Gens, BlastEm, Sega Game Room, Sega Genesis Classics, and supported RetroArch cores. Declare guest offsets directly instead of recreating emulator-specific DeepPointer mappings or manual byte-order correction.
Examples
Read Genesis work RAM
state Genesis {
score: u32 at 0x1200
}
Value type
| Member | Description | Available through |
|---|---|---|
| GenesisEmulator | Retains a discovered Sega Genesis work-RAM mapping. |
Mapping lifecycle
The provider validates its private memory mapping before each state poll. If that mapping disappears while the host process remains open, the current logical attachment ends: attachment-scoped state and pending continuations are cleared, and onDetach runs if onAttach had completed. Discovery then continues cooperatively against the same host process. A replacement mapping starts a new attachment, runs onAttach again, and establishes a fresh old / current baseline.