mirror of
https://github.com/mre/mos6502.git
synced 2025-02-11 08:30:29 +00:00
- Correct decimal mode subtraction in SBC operation - Implement accurate overflow detection for non-decimal mode - Fix carry flag calculation as inverse of borrow - Add comments explaining complex bit manipulation for overflow detection - Update tests to verify correct behavior in both decimal and non-decimal modes This commit addresses issues with the Subtract with Carry (SBC) operation, ensuring correct behavior in both decimal and non-decimal modes, and improves code readability with added comments.