ON 20090928@6:06:50 PM at page: On a web page you were interested in at: http://www.piclist.com/microchip/math/mul/8x8.htm#40084.6969444444 James Newton[JMN-EFP-786] Published and replied to post 40084.6969444444 by jb79_ATT_gmx_DOTT_at |Insert 'As the documentation says, the output is save in PRODHI:PRODLO. You decide what those labels point to by assigning the labels values in your code.' at: '' jb79_ATT_gmx_DOTT_at asks:
The destination (where the values are stored) are missing in Andrew Warren's multiplication script, MPLAB told me during the compilation that it will use the default destinations. Is this correct or can anybody tell me the correct destinations (f or w) for all the script lines where a destination should be inserted to specify where the calculation output should be saved?

Thanks for your help
|Delete 'P-' before: '' but after: '' jb79_ATT_gmx_DOTT_at
Hello James!
Thanks for the reply, I know about the fact where the result of the multiplication will be stored.
Sorry that my question was not well formulated, so I try again. Some instuctions for the PIC microprocessor like ADDWF need a destination, normally the W register or the register where the value comes from. So the full syntax of this command would be ADDWF PRODHI,0 when the result of the calculation should be stored in the W register or ADDWF PRODHI,1 if the result should overwrite the old value stored in the PRODHI register. That's what my question is about, this destination is missing in the code example from Andrew Warren and my compiler (MPLAB/MPLINK) told me that the default destination was used, maybe this is wrong and so the calcualtion wouldn't work.
|Delete 'P-' before: '' but after: 'jb79_ATT_gmx_DOTT_at
Hello again!
The code works with the destination "f", I also did some tests, it seems the default destination is everytime the register itself, the W register is never changed by instructions with missing destination.
So we can say (for example): "RRF registername,1" is eqal to "RRF registername" and also "RRF registername,f", the only thing is that some compilers/linkers don't like the shorter instruction code and produce an information message.

Thanks again for your help.
|Delete 'P-' before: '' but after: '