On a modern day bike, you remove the ignition side case cover, remove the flywheel (I recommend using a flywheel puller), and remove the stator. Here is a diagram I found on www.dgy.com from the '79 RM 125 (by the way, they list the stator as a $220 part):