As the years creep by I remember less and less of the details of this movie. I believe it was Anime. I remember seeing at my elementary school on a projector in the early to mid 80's. It was somewhat of a dark movie. It had a little girl that has some kind of a doll companion. I remember a scene near the end where they are running up the stairs on the outside of a castle and the castle was falling apart under their feet. I remember seening another Jack and the Beanstalk movie and The Last Unicorn around that same time.

Hmmm, sounds like it could be a Unico movie. But both The Fantastic Adventures of Unity and Unico in the Island of Magic have castles that fall apart in the end. But my guess would be the Fantastic Adventure since Katy does do some running around in the castle. The doll my guess would be Beazle.