Trinexx

Trinexx is the boss of Turtle Rock in A Link to the Past and the last dungeon in Ancient Stone Tablets. Its name may be derived from the prefix "tri-" meaning three, and the word "necks," alluding to its three heads. Its first form is a stone turtle with two additional heads protruding from its shell on either side. These extra heads are elemental; the red one spouts flame and the blue one breathes frost.

Strategy
In order to defeat Trinexx, Link must use the Fire Rod on the blue head and the Ice Rod on the red head to stun them. Because of this, it is recommended to bring blue or green potions. After stunning the heads, Link can attack them with the sword to destroy them. It is prudent to destroy the ice head first, as its breath creates a streak of ice across the floor which will cause the hero to lose traction. While attacking, Link must dodge its main head which lashes out at him. After both extra heads are gone, Trinexx then withdraws into itself and its shell will explode, before emerging in a giant snake-like form with a glowing orb in the center of its body. In this form, Trinexx attacks Link directly with its body. To finish the boss, Link must strike the orb three times. Once Trinexx is defeated, Link receives another Heart Container and the crystal containing Princess Zelda.

A Link to the Past comic
In the A Link to the Past comic, the monster fought in Turtle Rock is a three-headed dragon with a grey head, a red head that breathes fire and a blue head that breathes ice. Though the three heads and their powers are a reference to the game's boss, the dragon is never called Trinexx. When Link arrives to Turtle Rock to rescue Princess Zelda, he is attacked by a Trinexx. However, Roam, who had been following Link, arrives just in time to save the young hero from one of the dragon head's attacks. Roam and Link cut off the dragon's ice head, causing its ice and fire to mix and eventually explode.

A Link to the Past manga
In the A Link to the Past manga, Agahnim kidnaps Link's companion Ghanti on their way to Turtle Rock, and takes her to Ganon's Tower. There, he uses his magic and her negative emotions to transform her into Trinexx, who he unleashes on the hero when he arrives at Turtle Rock. . The monster fails to follow Agahnim's commands correctly however, and Link defeats the monster easily. Only after striking it down does Ghanti return to her true form, battered and badly wounded. Enraged at Agahnim's trickery, Link begins to turn into a beast by letting his emotions get out of control and loses the ability to wield the Master Sword, as was Agahnim's plan all along. The transformation is halted however by Zelda, who breaks free of her Crystal prison by herself. Ghanti is then healed by the enchanted Apple Link had been carrying.

Trivia

 * Turtle Head, the mini-boss of the Turtle Rock in Link's Awakening, is very similar to Trinexx and was likely inspired by it.
 * In the A Link to the Past comic, the monster Link fights in Turtle Rock is a three-headed dragon, though its body is never shown. As with Trinexx, one of its three heads breaths fire and another breaths ice, but the dragon is never actually called "Trinexx".