A technical joke built on reversing expectations
Source 00:00Tom 7 begins with a theory of technical humor: surprise can come from putting things in an unexpected order. A person eating a boot with an oddly dignified expression is an old example; Samus eating Tide Pods in 1986 is an anachronism. Neither a retro reference nor self-reference alone is necessarily funny.
A quine—a program that prints its own source code—illustrates the stronger idea. Usually source code precedes the compiled program; here the program produces its own source. Drawing on Douglas Hofstadter's strange loops, Tom calls the broader reversal of an expected order an “improper hierarchy.” Unlike a loop, the reversal need not return to its starting point. His punchline will put a later console's game on an earlier one.
Replace the cartridge's memory, not the NES
Source 03:37The NES has an approximately 1.7 MHz 8-bit CPU and a slightly faster, nonprogrammable graphics processor, the PPU. Its lockout chip resets the console if the cartridge does not satisfy it. Tom jokes about blowing into cartridges, which he says does not help and may harm them. A simple cartridge contains separate read-only memory (ROM) for the CPU program and PPU graphics, plus the matching lockout chip. Its oversized American shell leaves room for a more ambitious board.
Ordinary emulation replaces the console hardware with software and loads a game file. Reverse emulation keeps the physical console unchanged and replaces the cartridge ROM with a computer that responds to its reads. Tom initially imagines a $10 Raspberry Pi Zero W, with a 1 GHz CPU and wireless connectivity, supplying data while performing extra computation. His desktop NES emulator runs at roughly 28,000 frames per second, but that throughput does not establish that a Pi can answer individual hardware requests on time.
The presentation itself is already a demonstration: its slides are displayed by a real, unmodified NES and advanced with an NES controller. His reading of the FCC sticker as a legal requirement that the experiment work is a joke, not an engineering guarantee.
Repeated graphics reads expose finer control
Source 07:41NES backgrounds reuse 8×8-pixel tiles. A separate attribute area assigns palettes to larger 16×16-pixel regions; Tom describes four palettes with 13 active background colors selected from 64. The familiar cloud and bush reuse the same graphics with different colors.
The PPU does not draw the whole color region at once: it renders 8×1 strips and reads the color again for each strip. A normal ROM returns the same value for the same address; the replacement can return a different one on successive reads. That changes color at strip granularity without eliminating every color constraint.
Ordinarily, updating graphics through the CPU-to-PPU connection is constrained to vertical blanking, the interval after the 240 visible scanlines; writing during rendering causes glitches. Tom estimates this window at about one thirteenth of a frame, limiting how much of a scrolling scene can be updated. Supplying changing graphics directly from the cartridge lets him refresh tiles much more often and display full-motion video. He points to a separate video for the full implementation details.
Predicting the next byte makes the timing barely work
Source 10:41An oscilloscope image of this NES's signals is itself stored in the cartridge and displayed through those same wires. The read timing is measured in nanoseconds, with address lines entering the cartridge and eight data bits returning. Tom finds that the Pi's bandwidth is only about three times faster than the PPU ROM, and latency makes the obvious approach fail: even hand-optimized assembly that reads an address and then returns a byte responds too late.
Instead, the software writes at the beginning of the wait cycle, then reads the address. Because that order prevents the response from depending on the just-read address, it predicts the next byte and uses the subsequent address to update its estimate of the PPU's position on screen. The PPU is predictable enough for this to work much of the time, but prediction errors are a main source of visible noise and glitches; Tom has not fully solved them.
Real signals are analog rather than ideal square waves, so the circuit also requires substantial hardware work. The finished custom board is more complex than the fantasy schematic and fits in a cartridge with the Pi soldered on. Tom salvages a CIC lockout chip from an actual game because he cannot buy it separately; he regrets sacrificing an increasingly expensive old cartridge. A separate custom CPU-side ROM supplies the program.
A read-only handshake carries palette and controller data
Source 14:00The CPU still has jobs: before each frame it installs the selected palette and reads the controller. During visible scanlines the PPU reads from the board; at vertical blank, an interrupt wakes the CPU, which can also read graphics memory. To identify itself, the CPU performs reads in descending address order. Tom calls this “knocking”: the unusual sequence distinguishes it from the PPU's left-to-right rendering reads.
Once synchronized, the board can supply palette data for the CPU to install without confusing it with screen graphics. A read also sends an address to the cartridge, so the CPU can encode the controller's eight button bits in those addresses. The board extracts them and can respond to the player's input.
The exchange consumes about two thirds of vertical blank, leaving around half a millisecond for other work—enough for simple animation and changing slides, but little more. Tom upgrades to a four-core Raspberry Pi 3 cartridge so other cores can compute while the main core handles rendering.
The punchline is a later console's game on the NES
Source 16:03Tom shows the second cartridge booting for continuity. Linux interrupts still cause flicker, but the unmodified NES displays and lets him play Super Mario World, a launch game for the later 16-bit Super Nintendo. The more capable cartridge supplies the necessary computation and graphics; the NES itself has not been transformed into a Super Nintendo. The result has noise and flicker.
Controller input passes through, but the NES controller has only eight buttons. Direction bits happen to align, while Tom has run and spin jump but no normal jump. To reduce blockiness, he describes placing the 8×1 strips on different grids on alternate frames. He thinks this also helps color resolution somewhat.
He then plays the original Super Mario Bros. using an NES emulator inside the cartridge's Pi, whose graphics are sent to the real NES for display, with the same kinds of visual problems. That forms a loop; he prefers the other joke, the improper hierarchy of a Super Nintendo game appearing on an NES.
The speculative extension is augmenting the brain
Source 19:27Tom closes by extending the metaphor from nostalgic consoles to the human brain. He worries that future AI could leave people behind, as strong chess computers already make play less enjoyable for him. This project is a playful way to imagine another possibility: keeping a person while replacing or augmenting some brain hardware with a more capable technology, rather than uploading the whole brain.
He explicitly treats the idea as hypothetical: whether memory has a suitable replaceable locus and whether it could interface with computers are open questions. As an illustration, he imagines reciting a familiar sequence and having enhanced memory complete it with the prime factors of a number. He would rather keep the alphabet and jokingly substitute an inconsequential television memory instead. The NES experiment demonstrates a cartridge interface, not the feasibility of that brain technology.