A86: Re: Displaying numbers


[Prev][Next][Index][Thread]

A86: Re: Displaying numbers




Put A into HL and call UNPACK_HL, which will pull each digit off HL and put
it into A. repeat until HL=0.
There may be an easier way, but that's the way I know how to do it.


>
>This may sound stupid, but how do I display numbers? As a simple
>excercise, I tried to make a counting program. It was to count from 1 to
>100. Instead of numbers, I got characters. It did count, but the output
>was not numbers. I used 'call _putc' to display the output. I don't have
>the original source anymore, as the program has evolved into something
>completly different. Any ideas?
>
>--
>As he atempted to say, "Do you both love pork," In his mangled English,
>it came out, "Do you both have sex with pigs."
>
>
>