DOH!
I knew there was something I wasnt thinking of...
The key was right shifting the $FFFF. If anyone else is following this, here is the final formula I came up with and it works perfectly.
GraphVal = $FFFF >> (16 - (X / ((GraphMax - GraphMin) / 16)))
This is for auto guages so the scale of the graph can swing. For instance, a fuel level gauge might read 0 to 16 galons, where a water temp guage might read 180° - 290°, so it was important to note that the bottom number might change as well as the top.
Bookmarks