code improve for emulator.c, don't init nes variable, which will be treated as warning by gcc.
a greate improvement, change cpu & ppu & apu running by pclk, which should be more accurate.