How to clear Yellow Switch Palace in Super Mario World for the Super Nintendo Entertainment System and Game Boy Advance.

How to Clear Yellow Switch Palace in Super Mario World
Make sure not to be holding X or Y when you jump on the P Switch, or you'll just pick it up and carry it around. Jump on the P Switch to make many coins appear, filling the room. Collect as many of the coins as you can before the P Switch effect runs out.
After the coins disappear, go to the right and go through the pipe.
Go to the right until you find a giant Yellow Switch. Jump on it and you will see an explanation of what it does. Press a button to complete the level. You will be asked whether or not to save the game. Now all the yellow Dotted Line Blocks throughout Dinosaur Land will now have Yellow Blocks in them. When you hit a Yellow Block, a Super Mushroom will come out.
After the Level
Now you can go south to go down the ladders, then go to the right, past Yoshi's House, to continue to the next level, Yoshi's Island 2.