Doctor Who: Logopolis (1981) starring Tom Baker, Anthony Ainley, Matthew Waterhouse, Janet Fielding
The Master stows away on the Tardis as the Doctor embarks for Logopolis in search of a new chameleon circuit. Which leads to a final confrontation between the two Time Lords.