Get lots of lives

Play a two-player game, and just as your partner is defeated for the last time, simultaneously press A and B. If your timing is perfect, you will receive lots of extra lives. This code is very, very difficult to get to work.