Question: Given that w=2, reg2=23,then after executing the following program segment, what will the values in W, reg2(values are in decimal) movlw 21 addwf reg2,1 subwf

Given that w=2, reg2=23,then after executing the following program segment, what will the values in W, reg2(values are in decimal) movlw 21 addwf reg2,1 subwf reg2,0 sublw 02 movwf reg2 O a. W= 19 reg2= 19 b. W= -21 reg2= -21 O = c. W= -1 reg2= -1 d. W= 19 reg2= 23
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
