improving PCE; See the original code in from http://mednafen.sourceforge.net/