[1] https://www.youtube.com/playlist?list=PLP2yfE2-FXdQBRpnZbcOb...
Smolnes: A NES emulator in less than 5000 significant bytes of C++
11–20 of 26 posts
Re: Smolnes: A NES emulator in less than 5000 significant bytes of C++
#12you got me, though using SDL doesn't seem quite as fair if you use that title :P nice work though. I have been writing a compile-eval NES emulator in multiple languages, C++, Rust and such, it was a lot of fun. Still haven't managed to get it working with Rust, I still have hope.
The program would still be sitting on top of an OS, unless it was a booter, at which point it would be sitting on top of device firmware, which sits on top of specialized hardware. SDL is about as generic a library as it gets when it comes to game development. Compare all of the companies that get credit for making their own first-person shooters, when all they had to rely on was a first-person shooter engine and a bunch of licensed assets. Scrabbling in the very dirt and clay, they are.
Re: Smolnes: A NES emulator in less than 5000 significant bytes of C++
#13Re: Smolnes: A NES emulator in less than 5000 significant bytes of C++
#14Those who enjoy this might also enjoy "Creating a NES emulator in C++11" [0] [1] [2] while not short in bytes of code(space) there is a nice video series short in minutes(time). Bisqwit takes you on a 30 minute tool assisted coding journey of making an NES emulator and also provides a 15 minute followup Q&A video explaining different aspects. [0] https://www.youtube.com/watch?v=y71lli8MS8s [1] http://youtu.be/XZWw745…
NES emulation is a great low level programming project and the tradition will probably continue for some time.
Re: Smolnes: A NES emulator in less than 5000 significant bytes of C++
#15I did something similar, but couldn’t figure out a clever enough way of resampling the audio from “native” rate down to something that Windows was happy with. What was your strategy?
I'm not sure it's the right technique, but it seems to work pretty well!
Re: Smolnes: A NES emulator in less than 5000 significant bytes of C++
#16Re: Smolnes: A NES emulator in less than 5000 significant bytes of C++
#17IOCCC entry? Tiny emulators seem to appear there semi-regularly, e.g. this one was memorable years ago: https://news.ycombinator.com/item?id=18198374
Re: Smolnes: A NES emulator in less than 5000 significant bytes of C++
#18Re: Smolnes: A NES emulator in less than 5000 significant bytes of C++
#19Those who enjoy this might also enjoy "Creating a NES emulator in C++11" [0] [1] [2] while not short in bytes of code(space) there is a nice video series short in minutes(time). Bisqwit takes you on a 30 minute tool assisted coding journey of making an NES emulator and also provides a 15 minute followup Q&A video explaining different aspects. [0] https://www.youtube.com/watch?v=y71lli8MS8s [1] http://youtu.be/XZWw745…
Re: Smolnes: A NES emulator in less than 5000 significant bytes of C++
#20While reading the code I stumbled upon "case 1 ... 10:” or similar and asked myself how I could have missed this range feature for so many years. It turns out that this is a GCC extension and indeed not part of the language. A list of the C extensions (and C++ extensions) can be found here: https://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/C-Extensions.ht...