Hi Darrel,
I like your ideas about getting at DIV32 system variables, but I have a slightly different situation. How do I use a variable for the divisor that wont violate the 15 bit rule?
I tried the following example, but it don't work (I get: Error Bad expression):
I really need the ability to alter the divisor via program control, and at times it will need to be bigger then an 8-Bit value. Any ideas?Code:divisor var word dummy var word dummy = DIV32 divisor
Thanks,
Edit: Opps! my mistake. It does work properly with a word variable as the divisor, just so long as you stay with the 15 bit rule (32767). This is good news.




Bookmarks