Save Point
README.md
megadrive
A Sega Mega Drive / Genesis emulator written in Luau, packaged as an
emulatorCore so the console appears on the room's console TVs beside the
NES, Game Boy and Neo Geo. Players upload their own .md/.bin/.gen/.smd
carts (or a zip of one); the shelf also carries original homebrew games
written for this package and released under CC0.
megadrive_core.emulatorCore— the console spec the TVs read (worker thread, 320×224, 44.1 kHz stereo, SRAM saves, save states).machine.module(require("megadrive.machine")) — the machine: VDP, YM2612, cart loader, bus/I/O, scheduler. The 68000, Z80 and zip reader areneogeo.machine.m68k/z80/zip.psg.module(require("megadrive.psg")) — SN76489 PSG, reusable (Master System, Game Gear).tests/— VDP, YM2612, PSG, cart and machine tests.
Games on the shelf (all CC0 1.0, written for this package)
The engine has no network access, so no published homebrew could be fetched;
these carts were written here in 68000 assembly (megadrive.homebrew,
assembled by megadrive.asm) and are released under CC0 1.0 Universal
(public domain dedication: copy, modify, redistribute, commercially or not,
without asking). Source: homebrew.module/*.luau. ROMs: /zero/source/megadrive_roms/.
| cart | players | what it shows |
|---|---|---|
paddle_duel.md — Paddle Duel | 1-2 (CPU takes pad 2 until it presses a button) | sprites, H-int raster gradient, PSG effects, FM title theme |
star_lane.md — Star Lane | 1-2 co-op (pad 2 Start joins) | per-line H-scroll parallax, window-plane HUD, H-int backdrop gradient, sprite DMA, FM music, PSG effects, high score in battery SRAM |
beat_cabin.md — Beat Cabin | 1-2 | Z80 sample player streaming PCM drums to the YM2612 DAC through the banked 68k window, shadow/highlight spotlights, FM bass |
Every game advances the word at RAM $FF0000 once per logic step: the
logic-rate probe (m:watchRam(0xFF0000)).