Here's the code:
w9=0
main:
inc w9
w10 = w9*559/1150
debug
pause 2000
goto main
The problem:
when w9=117, w10=56 (that's correct)
when w9=118, w10= 0 (should be 57)
What's going on here?
Edit: Ok, I see that 118*559 is larger than 65535 and is over-running the register. I guess I need to...