wow it's been a while since I posted about this! but I've finally found the movie, looks like it's a obscure reference:
of course you don't need to watch the full movie -- just skip to the final 10 minutes. You will find everything in there: the dungeon, the palace, the court, the knitting lady... even the guillotine! Dorsalis was indeed "inspired" by this movie!