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 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
Because it wi... View full answer
Get step-by-step solutions from verified subject matter experts
