A82: Re: Decimal numbers


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

A82: Re: Decimal numbers




That's very cool Dines. It'd be even cooler if Ash 3.1 was actually out,
but hey, I guess I can wait =]


On Sat, 30 May 1998 11:29:03 +0200 (METDST) Dines Christy Justesen
<c958362@student.dtu.dk> writes:
>
>The easiest way to store non-integers is to use the OPs and TI's FP
>format. As a part of Ash 3.1 I have written a .h file which allows you 
>to
>use all the math functions listed in 82-ROM.TXT and all the functions
>which uses the OPs. For example to show 2*PI on the screen you would 
>do
>something like this.
>
>LD A,4 ; Get constant number 4 (PI) listed in 82-ROM.TXT)
>ROM_CALL(LD_OP1_CONSTA) 
>ROM_CALL(LD_OP1_2OP1) ; Mul by 2
>LD A,15 ; Number of digits used when dispaying it
>CALL DISPOP1A ; Display it
>
>Using FP numers is not very fast, but it is alot easier than using fix
>point numbers.
>
>Dines
>-----Original Message-----
>From: Kouri Rosenberg <kouri@juno.com>
>To: assembly-82@lists.ticalc.org <assembly-82@lists.ticalc.org>
>Date: 30. maj 1998 10:13
>Subject: A82: Decimal numbers
>
>
>>
>>How would I go about displaying non-whole numbers, such as 3.14, 8.5,
>>etc? And how should I store them? If I have to store 3.14 as 314 and 
>then
>>use UNPACK_HL twice, that means I have to use a word instead of a 
>byte.
>>And if I had a number like 3.1415927, how could I store that? Thanks 
>in
>>advance for any help I can get :)
>>
>>_____________________________________________________________________
>>You don't need to buy Internet access to use free Internet e-mail.
>>Get completely free e-mail from Juno at http://www.juno.com
>>Or call Juno at (800) 654-JUNO [654-5866]
>>
>
>_______________________________________
>
>Dines Justesen
>Email: dines@post1.com or
>       c958362@student.dtu.dk
>WWW  : http://www.gbar.dtu.dk/~c958362/
>_______________________________________
>
>

_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]


References: