Boolean and Comparison Instructions

Click here to view the Answers

AND and OR Instructions

1. Write instructions that jump to a label named Target if bits 0, 1, and 2 in the AL register are all set (the remaining bits are unimportant).

2. Write instructions that will jump to a label named Target if either bit 0, 1, or 2 is set in the AL register (the remaining bits are unimportant).

3. Clear bits 4-6 in the BL register without affecting any other bits.

4. Set bits 3-4 in the CL register without affecting any other bits.