Closed dirkwhoffmann closed 3 years ago
According to Graham:
Example to Z: SED CLC LDA #$80 ADC #$80 ... results in A=$60, but the Z flag is 1.
Somit passt es also, nur die Doku im Source stimmt nicht ganz. ;)
Just to make sure we're on the same page: You are saying the code is fine, but the comments are wrong?
I am asking, because I did run all CPU related VICE tests and they all pass. However, I am not sure if the VICE tests cover this specific feature at all. Do you happen to know a small test program (D64 or PRG) that can be used to check this particular CPU feature?
...perhaps something can be found here: https://stardot.org.uk/forums/viewtopic.php?t=8793
Or: http://www.zimmers.net/anonftp/pub/cbm/documents/chipdata/64doc 64doc contains an exhaustive test for BCD mode, by Marko Mäkelä. The document was originally created by Jouko Valta and/or John West.
_
https://github.com/Klaus2m5/6502_65C02_functional_tests http://www.softwolves.com/arkiv/cbm-hackers/7/7114.html
Just to make sure we're on the same page: You are saying the code is fine, but the comments are wrong?
This is just regarding the PLA opcode, not the BCD issue. There was to much of my initial comment copied in. ;)
OK, just double checked the code with a small Turbo Assembler program. We're all good:
This was posted in a German C64 forum. I quote it here so it won't be forgotten: