quephird / happiNESs

An attempt at an NES emulator written in Swift
5 stars 0 forks source link

Get blargg's PPU ROM tests passing #66

Closed quephird closed 1 week ago

quephird commented 2 weeks ago

This PR is chock full of small but significant tweaks and bug fixes to get a suite of tests to pass, namely the ppu_vbl_nmi.nes ROM file authored by Shay Green aka blargg. These tests check various aspects of enabling and resetting of the vertical blank flag, as well as the generation and canceling of NMI interrupts. There are many comment blocks spread throughout the codebase that include references to either discussion threads on the relevant topic or even source code on GitHub on which part of my implementation is based.

Some other notable changes made here are: