I was wondering if someone could help me. I've started to write my own Atari 2600 game and I'm starting out by working out an algorithm to display the score. So far I've mapped all of the numbers from 0-9 out in consecutive memory using 8 bytes for each number. To display the any number from 0-9 I simply multiply the number by 8 (by bit shifting left 3 times) and then I know where in memory to start drawing the number from. I then loop round for 8 lines loading each line of memory into the background register to draw the number.
This all works great but the problem comes when I want to draw a 2,3 or even 4 digit number. I am having trouble working out how to extract the tens, hundreds, thousands from the number. I need to be able to do this so I can draw each digit using the routine described above. Thanks in advance for any help.














