Re: A83: Re: disp a


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

Re: A83: Re: disp a




True, but _dispHL is annoying in that it always prints five digits.  It 
will print zero as "    0"

If you don't mind killing op "registers":

call _setxxop1 ;put acc. into op1
ld   a,12      ;maximum width of #.  12 is usually fine
call _formReal ;convert the number into printable characters
ld   hl,op3    ;ld hl,place-in-RAM-where-FormReal-put-string
call _puts     ;print the result

I think that should work.

>Date: Sat, 21 Nov 1998 14:17:49 +0100 (CET)
>From: Stefan Lennartsson <stefan@infinity.hemmet.s-hem.chalmers.se>
>To: assembly-83@lists.ticalc.org
>Subject: Re: A83: Re: disp a
>Reply-To: assembly-83@lists.ticalc.org
>
>
>That doesn't display it in 5*7 font
>
>Just put a into hl and use _dispHL
>which will display the number at currow,curcol
>
>/Stefan
>
>On Fri, 20 Nov 1998, Dan E wrote:
>
>> 
>> you can use this code:
>> call    _setxxop1
>> ;ld    a,3                              ;max # of digits, depending, 
you may
>> or may not need it
>> call    _dispop1a
>> 
>> that'll disp a at penrow,pencol in 5x7 font...
>> 
>> 
>> >
>> >Is there a call to display register a in normal 5*7 font?
>> >
>> >From: Chris
>> >(Man in the Moon)
>> >mecad@scv.net
>> >
>> 
>> 
>
>


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com