Hehe, I used to have a problem with zelda OOT also when escaping the castle.. The damn gates of the towers didn't open and made me stuck, sadly enough this was an emulation problem. There was no solution for it and no updated emulator around at that time.
Nice to hear you solved your problem. If something like this happens again I would recommend using a "walktrough" to see if you missed/forgot to do something.