Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hi
happy New yea All.
As per the attached picture, I pointed out in red cycle
that is Destination. so Destination can be W or F but in table sows only F
please guide me
but ADDWF can be destination W or F as per my picture it is only F
Have a look at my attachment.
Does that help explain it?
JimB
That is because d can be either W or F. You are confusing two different things together.
The f in your original picture (i.e. ADDWF f, d) is for the register (or file) that is going to be operated on and can be a value between 0 and 0x7F. The d is the destination, which can be 0 or 1. If it is 0 the result is stored back in W, if it is 1 the result is stored back to the register you oprate on (i.e. the 0 - 0x7F).
In the datasheet 'f' is used to describe two different things.
In the processor header w and f are defined to 0 and 1 respectively to make assembly writing easier. It's easier to see what "addwf porta, w" does as opposed to "addwf porta, 0".