You could always write a little program to test your supposition and find out , you never know you may learn something
Code:TOUCH var byte A VAR TOUCH.0 B VAR TOUCH.1 RES var byte touch = 4 Debug 9,"XOR TRUTH TABLE" Debug ,13 ,10,"A",9,"B",9,"A^B",9,"CUT",13 ,10 while touch touch=touch-1 touch=~touch ;CODE UNDER TEST IF A = 1 or B = 1 AND A <> B THEN RES=1 ELSE RES=0 ENDIF DEBUG #A,9,#B,9," ",#A^B ,9," ",#RES ,13 ,10 touch=~touch WEND
Bookmarks