Blogger

Delete comment from: Ken Shirriff's blog

Ken Shirriff said...

Paulo: SBC takes the ones complement and adds the carry. If the carry is 1, this is the same as the twos complement. If the carry is 0, this is the same as twos complement with borrow. The tricky part here is the carry is used as an inverted borrow flag.

Bayle: you're right; that's a typo.

Sep 21, 2016, 11:01:23 AM


Posted to The 6502 overflow flag explained mathematically

Google apps
Main menu