S Suraj143 Active Member Oct 28, 2009 #1 I have a small question. After this code what is the value in W? Thanks Code: movlw .10 movwf Data clrf Reference movf Data,W subwf Reference,W ????
I have a small question. After this code what is the value in W? Thanks Code: movlw .10 movwf Data clrf Reference movf Data,W subwf Reference,W ????
P Pommie Well-Known Member Most Helpful Member Oct 28, 2009 #2 It will subtract W from the file and so will do 0-10 = -10 or 246 or 0xf6. Mike. Last edited: Oct 28, 2009
S Suraj143 Active Member Oct 28, 2009 #3 Pommie said: It will subtract W from the file and so will to 0-10 = -10 or 246 or 0xf6. Mike. Click to expand... Totally understood.Thanks mike
Pommie said: It will subtract W from the file and so will to 0-10 = -10 or 246 or 0xf6. Mike. Click to expand... Totally understood.Thanks mike
Mike - K8LH Well-Known Member Oct 28, 2009 #4 Suraj, I think you'll find that taking the time to learn how to use the MPLAB Simulator and "watch" those file values while single stepping through your code might be a good investment. It certainly was for me... Kind regards, Mike
Suraj, I think you'll find that taking the time to learn how to use the MPLAB Simulator and "watch" those file values while single stepping through your code might be a good investment. It certainly was for me... Kind regards, Mike