I am trying to write the code for a Parallel/series/parallel circuit.or in logic terms:
(input1 or input2) and (input3 or input4) = output 1
the code I have written so far,does work,but I have not been able to simplify it so far. please help.
(input1 or input2) and (input3 or input4) = output 1
the code I have written so far,does work,but I have not been able to simplify it so far. please help.
Code:
main:
if pin1=1 or pin2 =1 then let b0=1 else b0=0 endif
if pin3=1 or pin4 =1 then let b1=1 else b1=0 endif
if b0=1 and b1=1 then high 1 else low 1 endif
goto main