3 ms·
There is a story about how BIT sets bit 6 into the overflow flag, and this was documented on a piece of parchment paper in pencil! http://www.6502.org/tutorial
by nicetryguy 5y ago
There is a story about how BIT sets bit 6 into the overflow flag, and this was documented on a piece of parchment paper in pencil!
http://www.6502.org/tutorials/vflag.html http://www.6502.org/tutorials/vflag.html
Either way, every transistor in the processor has been broken down completely, and even recreated in a visual simulation:
http://visual6502.org/ http://visual6502.org/
- masswerk 5y agoThe overflow flag and its intrinsics was quite a mystery for a while. (Related fun fact: There is no such thing as a break flag, it just gets inserted, whenever the the status register is pushed to the stack by an instruction, i.e. by software, as opposed to a hardware interrupt. This is also, why it is commonly shown as 1, because this is the value it would show up with, if there was a PHP or BRK instruction at the given time, which is also: always. But this is really just a virtual state and there is no such flag in the CPU.)