@ first ...

could you explain how DIV32 results can be > 16 bits ...

Never seen that for 14 Years I use PBP !

Ok, ...

1) The "Dummy" variable must be < 32768 ... see Manual !

2) IF you use DIV32 ... your program variables only can be < 16 Bits ( 65535 ), obvious, eh ! ( DIV32 doesn't work when LONGS used !!! )

=> soooo, how are you dealing with your supposed 16 -> 32 bits intermediate "results" ???

BTW :
Code:
IF wDummy > 65536 THEN
" another " compiler would have sent you the message
Condition always TRUE
Alain