Re: LZ: A number printing routine


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

Re: LZ: A number printing routine



KEITH T BURZINSKI wrote:
> 
> Does anyone have a routine that will print the value in the
> accumulator as a three-digit number?  (Or am I just stupid?)  It
> needs to be able to print 0 up through 255...  help?
> 
> TIA and Cheers,
> 
> ____
> ~Keith
> FFNP69C@PRODIGY.COM

Yes, the call UNPACK_HL, which loads the ones digit into hl?, or de?, and 
then the next time it loads the tens digit into the byte lower.  These 
will have to be converted to ascii characters before doing D_LM_STR
The routine might be somewhere on ticalc.org, or i could get it out if 
you really need it now.

-- 
Compliments of:
_-_-_-_-_-_-_-_
  Alan Bailey
  mailto:bailala@mw.sisna.com
  IRC:Abalone
  Web:http://www.mw.sisna.com/users/bailala/home.htm


References: