Yellow marks are automatic key passages. They aren’t personal saved highlights. Select a timestamp to follow along with the video.
Zikubi's Super Mario Bros. 3 speedrun finishes in 3 minutes and 2 seconds by using a wrong warp that sends Mario out of the level map into a glitched pipe, where a garbage-data crash eventually loads the ending. The run builds on a known route, with carefully timed Hammer Brother manipulation, downhill running, and two warp whistles that lead to World 7, while the glitch itself depends on an invisible noteblock, a stack underflow caused by an unexpected ROM bank swap, and enemy positions that the game reads as a jump instruction to the ending sequence. The video shows that the trick is fragile, since a few frames of difference in Koopa positions or music state can break it, and it concludes that a sub-three-minute time is likely impossible with a controller, as the tool-assisted record relies on setups that are extremely hard to replicate by hand.
The Three-Minute Speedrun
A familiar Super Mario Bros. 3 speedrun takes about 11 minutes. Its usual route is straightforward: collect two warp whistles in World 1, use them to reach World 8, then finish the world and defeat Bowser. But the shortest route can sometimes pass through a wormhole. On August 1, 2020, Zikubi beat the game in just 3 minutes and 2 seconds.
The Opening Route and Hammer Brother Luck
The first two minutes closely resemble mitchflowerpower’s Any% No Wrong Warp run. Zikubi gains P-speed early and races through the level. The Hammer Brother moves only once, at the end of the stage; all four Hammer Brother movements in the run follow this pattern. This optimal pattern has only a 3% chance of occurring and is necessary for such a fast time, but Zikubi manipulated the first movement. The game’s random-number generator runs every frame and follows the same sequence, so random events can be controlled by triggering them on a specific frame. By waiting on the title screen for an exact amount of time, Zikubi set up the Hammer Brother to move just one tile, provided he finished 1-1 within a five-frame window. Afterward, finishing levels with that degree of accuracy becomes too difficult, so the remaining movements are essentially random. If the initial manipulation succeeds, the chance of optimal movements rises from 3% to 6%. A previous video misstated the odds for each direction at a T-shaped intersection; the percentages here have been corrected.
Collecting the Warp Whistles
In the next level, Zikubi again builds P-speed on the pipe, then tries to run downhill as much as possible. Mario runs about 5% faster on slopes, reaching a speed of up to 59 compared with 56 on flat ground. Running downhill saves about three or four frames over the course of the level. The strategy then matches the No Wrong Warp run: Zikubi needs a mushroom to get the Super Leaf in the next level, and he waits four seconds on a block to reach the secret exit and collect the first warp whistle. He then flies up through the fortress with the Super Leaf to get the second whistle from its secret exit. Instead of going to World 8, he travels to World 2 and then warps to World 7.
A Glitched Noteblock Triggers the Ending
The run ends when Mario hits a glitched noteblock, causing the game to crash in just the right way to load the ending sequence immediately. A frame-by-frame emulator recreation closely matches the original run and makes it possible to examine what happened. First, Mario hits the side of a pipe and enters it in the wrong direction. With enough speed, he can sometimes move into solid blocks, but usually remains inside for only one frame before being pushed out. At this spot, clipping into the pipe also places him on a pipe-exit tile. Since pipe exits are normally connected to pipes, the game does not prevent Mario from entering them from the wrong direction. Pressing down against the top of the exit tile sends him down instead of up. He then travels along the glitched pipe, which has no other end, until he leaves the level map.
Garbage Data and the Invisible Noteblock
A vertical level can contain up to 16 screens, arranged from top to bottom. A table stores the memory address of each screen’s level data. When Mario reaches the seventeenth screen, there is no level data left, so the game looks beyond the table for an address. It finds garbage data—a value meant for an unrelated purpose—and treats it as a memory address. The game then reads unrelated garbage as level data, creating a garbled mess. Screen tiles are drawn through a separate process that also goes wrong, so the garbage displayed on screen differs from the garbage actually present. Mario passes through the mess until, at the top of the nineteenth screen, the data happens to line up to form a tile that acts like a pipe exit and frees him. At the right edge sits the cause of the crash: an invisible noteblock. When Mario bumps a block, the game removes the background tile and substitutes a sprite to animate it. That removal triggers the crash.
ROM Banks and the Stack Underflow
Super Mario Bros. 3’s ROM is eight times larger than the NES can load at once. It is divided into 32 banks that can be swapped in and out of memory, with only four loaded at any time. The memory address for the nineteenth screen happens to point to a location normally used to control which banks are loaded. Usually, only the middle two banks are swapped; the first is always bank 30, and the last is always bank 31. But when the game tries to remove the noteblock tile for the bump animation, it swaps out those two banks instead, replacing the code currently running with another part of the ROM. This disrupts the processor’s stack. Programs use routines and subroutines for basic functions. When a subroutine is called, the processor adds the return address to a stack; when the subroutine finishes, it returns to the address at the top. The stack therefore tracks the nested routines currently in use. Here, the unexpected bank swap breaks that balance. The processor runs code from inside a subroutine and reaches a return instruction. It finds one return address, follows it, clears it from the stack, and continues. But because the ROM bank has changed, that address now leads to another subroutine ending in the same return instruction. With no return address left, the processor experiences a stack underflow and loops around to the other end of the stack.
Turning Enemy Positions into Code
Super Mario Bros. 3 uses only 128 entries in the stack, so the last entry is used for other purposes: it contains variables for the status-bar mode and level mode. In a vertical stage, those values are 00 and 80, making 0080 the return address. Execution then runs into these variables as if they were code. The first byte identifies an instruction, and the next two bytes provide its parameters, usually a memory address. In this case, the instruction is assembled from the horizontal positions of enemy slots 3, 4, and 5. Those values can be manipulated by placing the right enemies in the right locations, allowing the game to execute any instruction if the enemies reach the correct positions. Zikubi sets this up by killing Piranha Plants while moving upward and loading enemies in the right order, so three Koopas occupy slots 3, 4, and 5. He kills the Koopa in slot 4 on a block, setting its position to E3. He then flips the Koopa in slot 3 and enters a pipe when that Koopa is at position 20. The pipe entry allows a two-frame window. This part does not go as planned: Zikubi turns around slightly too early, disrupting his usual timing method. He compensates with a turnback to avoid overshooting and improvises the timing. The shell stops at position 20. Finally, he carries the Koopa in slot 5 to the nineteenth screen and throws it left. On the frame its position reaches 95, Zikubi jumps, triggering the crash and causing the game to read the instruction 20, E3, 8F. The value 20 means “Jump to subroutine,” so execution moves to address 8FE3, normally the function that loads the ending sequence.
Restoring the Ending Sequence
The ROM bank has been swapped unexpectedly, so the ending sequence is no longer at 8FE3. However, the jump instruction also swaps the banks back to their intended positions, restoring the ending sequence just in time for the game to jump to it. After all the unintended complications, the game reaches the ending and Princess Peach is rescued.
Why the Trick Can Fail
Several things can go wrong before the jump instruction. The code first runs through other variables, which must translate into instructions that neither crash the game nor derail execution. For example, a Koopa’s horizontal position is also read as an instruction. In this run, Zikubi moves quickly enough that the Koopa is unloaded at position 74. If he had been two frames slower, it would have been at position 72, which translates into an instruction that immediately stops execution. Five of the eleven most common Koopa positions would make the trick fail. The sound engine also encounters problems: the sudden jump to the ending sequence deletes the music data it was reading, trapping it in a loop. The outcome depends on where the music was before
How the Glitch Reaches the Ending
Depending on where the music was when Mario made the jump, the processor may eventually exit its loop and play a glitched sound, remain stuck and delay the ending, or reach an instruction that stops all execution.
Mario clips partly inside the pipe, allowing him to enter it from below rather than go up. The glitched pipe has no exit, so he travels downward beyond the level’s boundaries and into garbage data, where a note block is located. Interacting with it triggers a series of unintended jumps in the game’s code, eventually causing the game to treat enemies’ horizontal positions as instructions. Careful manipulation sets those positions to values that translate into a simple instruction to load the end screen, beating the game.
Why a Faster Time Is So Difficult
The run is already close to perfect, making a 3:01 seem very unlikely with the current strategy. Zikubi lost only 11 frames on the overworld, a few frames entering the fortress’s secret door, and a couple more in 7-1. However, improving a stage by even a frame or two would most likely make the Hammer Brother move the wrong way. Only a few specific completion frames produce optimal patterns, so finding small improvements is especially difficult.
The tool-assisted speedrun uses a different, faster setup in which a Piranha Plant replaces one of the Koopa shells, but replicating that with a controller would be extremely difficult. For now, a sub-three-minute time appears humanly impossible.
Further Explanations and Credits
For a more detailed look at the game’s code during the wrong warp, watch the video by Retro Game Mechanics Explained. Although it is now slightly outdated, it was the most vital source of information for this project, and many of the visualizations were based on IsoFrieze’s work. Thanks to IsoFrieze for creating it and helping troubleshoot several issues. KabAudio’s more detailed explanations of the sound glitch and other internal mechanics are available in the video description. Thanks for watching!
Turn your watchlist into a reading routine
Bring your YouTube videos together, read summaries with key passages marked, and explore the full transcript. Save your own highlights with Pro.
Start with 5 free batteries. Each covers up to 30 minutes of a new summary.
New summaries depend on video availability and demand; processing may take time or require retry.