Uploaded December 2019 | Updated November 2026, 8 hours ago
By using SRM in the Observatory on US, it is possible to patch some of the code used by the scarecrow. Specifically, we can overwrite the lower two bytes of a jump instruction with our angle. This lets us call _any_ function in the game located between 800C0000 and 800FFFFC.
Looking through this range, one of the most intriguing functions to call is func_800E9360, which essentially zeroes out the entire save file, but allows us to keep playing it. The most obvious effect is turning Link into Fierce Deity, but there are several other effects - Tatl is missing, you have 48 ocarinas but no hearts, and the game will crash if you go into South Clock Town or save in any way. This limits what you can do with the null save as FD Link can't use items, and there is no way to return to human or any other form.
This is not strictly speaking _arbitrary_ code execution, but it's not far off either. :-)
Setup:
Break the balloon in the tunnel - doesn't matter how, doesn't matter if you grab any items that drop.
Wait a bit for the balloon explosion particles to despawn.
Load 3 bombchus before entering the observatory room.
Without breaking the other pots, superslide off the center pot. Your angle should be such that the bomb particles do NOT finish despawning before you load the tunnel (almost all angles are fine for this).
Release R to pick up the unloaded pot and return to the observatory room.
Rotate to angle A4D8. One way to do this is with 251 frames of rotating left in ESS position.
Move to a position where your XYZ coordinates won't cause a crash as a side effect, such as where I go in the video. Drop (don't throw) the pot.
Teach the scarecrow a song. It must be a valid scarecrow's song (not all one note, not a real song) or the game will softlock.
Finally, DIE.
------
The script I've been using in these SRM videos has been cleaned up a bit and is now public. You may want to try it out if you're messing around with anything actor heap related.
github.com/MrCheeze/zelda64-heapviz
By using SRM in the Observatory on US, it is possible to patch some of the code used by the scarecrow. Specifically, we can overwrite the lower two bytes of a jump instruction with our angle. This lets us call _any_ function in the game located between 800C0000 and 800FFFFC.
Looking through this range, one of the most intriguing functions to call is func_800E9360, which essentially zeroes out the entire save file, but allows us to keep playing it. The most obvious effect is turning Link into Fierce Deity, but there are several other effects - Tatl is missing, you have 48 ocarinas but no hearts, and the game will crash if you go into South Clock Town or save in any way. This limits what you can do with the null save as FD Link can't use items, and there is no way to return to human or any other form.
This is not strictly speaking _arbitrary_ code execution, but it's not far off either. :-)
Setup:
Break the balloon in the tunnel - doesn't matter how, doesn't matter if you grab any items that drop.
Wait a bit for the balloon explosion particles to despawn.
Load 3 bombchus before entering the observatory room.
Without breaking the other pots, superslide off the center pot. Your angle should be such that the bomb particles do NOT finish despawning before you load the tunnel (almost all angles are fine for this).
Release R to pick up the unloaded pot and return to the observatory room.
Rotate to angle A4D8. One way to do this is with 251 frames of rotating left in ESS position.
Move to a position where your XYZ coordinates won't cause a crash as a side effect, such as where I go in the video. Drop (don't throw) the pot.
Teach the scarecrow a song. It must be a valid scarecrow's song (not all one note, not a real song) or the game will softlock.
Finally, DIE.
------
The script I've been using in these SRM videos has been cleaned up a bit and is now public. You may want to try it out if you're messing around with anything actor heap related.
github.com/MrCheeze/zelda64-heapviz









![steerable airship (minecraft)
summon Minecart ~ ~3 ~ {Riding:{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~ air,Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ activator_rail,Riding:{id:MinecartCommandBlock,Command:setblock ~-1 ~-1 ~ activator_rail,Riding:{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 activator_rail,Riding:{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~-1 activator_rail,Riding:{id:MinecartCommandBlock,Command:setblock ~2 ~-1 ~ glass,Riding:{id:MinecartCommandBlock,Command:setblock ~-2 ~-1 ~ glass,Riding:{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~2 glass,Riding:{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~-2 glass,Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~1 glass,Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~-1 glass,Riding:{id:MinecartCommandBlock,Command:setblock ~-1 ~-1 ~1 glass,Riding:{id:MinecartCommandBlock,Command:setblock ~-1 ~-1 ~-1 glass,Riding:{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~ air,Riding:{id:MinecartCommandBlock,Command:setblock ~2 ~-1 ~1 air,Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~2 air,Riding:{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~3 air,Riding:{id:MinecartCommandBlock,Command:setblock ~-1 ~-1 ~2 air,Riding:{id:MinecartCommandBlock,Command:setblock ~-2 ~-1 ~1 air,Riding:{id:Slime,Size:-3,Invulnerable:1,ActiveEffects:[{Id:14,Duration:999999999,Ambient:1}],Riding:{id:MinecartCommandBlock,Command:setblock ~-3 ~-1 ~ air,Riding:{id:MinecartCommandBlock,Command:setblock ~-2 ~-1 ~-1 air,Riding:{id:MinecartCommandBlock,Command:setblock ~-1 ~-1 ~-2 air,Riding:{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~-3 air,Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~-2 air,Riding:{id:MinecartCommandBlock,Command:setblock ~2 ~-1 ~-1 air,Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~ redstone_block,Riding:{id:MinecartCommandBlock,Command:setblock ~-1 ~-2 ~ redstone_block,Riding:{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~1 redstone_block,Riding:{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~-1 redstone_block,Riding:{id:MinecartCommandBlock,Command:setblock ~2 ~-2 ~ air,Riding:{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~ air,Riding:{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~2 air,Riding:{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~-2 air,Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~1 air,Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~-1 air,Riding:{id:MinecartCommandBlock,Command:setblock ~-1 ~-2 ~1 air,Riding:{id:MinecartCommandBlock,Command:setblock ~-1 ~-2 ~-1 air}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
yeah, sethbling beat me to this with a more complicated design, but I technically recorded this before he uploaded anything so at least theres that?
the main thing that allows this to work is that if you have a stack of minecarts that are all close enough, its possible to control the bottom one from the top cart. I have no idea why, and it might be a glitch, but I highly doubt this is something that will change in the future. up until finding that out, I spent a long time trying to accomplish this by putting a hostile mob that chases you at the bottom of the stack...
the airship can be built arbitrarily large by adding more command blocks, but make sure theres another slime with size -3 for every 18 minecarts, to keep the stack from going up above the rail. steerable airship (minecraft)](https://i.ytimg.com/vi/WOFeaK1nlj0/mqdefault.jpg)
