mirror of
https://github.com/mre/mos6502.git
synced 2024-12-11 00:52:12 +00:00
2c65fe7e1b
- 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. |
||
---|---|---|
.. | ||
cpu.rs | ||
instruction.rs | ||
lib.rs | ||
memory.rs | ||
registers.rs |