This is exactly what BSNES set out to do. I think it's called Higan now > https://arstechnica.com/gaming/2011/08/accuracy-takes-power-...