#14729 - LOst? - Mon Jan 12, 2004 1:45 am
Okay, I want to program sprites that show any number, like an extra life counter, or a debug output.
I want one function to show decimal numbers, and one other function that can show hexadecimal numbers.
I have the numbers and the sprites set up already, so what should I do to output a integer number on screen?
I could have done this easy if the Gameboy had faster modulo calculation. But it hasn't, so anyone's willing to help me out?
And please, I can't program inline assembler because of my easy compiler settings, so no dtoa, itoa with assembler in it :P
I want one function to show decimal numbers, and one other function that can show hexadecimal numbers.
I have the numbers and the sprites set up already, so what should I do to output a integer number on screen?
I could have done this easy if the Gameboy had faster modulo calculation. But it hasn't, so anyone's willing to help me out?
And please, I can't program inline assembler because of my easy compiler settings, so no dtoa, itoa with assembler in it :P