My changes to FCEUX. From http://sourceforge.net/p/fceultra/