Hi
The NES has no BCD mode wich is a usefull feature in the process of binary to decimal convertion. But the games must do it somehow, to display scores, health, items, etc.
How do most games achieve this convertion? That is, if there is a convertion at all, 'couse I was told that some times it is better to do the whole math already in decimal.
The best method I found so far, is to repeatedly subtract 10000s, 1000s, 100s and 10s to get the digits. Does anyone use a better method?
The NES has no BCD mode wich is a usefull feature in the process of binary to decimal convertion. But the games must do it somehow, to display scores, health, items, etc.
How do most games achieve this convertion? That is, if there is a convertion at all, 'couse I was told that some times it is better to do the whole math already in decimal.
The best method I found so far, is to repeatedly subtract 10000s, 1000s, 100s and 10s to get the digits. Does anyone use a better method?