Making SNES ROMs using C#
Published on: 2025-04-30 21:21:48
I've been called a masochist at times, and it's probably true. About 9 months ago I had an idea that the Nim language is able to get pretty wide hardware/OS support for "free" by compiling the language to C, and then letting standard C compilers take it from there. I theorized that the same could be done for .net, allowing .net code to be run on platforms without having to build native runtimes, interpretors, or AOT for each one individually.
Fast forward a bit and I have a my dntc (Dotnet to C transpiler) project working to have C# render 3d shapes on an ESP32S3 and generate Linux kernel eBPF applications.
Today I present to you the next prototype for the system, DotnetSnes allowing you to build real working SNES roms using C#.
Enough that I've ported a basic Mario platformer type example to C#.
The DotnetSnes project uses the dntc transpiler to convert your game to C, then compiles it using the PVSnesLib SDK got convert all the assets and compile down the final rom. The mario Dot
... Read full article.