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

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

Methods

MemberDescriptionAvailable through
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
readReads a typed value from emulated Master System work RAM.