[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 6502 illegal opcodes questions



Scott Hemphill wrote:
I'm still not quite happy with some ugly details that I haven't seen
documented too well:

1.) Operation of ARR ($6B) when the decimal flag is SET.

2.) Exact operation of decimal mode ADC and SBC in both the 6502 and
the 65C02.

I have C code which emulates ADC and SBC for the 65C02 for all values of
the argments and flags.

Thanks Scott! I've copied the algorithm from VICE for now, but that is of course NMOS 6502 only, since Commodore never switched to the 65C02 chips for their own computers. Thus I am very interested in your code for better coverage of 65C02. Would you mind posting it here or mailing it to me? My From address is valid.

All the Best,
--
Linards Ticmanis