Porting mruby/c for the SNES (Super Famicom)
summary
Porting mruby/c to the Super Famicom produces a working prototype that runs Ruby on real hardware by compiling with PVSnesLib, using a shared hal_write_buf for debug output and the Mesen2 emulator for memory dumps. Initial simple demo runs at 8 fps and after SA-1 specific tweaks and compiler/optimization changes execution nearly triples to about 24 fps but still overruns VBlank causing flicker. Key work includes SA-1 support, ROM header fixes, shared I-RAM stack, a call_s_cpu bridge for PPU work, and no sound yet.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:07SNES hardware overview
- 3:59Screen output basics
- 8:01Porting mruby/c process
- 12:57Debugging on SNES
- 16:43Performance optimization
- 17:06Special chips like SA-1
- 23:01Live demo
- 24:10Future challenges
related talks
30mRuby on NES - how to make the smallest ruby ever
27mMegaruby - mruby/c on Sega Mega Drive
39m"Developing your Dreamcast games with mruby"
26mMegaruby - mruby/c on Sega Mega Drive
29mmruby in the 8-bit world: mruby VM for Zilog Z80
24mRuby in the 8 Bit World - A Small mruby VM for the Zilog Z80
35mWriting a Gameboy emulator in Ruby
31mBuilding a Standalone Ruby Programming Environment
