SplitScript reference / SMSEmulator
SMSEmulator
struct
struct SMSEmulator
Retains a discovered Sega Master System or Game Gear memory mapping.
The mapping covers the console's 8 KiB work RAM. Fusion retains the native pointer that can move while the emulator runs; other supported backends keep a stable base and validate libretro core lifetime where applicable.
Examples
Use the attached Master System memory provider
let emulator: SMSEmulator = sms
Capabilities
| Member | Description | Available through |
|---|---|---|
| MemoryReader | Reads typed values and bounded strings from an address space. |
Methods
| Member | Description | Available through |
|---|---|---|
| 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 |
| read | Reads a typed value from emulated Master System work RAM. |