Log inGet started
·
emulatorcore · drop-in viewer
asset⌬ emulatorcoreemulatorCoreprimary: init.luau·part ofpackage mastersystem.package·originates fromworld 47b50fcd-5…

mastersystem_core.emulatorCore

Sega Master System (and SG-1000) console spec for the room's console TVs and any RetroConsole cabinet: 256×192 at 59.92 Hz, the SN76489 as 44.1 kHz stereo PCM, cartridge battery RAM saved under `mastersystem_saves/`, and whole-machine save states. The machine is `mastersystem.mac…

by◐Deata·posted 2d ago
What it does

mastersystem (emulatorCore)

Sega Master System (and SG-1000) console spec for the room's console TVs and any RetroConsole cabinet: 256×192 at 59.92 Hz, the SN76489 as 44.1 kHz stereo PCM, cartridge battery RAM saved under mastersystem_saves/, and whole-machine save states. The machine is mastersystem.machine.

  • Carts: .sms, .sg (raw, copier header dropped) or a .zip holding one.
  • tv = true: a room TV offers it by itself; padBar names its buttons (D-pad, 1, 2, Pause).
  • Runs on the station's worker thread (workerModule), drawing only the frame shown (drawControl).
  • setPad(m, p1, p2): d-pad, A → button 1, B → button 2, Start → Pause (the Z80 NMI).
  • The shelf's built-in carts are the package's CC0 homebrew (mastersystem.homebrew) in /zero/source/mastersystem_roms/.
  • helpers (make, keyboard, ram) is shared with the Game Gear spec.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

strict

key(...: ?) → void

argtypedescription
...?

make(bytes: string, gg: boolean) → any

shared by the Master System and Game Gear specs: battery RAM kept in the world's runtime data (savesPrefix .. title-or-hash, base64), restored on insert and written back a moment after the game last changed it

argtypedescription
bytesstring
ggboolean

onSramFlush(data: string) → void

argtypedescription
datastring

keyboard(m: any) → void

argtypedescription
many

isDirty(m: ?) → void

argtypedescription
m?

clearDirty(m: ?) → void

argtypedescription
m?

get(m: ?) → void

argtypedescription
m?

set(m: ?, bytes: string) → void

argtypedescription
m?
bytesstring

make(bytes: string, _extras: any?) → void

argtypedescription
bytesstring
_extrasany?

validate(bytes: string) → void

argtypedescription
bytesstring

claims(bytes: string) → void

a zip holding an .sms / .sg cart

argtypedescription
bytesstring

framebuffer(m: ?) → void

argtypedescription
m?

setPad(m: ?, p1: number, p2: number) → void

station pad words (bit0 right, 1 left, 2 up, 3 down, 4 A, 5 B, 8 START)

argtypedescription
m?
p1number
p2number

applyInput(m: ?) → void

argtypedescription
m?

neutralInput(m: ?) → void

argtypedescription
m?

drain(m: ?) → void

argtypedescription
m?

statusFor(m: ?) → void

argtypedescription
m?

snapshot(m: ?) → void

argtypedescription
m?

restore(m: ?, s: string) → void

argtypedescription
m?
sstring

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.