Quote:
Indeed that seems to be random. The KIM-1 monitor ROM does not clear the decimal flag after reset. A major flaw and number 1 problem for new KIM-1 users in the old days.
In the microprocessor class in 1982 on AIM-65's, we were taught to just initialize the decimal flag at the beginning of anything we did, just as we would not assume the accumulator or X or Y somehow automatically held the exact value we would happen to want first. It was no problem, but later with the 65c02 it was nice to be able to save a byte, and more importantly in ISRs, a couple of clocks, by being able to leave out the CLD.