01-17-2017, 09:43 PM
(2) A>B lamps (3) A<B lamps
ADD: A-IB 2,4 carry Invert(IA-B) 1,3
Invert(A-B) 1,2 A-IB 3,4 carry
SUB: A-B 1,2 B-A 3,4 negative
B-IA 2,4 A-B 1,3 negative
(1)A<IB lamps (4) A>IB lamps
ADD: Invert(IA-B) 1,3 A-IB 2,4 carry
Invert(A-B) 1,2 A-IB 3,4 carry
SUB: A-B 1,2 B-A 3,4 negative
A-B 1,3 negative B-IA 2,4
ADD: A-IB 2,4 carry Invert(IA-B) 1,3
Invert(A-B) 1,2 A-IB 3,4 carry
SUB: A-B 1,2 B-A 3,4 negative
B-IA 2,4 A-B 1,3 negative
(1)A<IB lamps (4) A>IB lamps
ADD: Invert(IA-B) 1,3 A-IB 2,4 carry
Invert(A-B) 1,2 A-IB 3,4 carry
SUB: A-B 1,2 B-A 3,4 negative
A-B 1,3 negative B-IA 2,4