Quote Originally Posted by jblackann

I am not sure what you meant by using the DIV32 command. Can you please explain more? Thanks.

Josh
That's a simple function of PbP :

PBp does internally the 16x16 multiplication ...

then the result is internally stored into 2 separate WORDS ...but you can't ( normally !!! ) access them nor make another thing without tearing them !!!

A function was implemented, DIV32, that can divide those 2x16 bits by another 16 bits max value

so, first, you do the mult.:
WWRes = W1*W2
and the very next line MUST be
Wres = DIV32 W3

This realizes the Word1*Word2/Word3 operation, despite PbP do not work with more than 16 bits !!!

Just need to use for WWRes an already declared WORD.

For details see $ 4.17.8 page 35 ...

Alain