At the title screen, press Up, Right, Down, Left, Down, Right, Up and "Cheat Activated" will appear. Press the 2 button on controller 2 to enable Invincibility and Infinite Time.
Press Select at the title screen and then enter any of the following locations: