Question: Which of the following choices is true about the following code REG EQU 10H CO1 EQU 20H CO2 EQU 30H SETF TRISB CLRF CO1

Which of the following choices is true about the following code REG 

Which of the following choices is true about the following code REG EQU 10H CO1 EQU 20H CO2 EQU 30H SETF TRISB CLRF CO1 MOVLW 08H MOVWF CO2 MOVFF PORTB,REG AGAIN RLCF REG BC NEXT INCF CO1 NEXT DECF CO2 BNZ AGAIN O a. It counts number of "0" bits in REG O b. It counts number of odd numbers read from PORTB O . It counts number of "1" bits in REG O d. All other answers are wrong O e. It counts number of even numbers read from PORTB

Step by Step Solution

3.39 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Because it wi... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Engineering Questions!