Changes

Jump to: navigation, search

MOS 6502

35 bytes added, 21:59, 4 September 2024
/* Decimal Mode */
== Decimal Mode ==
On NMOS, when Decimal Mode is on, the ADC and SBC instructions update NF, VF and ZF based on the binary result before the decimal correction is applied. Only CF is updated correctly. On CMOS, all the flags are updated correctly, at the cost of 1 additional cycle.
On NMOS, DF is not defined after RESET. On CMOS, DF is automatically cleared on RESET.
13,173
edits