Also, the V flag (overflow) tells if the sign of the result is wrong, like if you subtract a positive number from a negative one and the answer is so negative that the high bit (sign bit) is again clear. There's an article on the V flag at
http://6502.org/tutorials/vflag.htmlQuote:
Come to think of it, I'd be shocked to learn that any 6502 code is still being taught in school since as far as I know, nobody uses it anymore in current products.
You might be pleasantly surprised to know that yes, it is being taught in schools, and that the 6502 is being produced in volumes of
hundreds of millions of units per year today, although they're not very visible because the products are things like engine controls instead of desktop computers. The fastest ones are running over 200 MHz. This is according to the IP owner,
Western Design Center, whose main business is licensing IP to manufacturers, rather than selling hardware. It is also my understanding that the 6502 is the
only processor approved for certain life-support equipment, including human-body-implantable.