I've been found out. I guess I can take those pins out of my Rhinoceros doll now. 
While the PBPPICxx.RAM declares the system variables, the PBPPICxx.LIB and PBPPICxx.MAC files are where you'll find out how they are used.
For instance, with the DIV32 command on an 18F part... Open up the PBPPIC18.LIB file and search for DIV32. You'll find this header in front of the code for the DIV32 command.
Code:
;************************************************
;* DIV32 : 31 x 15 divide
;*
;* Input : R0, R2 = 32 bits
;* : R1 + 1, W = divisor
;* Output : R0 = quotient
;* : R2 = remainder
;*
;* Notes : Uses result from MUL.
;************************************************
From that you can see that R2 is the remainder of a DIV32, even though it's not mentioned anywhere in the manual.
Most of the PBP macros have a header showing the input and output variables, but not necessarily all the system variables that are used by that routine. For that you have to digest the code and follow subroutine calls.
As far as I know, there is no list of macro's or the system variables that they use. My guess is that it would create a tech support nightmare for them if they put that kind of stuff in the manual. Can't blame them.
<br>
Bookmarks