Question

If CL contains 01100000 and AL contains 01111001, show the contents of CL after the execution of to following instructions: AND AL, CL & XOR AL, CL

Answer

AND AL, CL

AL: 01111001
CL: 01100000
		01100000 -> result

XOR AL, CL

AL: 01100000
CL: 01100000
		00000000 -> result

AND

A B Result
0 0 1
1 0 0
0 1 0
1 1 1

XOR

A B Result
0 0 0
1 0 1
0 1 1
1 1 0