Enter the following codes in the title screen for the desired effect:

Invincibility: 
Up, Down, Down, B, A, A, X, Down, Up, Left, B.