For a game I'm making I want to put the score in the game on the screen. I can already put numbers on the screen by calling my routine JSR PutA_XY. A is value 0 to 9 and XY are the screen coordinates.
I thought I could look up and find a standard routine that converts $FFFF to 65535 and $0000 to 00000 (and all between) but I could not find one.
What I can remember from the past is that you should count how many times you can subtract 10000, 1000, 100, 10 and 1 from the starting number.
But as said if someone has this code or a link to it, it would save some time programming and debugging