Code: Select all
w1 = const / w2
Currently the compiler truncates the const value to a word and does a div16x16 operation, so the result will not be correct.
This will be fixed in the next update, but a simple workaround is to cast the operation to a longword...
Code: Select all
w1 = longword(const/w2)