gianlucag / mos6502

A fast & simple MOS 6502 CPU emulator written in C++
MIT License
286 stars 56 forks source link

fixed (typo?) in Op_SBC, it now passes Klaus Dormann's actual test suite #1

Closed Dennis1000 closed 7 years ago

Dennis1000 commented 7 years ago

the decimal subtraction didn't pass Klaus' tests and Bruce Clark's test neither:

sed ; Decimal mode (BCD subtraction: 12 - 21) sec lda #$12 sbc #$21

expected after this instruction, C = 0, A = $91 but A was $EB (or something).

Looks like a typo.

gianlucag commented 7 years ago

great! thanks