First page Back Continue Last page Overview Graphics

Checking Bits using Logic Instructions


The BIT instructions are useful when performing several tests in succession, since the original value in the register will not be modified. If the AND instruction was used in the above example, register A would have to be reloaded after each of the tests.