Nintendo Game

Need the title to a Nintendo game from the late eighties/early nineties?
The was a first player RPG game for Nintendo, I don’t remember much but a lot of the game took place in a cavern, you had to solve riddles and puzzles in order to advance, does anyone recall this game or what the title might be?
there were no battles in this game, it was a lot like Myst, you had to answer questions, solve riddles and in order to advance you and to find items
Sounds a lot like ShadowGate or its sequel Uninvited
CGR Undertow – MORTAL KOMBAT: ARMAGEDDON for Nintendo Wii Video Game Review