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
| Member | Description | Available through |
|---|---|---|
| MemoryReader | Reads typed values and bounded strings from an address space. |
Methods
| Member | Description | Available through |
|---|---|---|
| read | Reads a typed value from emulated Genesis work RAM. | |
| read | Reads one fixed-layout value from this address space. | Available through MemoryReader |
| readUtf16Le | Reads a bounded NUL-terminated little-endian UTF-16 string. | Available through MemoryReader |
| readUtf8 | Reads a bounded NUL-terminated UTF-8 string. | Available through MemoryReader |