(clines) is one byte (lines) is one byte I need to create the following math problem: (clines) / (lines) * 32 + 21 clines <= lines <--- always the only problem is, _divHLbyA orounds to nearest integer, so it will always be 0 or 1, considering (clines)/(lines) <1. Please help. Thanks -Joel