This seems like a more annoying version of Zelda II: The Adventure of Link, possibly with better graphics. It has constant random encounters, and at least in the early game, you lose an encounter by being hit once.
Screenshots marked with 🍒 are created by syltefar and are considered public domain, free to use for anything. If you want to, you can note where you found it and link to this page.