1
0
mirror of https://github.com/mre/mos6502.git synced 2024-12-11 00:52:12 +00:00
mre-mos6502/src
Matthias 2c65fe7e1b Fix SBC implementation and improve overflow detection
- 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.
2024-10-18 21:01:06 +02:00
..
cpu.rs Fix SBC implementation and improve overflow detection 2024-10-18 21:01:06 +02:00
instruction.rs impl Default for the Variant types 2024-09-26 09:04:18 +02:00
lib.rs #[allow(clippy::needless_doctest_main)] 2024-07-29 13:13:07 +02:00
memory.rs Code Cleanup (#97) 2024-04-27 19:51:39 +01:00
registers.rs Code Cleanup (#97) 2024-04-27 19:51:39 +01:00