Here's the code for Legend of Zelda, The: Ocarina of Time 1.0 (U) [!]:
D01C84B4 0004
801DB258 0042
Press and hold D-Down to run extremely fast. If you change the "0042" value any higher, it will make you shoot off the screen and freeze the game, change it to "0041" and link won't move much faster than normal speed. I don't have the MQ version on me right now sorry.