Hi all,
I'm trying to write a cycle correct 6502 emulator. I compare my results to visual6502 so I can verify my work. However, I found that visual6502 simulates ANC in a different way than it's described in a lot of previous documents. This instruction is called stable, so I'd expect that visual6502 simulates it as described. However, it seems that A doesn't get updated at all (this seems to be incorrect, as ANC should behave almost like AND).
You can check it out with this 2-instruction (LDA #0xff ; ANC #0x00) program:
http://www.visual6502.org/JSSim/expert.html?graphics=f&steps=16&a=0000&d=a9ff0b00&loglevel=5. Here, A remains 0xff, but it should change to 0x00, as far as I understand. And visual6502 doesn't update the flags either. Is this a known thing?
If I change ANC (0x0b) to AND (0x29), A is updated correctly.