Save Point
README.md
snes — Super Nintendo core
A Super Nintendo / Super Famicom (NTSC) emulator written in Luau for the hangout room's console TVs, with in-engine tools to write SNES software and two original CC0 games.
Modules (require paths):
snes.cpu65816— reusable WDC 65C816 CPU (native/emulation, 8/16-bit M/X, every addressing mode, decimal, block moves, WAI/STP, NMI/IRQ, master-clock timing by memory region and MEMSEL).snes.spc700— reusable Sony SPC700 CPU.snes.machine— the console: LoROM/HiROM carts (copier header, zip, SRAM), WRAM + port, multiplier/divider, auto/manual joypads, NMI and H/V timer IRQs, 8-channel DMA (all modes) and HDMA (direct/indirect), the line-based S-PPU (modes 0-7, mode 7 + EXTBG, windows, colour math, OBJ limits, mosaic, offset-per-tile, hi-res 512), the APU (SPC700 + S-DSP: BRR, gaussian, ADSR/GAIN, pitch mod, noise, echo/FIR) with an IPL boot ROM written here from the documented protocol, save states.snes.snes_core(emulatorCore) — the TV core: 512x224, worker thread, 44.1 kHz audio, battery saves, pads.snes.asm— two-pass 65C816 assembler (LoROM/HiROM/flat layout, width tracking).snes.spcasm— two-pass SPC700 assembler.snes.homebrew— 65816 runtime, SPC700 sound driver + synthesised BRR instruments + music compiler, and the CC0 games Horizon Kart (mode 7, 1P, battery save) and Puck Rush (2P air hockey: windows, colour math, HDMA spotlight).H.build(true)writes them to/zero/source/snes_roms/.
Licence of the games, runtime, driver, instruments and music: CC0 1.0 (public domain), written for this world. No commercial ROMs are included; players upload their own .sfc/.smc/.zip.
Tests: tests/cpu_tests.luau, tests/ppu_tests.luau, tests/apu_tests.luau, tests/snes_tests.luau (run each with execute { file = ... }).