A85: Re: Assembly-85 Digest V1 #526
[Prev][Next][Index][Thread]
A85: Re: Assembly-85 Digest V1 #526
dines, you're awesome, but i still don't get how to save the numbers. can
you give me some more examples? like:
250.435
1.009
3.452
234.432
345.435
...
...
...
23.12
i just need a bunch of examples so i know how to store the numbers. i'm
going to be storing the molar masses of elements. can you use some of those
values and show me? thanks a ton. i'm kinda getting it. thanks.
jimi
<<<Date: Mon, 22 Mar 1999 02:06:41 -0500
From: "Dines Justesen" <dines@resnet.gatech.edu>
Subject: A85: FP Math (was: Re: Re: Assembly-85 Digest V1 #522)
As far as I know the only working FP math program for the TI85 is a program
which converts the value in ans to a fraction using square roots. The
program was written by a french guy (I do not remember his name and he is as
far as I know no longer an active ti85 programer), and it is based on a
proram written in BASIC. The program is written for ZShell, but only runs on
ROM version 3.0A since no shell supports the FP math functions. The program
has one small error which causes it to hang, but other wise works fine.
Since it only works for one ROM version, it was never released.
I have myself written some programs on the TI82 which uses FP math and the
error handler. They are fairly simple and are intended to show people how to
use FP math, and they work on all ROM versions. If anyone want to do FP math
on the TI85, I could probably send you a copy of the source code.
Doing FP math is fairly simple if you under stand the format of the FP
number used on the TI85. Let me give an example:
LD A,4 ; OP2 = constant number 4 (PI)
CALL 24D3
CALL 21A3 ; OP1=2.0
CALL E52 ; OP1=OP1*OP2
The above program calculates 2*PI and stores the value in OP1, from where it
can then be displayed. Most of the ROM functions needed can be found in
TI-ROM.TXT. The only thing which you need besides that it the ability to
load your own number into the OPs. The easiest way of doing this is by
defining them in you program, for example:
My_num:
.DB $00,$01,$FC,$10,$00,$00,$00,$00,$00,$00,$00 ; 10.00
Then the following will load the number into OP1:
LD HL,My_num ; point to number
RST 20 ; load it
Again the needed function are listed in TI-ROM.TX>>>
DINes
Follow-Ups: