[A83] Re: HL to string


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

[A83] Re: HL to string




So what is the best way to turn a 4 byte long integer into a text string for 
display with VPUTS?  (I currently use a long integer divide routine from 
some Z80 C compiler...)


>From: "Kirk Meyer" <kirk.meyer@colorado.edu>
>Reply-To: assembly-83@lists.ticalc.org
>To: <assembly-83@lists.ticalc.org>
>Subject: [A83] Re: HL to string
>Date: Sat, 7 Jul 2001 20:49:16 -0600
>
>
>Oops. That wasn't an actual code snippet, just to show how it could be 
>done.
>Actually storing the unpacked BCD in the upper nibble seems to have been
>dumb.. it can be done easier in the lower nibble. I thought I would take
>advantage of DAA, but it saves more to take advantage of carry.
>
>In your case using division is probably best, unless you really do need the
>speed. If you don't want to load the bcall address of DivHLby10, then you
>can copy the routine out of the ROM and paste it into your program.
>
>-----Original Message-----
>From: assembly-83-bounce@lists.ticalc.org
>[mailto:assembly-83-bounce@lists.ticalc.org]On Behalf Of Joe Pemberton
>Sent: Saturday, July 07, 2001 8:39 PM
>To: assembly-83@lists.ticalc.org
>Subject: [A83] Re: HL to string
>
>
>
>gah... *confused*
>
>
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com




Follow-Ups: