Skip to content

Instantly share code, notes, and snippets.

View TakuikaNinja's full-sized avatar

Takumi Grainger TakuikaNinja

View GitHub Profile
@TakuikaNinja
TakuikaNinja / NamcoSerial_SRAM.lua
Created November 1, 2025 08:08
Mesen2 Lua Script: Namco Serial Checker Interface (SRAM)
-----------------------
-- Name: Namco Serial Checker Interface (SRAM)
-- Author: TakuikaNinja
-----------------------
-- Simulates a serial interface used by a few of Namco's FC/NES games which use battery-backed SRAM.
-- It attempts to receive/send data and verify it.
-- If successful, SRAM contents are then verified.
-- The screen colour is set to blue if successful, otherwise it attempts to reinitialise SRAM.
-- The screen colour is set to yellow if the reinitialisation succeeds, otherwise it is set to red.
--
@TakuikaNinja
TakuikaNinja / NamcoSerial.lua
Last active August 17, 2025 20:27
Mesen2 Lua Script: Namco Serial Checker Interface
-----------------------
-- Name: Namco Serial Checker Interface
-- Author: TakuikaNinja
-----------------------
-- Simulates a serial interface used by some of Namco's FC/NES games.
-- Games attempt to receive/send data and verify it.
-- If successful, partial PRG/CHR checksums are calculated and verified.
-- The screen colour is set to magenta/green during this process.
-- This interface predates the IPL interface used by their FDS games. (1986~1987)
--