Show HN: Pokémon Emerald Ported to Raspberry Pi Pico 2

The 30-Second Skim
- What happened: A hobbyist port runs Pokémon Emerald natively on a $6 RP2350B microcontroller — recompiled from the pret decompilation, with a software-rasterized PPU on the second core, delivering a playable 60 fps experience via HDMI with real buttons and persistent saves.
- Key facts & numbers: Pokémon Emerald runs natively on a WeAct Studio Core2350B (RP2350B, 16 MB QSPI flash) at a locked 60 fps — no emulator, just the pret decompilation recompiled from ARMv4T to Cortex-M33 with the GBA's video hardware reimplemented in software. The complete game (code, graphics, maps, music) fits in an 11.7 MB image executed in place from flash, using ~378 KB of the RP2350's 520 KB of RAM; GBA memory-mapped registers (DISPCNT, VRAM, OAM, palette RAM) survive as plain SRAM. The software PPU on core 1 went from 909 ms/frame to ~12 ms/frame through per-frame palette LUTs, per-scanline window masks, 8-pixel tile spans, and incremental affine stepping — a roughly 45× speedup validated byte-exact against the WASM port's JavaScript rasterizer.
- What happens next: Not an emulator — the actual decompilation runs on a $6 chip. The PPU rasterizer went from 909ms/frame to 12ms through sheer optimization grind.
- Pokémon Emerald runs natively on a WeAct Studio Core2350B (RP2350B, 16 MB QSPI flash) at a locked 60 fps — no emulator, just the pret decompilation recompiled from ARMv4T to Cortex-M33 with the GBA's video hardware reimplemented in software.
- The complete game (code, graphics, maps, music) fits in an 11.7 MB image executed in place from flash, using ~378 KB of the RP2350's 520 KB of RAM; GBA memory-mapped registers (DISPCNT, VRAM, OAM, palette RAM) survive as plain SRAM.
- The software PPU on core 1 went from 909 ms/frame to ~12 ms/frame through per-frame palette LUTs, per-scanline window masks, 8-pixel tile spans, and incremental affine stepping — a roughly 45× speedup validated byte-exact against the WASM port's JavaScript rasterizer.
- Scanout uses a DMA control-block ring feeding the HSTX serializer a full 525-line frame with the CPU never touching the re-arm path, killing an ~0.8-blink-per-minute HDMI dropout caused by flash-write stalls during saves.
Why It Matters
This demonstrates that modern $6 microcontrollers can natively execute a full commercial GBA game — recompiled from clean-room decompilation, not emulated — at locked 60 fps with custom HDMI output, a software-rasterized PPU on a second core, and DMA-driven scanout that survives flash-write stalls during saves. For hobbyists, it shows the RP2350B's dual-core ARM Cortex-M33 and HSTX peripheral can shoulder a real retro workload; for the pret ecosystem, it proves the decompilation's hardware-abstraction seams generalize to bare-metal MCU targets, not just WASM.
Sources Cited
- Hacker News — Show HN: Pokémon Emerald Ported to Raspberry Pi Pico 2