Coeus wrote:Thanks, Dave, for the link to you fix for Atomulator - that did the trick. It does not work, at least for ADC which is as far as I got, for the 65C02 version of the ADC macro. I am wondering now if that test suite is valid for the 65C02.
I just tested this version of the test suite:https://github.com/hoglet67/AtomSoftwar ... CDTEST.ssd
on my real Master 128, and it auto-detected the 65C02 and the suite passes.
With your sf/bcdfix I get:
So the NMOS 6502 is now passing, but SBC in the CMOS 65C02 is failing.
If you look at the code in B-Em, it seems there are two sets of macros:
- ADC/SBC - for the NMOS 6502, and
- ADCc/SBCc - for the CMOS 65C02
Am I right in thinking you have just patched the first of these?
I've just tried patching the second ones, and the SBC test is getting a bit further, but still fails:
I'll work though this specific case to try to see what's going wrong.