NES Emulator for TempleOS
This is a work in progress. Currently, only Mapper #0 games work, and things are buggy. Tested on bare-metal and VirtualBox 6.0, YMMV.
The emulator runs in 320x200 256 color video mode. Since NES display resolution exceeds these boundaries, there is an option to view 1:1 (topmost pixels not visible) or Scale2Fit, which scales the image to the 320x200 viewport, albeit with loss of quality.
CPU is a modified version of fake6502 converted to HolyC.
PPU/MMU is a modified version of NESlig converted to HolyC; SDL function calls replaced with built-in or TOSGame Lib equivalents.
#include "Run";
TempleNES("path_to_rom_file.nes");
-
Mappers
-
Sound
-
GUI Dialog boxes and other menu options
-
Everything else