Debug mode in Sonic 3 and Knuckles
While playing sonic 3 and knuckles press Left, Left, Left, Right, Right, Right, Up, Up, Up in the mushroom hill zone, while on one of the pully things. (Just like level select in normal Sonic and Knuckles.) I think you have to do the level select code first.