LDNOT 0.00
OUT TR0
AND 0.01
DIFU(013) 20.00
LD TR0
AND 0.02
DIFU(013) 20.04
LD 20.00
ANDNOT 10.01
ANDNOT 10.02
ANDNOT 10.03
DIFU(013) 20.01
AND 10.01
DIFU(013) 20.02
AND 10.02
DIFU(013) 20.03
LD 20.01
LD 20.04
OR 0.00
KEEP(011) 10.01
LD 20.02
KEEP(011) 10.02
LD 20.03
AND 10.03
KEEP(011) 10.03
END(001)
經測試,完全滿足你的要求,且程式易於理解。
LDNOT 0.00
OUT TR0
AND 0.01
DIFU(013) 20.00
LD TR0
AND 0.02
DIFU(013) 20.04
LD 20.00
OUT TR0
ANDNOT 10.01
ANDNOT 10.02
ANDNOT 10.03
DIFU(013) 20.01
LD TR0
AND 10.01
ANDNOT 10.02
ANDNOT 10.03
DIFU(013) 20.02
LD TR0
AND 10.01
AND 10.02
ANDNOT 10.03
DIFU(013) 20.03
LD 20.01
LD 20.04
AND 10.01
ANDNOT 10.02
ANDNOT 10.03
OR 0.00
KEEP(011) 10.01
LD 20.02
LD 20.04
AND 10.01
AND 10.02
ANDNOT 10.03
OR 0.00
KEEP(011) 10.02
LD 20.03
LD 20.04
AND 10.01
AND 10.02
AND 10.03
OR 0.00
KEEP(011) 10.03
END(001)
經測試,完全滿足你的要求,且程式易於理解。