I don't know what happened. Maybe my N64 glitched really severely, or maybe I have a haunted cartridge like the rumors say.
Either way, I ended up with no sword or shield, and 48 Ocarina of Time's. This was on an original N64 with an original (gold edition) MM cartridge. This wasn't on an emulator, and I don't know jack about modding N64 games.