There are analyses of the 6502 ALU... I can't presently find the exact one I want. But happy to help answer your questions
for example
http://6502.org/users/dieter/a2/a2_0.htm
particularly
http://6502.org/users/dieter/a2/a2_8.htm
and others nearby
http://6502.org/users/dieter
links in this forum post might be helpful
http://forum.6502.org/viewtopic.php?t=3152
there's another wiki resurrection here
https://www.nesdev.org/wiki/Visual6502wiki
the patent might be handy
https://www.jmargolin.com/patents/3991307.pdf
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.