DIV32 requires certain system variables to have a 32-bit value in them.
They are initialized by a multiplication operation with at least 1 word (the second value can be a constant).
Then a library routine can be executed to do the multiplication.
Part of the optimization of PBP is called "Constant Folding"
If both values in the multiplication are constants ... the compiler multiplies them at "Compile-Time" and uses a single value (a constant).
No multiplication is performed at run-time, and the system variables are never loaded with the 32-bit value.
I've talked about DIV32 and the System vars it uses a few years ago ... http://www.picbasic.co.uk/forum/showthread.php?t=1942
Bookmarks