When you have no more lives left, press Start to pause the game, then hold Up, press A, press B, release Up, hold Right, press B, release Right, hold Up, press A, release Up, hold Left, press B, release Left, hold Down, press B twice, release Down, hold Right, and press A.