11 lines
200 B
Plaintext
Executable File
11 lines
200 B
Plaintext
Executable File
CHIP Xor {
|
|
IN a, b;
|
|
OUT out;
|
|
|
|
PARTS:
|
|
Not(in=a,out=nota);
|
|
Not(in=b,out=notb);
|
|
And(a=a,b=notb,out=aAndnotb);
|
|
And(a=nota,b=b,out=notaAndb);
|
|
Or(a=aAndnotb,b=notaAndb,out=out);
|
|
} |