Re: A83: two preesing questions


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

Re: A83: two preesing questions




Ted21@aol.com wrote:

> The command you are looking at is _formreal but it only converts an FP number
> to a string.  You need to get the register that you want and convert it into
> a Floating Point number.
>
> ;Example 1 - displaying the value in register b
> ;This assumes you already have a value loaded into b
> ;and that you have already set the penrow and pencol to
> ;their correct positions.  You can display any
> ;register you want, just makes sure to load it into a.
>    ld a,b    ;the number needs to be put into a
>    call _setxxop1    ;move the value to op1
>    call _formreal      ;make op1 a string
>    ld hl,op3     ;the string generated is put into op3
>    call _vputs    ;display it
>
> ;Example 2 - displaying the value in register hl
> ;This assumes the same as the above
>    call _setxxxxop2   ;convert hl into an FP number
>    call _op2toop1     ;move op2 to op1
>    call _formreal      ;make it a string
>    ld hl,op3    ;load the string
>    call _vputs   ;display the string
>
> In a message dated 99-10-16 17:46:38 EDT, you write:
>
> <<  Somewhere there is a function to convert a number into a string. Give that
>  string to _vputs. >>

GREAT! But I still need the answer to the other question.


--
"What, behind the rabbit?"-King Arthur
The Heat Index   Nathang@firstva.com
      http://users.firstva.com/Nathang
 (\\_
o(_;




References: