This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BIT.B statement and JZ/JNZ statement

I have a query on the use of the BIT.B statement and JZ statement.

example :

         BIT.B #SW_ON_OFF,&SW_VAL

         JZ   SW_FUNCT_End

         Assuming #SW_ON_OFF is #0x2 and content of &SW_VAL is 0x10.

         What would be the outcome of BIT.B and how would it affect the JZ statement.

   

**Attention** This is a public forum