rynorris / nes

NES emulator written in Rust
MIT License
11 stars 0 forks source link

The Correctness PR #12

Closed rynorris closed 6 years ago

rynorris commented 6 years ago

Finally after many hours I tracked down the bug causing mario to get stuck at x=0 in SMB. In the process of doing so I added:

It turned out the bug was a subtlety in my SBC logic where in one very particular situation the carry flag was set incorrectly.

As a result:

These issues have been plaguing me for days, to realize they were all caused by the same tiny bug is crazy!

codecov-io commented 6 years ago

Codecov Report

Merging #12 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #12   +/-   ##
=======================================
  Coverage   93.32%   93.32%           
=======================================
  Files          38       38           
  Lines        4916     4916           
=======================================
  Hits         4588     4588           
  Misses        328      328
Impacted Files Coverage Δ
src/emulator/cpu/instructions.rs 100% <100%> (ø) :arrow_up:
src/emulator/test/mod.rs 94.73% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b2b6e34...c1b5c75. Read the comment docs.