This may not be as educational as it is impressive:
as the guy says, to write fast and small he has skipped on many aspects of good practice.
But here we go, some videos from "Bisqwit" aka Joel Yliluoma:
"In this tool-assisted education video I create a NES emulator with C++0x. You see me type every line."
After
we have
See also his code and some explanations:
http://bisqwit.iki.fi/jutut/kuvat/progr ... s/nesemu1/There's a discussion on Reddit:
http://www.reddit.com/r/programming/com ... ted_of_an/(Where we discover that he wrote his own DOS editor:
http://bisqwit.iki.fi/src/dos-editor-e- ... -11-23.zip )
He has another NES emulator here:
http://bisqwit.iki.fi/source/nes.html but notes that you probably want a real one.