|
|
1.1 root 1: link "../ilib/bitops"
2:
3: procedure main()
4: while b1 := bitstring(read()) do {
5: b2 := bitstring(read()) | break
6: write(decimal(b1))
7: write(decimal(b2))
8: write("and=",and(b1,b2))
9: write("not1=",neg(b1))
10: write("not2=",not(b2))
11: write("or=",or(b1,b2))
12: write("exor=",exor(b1,b2))
13: }
14: end
15:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.