Nestopia is an open source NES/Famicom emulator written in C++. It is designed to emulate the hardware as accurately as possible, without use of any emulation hacks.
Nestopia emulates the NES CPU at cycle-exact granularity, ensuring full support for software that do mid-scanline and other timing trickery.