Reconstructing game footage from a Game Boy’s memory bus #Nintendo #Gaming

How do you capture a video from an 1989’s Game Boy without modding the original hardware? With an adapter cartridge that spies on the memory bus!

Sebastian Staacks talks about the GB Interceptor:

Let’s talk about how to reconstruct the Game Boy’s memory state, emulate its graphics unit and then encode the image into an MJPEG stream for anyone to use as a USB video class device. In real-time. On an RP2040 microcontroller.

The original goal of the open source project “GB Interceptor” was to capture gameplay for one specific game: Tetris. In order to live stream a Tetris tournaments from the contestant’s personal Game Boys, the idea was to create an adapter that goes between the Game Boy and the game module to analyze the communication on the memory bus and reconstruct the game state.

It turns out that it is actually possible to reconstruct the entire memory state of almost any game and in fact create an RP2040-based adapter that acts as a USB video class device offering the on-screen game footage in real-time. Players can simply put this adapter into their Game Boy and use it like a webcam without additional drivers or knowledge.

An essential aspect of this concept is that the Game Boy basically runs all of its code directly from the ROM module, which makes it possible to directly follow the program counter of its 8 bit CPU regardless of how the code branches. An image can then be recreated by emulating the graphics unit (PPU).

However, there are many edge cases like interrupts, data from registers that are not visible on the bus, the link cable, DMA operations, synchronization of CPU and PPU, game bugs and even bugs in the Game Boy hardware itself.

In this talk I will show how all this is done just on an RP2040 with spare cycles to encode everything as a 60fps MJPEG stream. I will shine a light on the edge cases – those that were solved and those that might just be unsolvable with this approach. And I will take you on a sightseeing tour through the 8 bit hell that drives our iconic handheld from 1989.

Check out the video of the talk here.


Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — The 2024 Recap Issue!

Maker Business – Adafruit Daily — Apple to build another chip at TSMC Arizona

Electronics – Adafruit Daily — SMT Tip – Stop moving around!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


No Comments

No comments yet.

Sorry, the comment form is closed at this time.