Sorry for my poor english.
Sound Device Emulator
Emulator
You can download source code from my blog.
Q. Stella is good, why should i need to check yours?
A. Stella is good but a bit too complicated. My emulator has at least 3 advantages(and a lot of weak points).
1. Only single file.
2. No need to compile.
3. Python is much easier to use and debug than C in most cases.
Although my emulator is slow and buggy, it really works on some games.
If you are interested in writing an emulator, maybe it's a little useful for you.
Note that the success version 1 is more easy to read because it has classes, but not single file and has no sound.