'Divide multi-byte number
If I only have a routine to divide two (unsigned) bytes, how can I divide a two-byte number by a one-byte number (both unsigned)?
The divisor is always 10, if that helps (which I know may mean there is a clever multiply-and-shift approach to this), but I'm also interested in a general method.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
