Hi John, thank you for taking time to help me out!
All is fine, but I think I was not 100% understandable in my wording, forgive me, I'm not a native speaker.
I am at the step
http://6502.org/users/dieter/v_flag/v_4.htm where Dieter says "Problem is, that with ALU chips like the 74181, we don't have access to B'. So we have to build our own B'."
I am actually using 2x '181s, hence I must build my B7'.
For additions, B7' = B7.
For subtractions, B7' = !B7
The point here is that, from Dieter explanation, one could understand that you can simply connect the inputs of the A+B, B-A and A-B overflow detectors to the ALU A7, B7 and Q7 pins, and you will get a functioning overflow alert.
Quote:
"Well, we would need six 4_Input_ANDs, one 6_Input_OR, and three inverters."
Actually, if you built an A+B and A-B overflow detector like this:
Attachment:
(A+B)+(A-B).png [ 95.25 KiB | Viewed 2727 times ]
there will be cases where an overflow is detected, but actually there is no overflow, as I described in my previous post:
... in A - B, the case where
Quote:
MSB of A = 0, B = 0 and Q = 1 is not an Overflow case for a subtraction, but it is for a sum, hence the attached schematic would show that there is an Overflow, even if that's not true.
Please note only 4 ANDs because I am not using B-A.
The misleading (to me, at least, but I understand that American English has some tricks that I don't get the first time I read them) part of the sentence is in bold and underlined,
one 6_Input_OR. This could lead to think that one can simply OR
all the outputs of the A+B and A-B overflow detectors, whereas I believe that some additional gates should be added at the level of each detector to understand if current operation is addiction or subtraction:
Attachment:
(A+B)+(A-B)+sum-sub-check.png [ 72.85 KiB | Viewed 2727 times ]
Did I totally miss the point, or am I on the right path?
Andrea