joelanders / r6502

Assembler and simulator for the 6502 processor
MIT License
12 stars 3 forks source link

bne looks wrong #10

Open BigEd opened 9 years ago

BigEd commented 9 years ago

Saw your note about the first fail in Klaus' testsuite. I eyeballed the code, and it looks like maybe beq and bne are testing the zero flag in the wrong sense. See lib/r6502/cpu_instructions.rb#L254