SplitScript reference / GenesisEmulator

GenesisEmulator

struct

struct GenesisEmulator

Retains a discovered Sega Genesis work-RAM mapping.

Fusion and Sega Classics retain a native pointer whose target may move. Gens, BlastEm, and the supported libretro cores retain a stable base. The provider also records whether the emulator stores each 16-bit word with its bytes reversed so reads can expose one consistent guest-memory view.

Examples

Use the attached Genesis memory provider

let emulator: GenesisEmulator = genesis

Capabilities

MemberDescriptionAvailable through
MemoryReaderReads typed values and bounded strings from an address space.

Methods

MemberDescriptionAvailable through
readReads a typed value from emulated Genesis work RAM.
readReads one fixed-layout value from this address space.Available through MemoryReader
readUtf16LeReads a bounded NUL-terminated little-endian UTF-16 string.Available through MemoryReader
readUtf8Reads a bounded NUL-terminated UTF-8 string.Available through MemoryReader