Closed pimlu closed 1 month ago
Interesting. Can you try out this? https://github.com/mre/mos6502/pull/106
I think this is fixed in master
now. Will go out with the next release.
@omarandlorraine, we should add release-plz for automating parts of the release process. It creates pull requests which create new releases automatically when merged. It's pretty much magic. And yes, it checks for breaking changes and respects semver.
I just confirmed this fixes the multiplication routine for all possible inputs - thanks a ton!
Hello, I encountered a program where mos6502 deviates from the behavior I expected from SBC. I was trying to use this table lookup multiply from a "C64 old timer" and found that it worked in masswerk's emulator but not in mos6502. I narrowed it down to this difference in behavior with SBC:
I'm new to 6502 so correct me if this is one of those things that vary depending on 6502 chip bugs, but it looks to me that, since C=1, and all the registers are 0,
A - M - C̅
should result in 0 without any carrying, so afterwards C=1. This is what happens in masswerk's emulator at least.