That would work, but that kind of division in PBP would take up a lot more processing time than the IF...THEN statements above.I'm sure that SELECT CASE could be used, or LOOKDOWN (or should it be LOOKUP?), depending on the strategy, and maybe more effectively than IF...THENs. In all of those cases, though, it still looks like a bulky approach. I'm still not convinced that the single 16-bit division isn't going to be not only simpler but faster.My question is: Why would doing that single division take longer than going through multiple IF...THEN statements (40-something of them in the example) until one is found where the condition is satisfied?
Thanks to whomever clarifies this for me!
Any thoughts? Is this one of those balancing acts between compact code and speed of operation?
Scott, how often do you need to update the display with new information?





Bookmarks