[A83] Re: TI83+ Numerical Input


[Prev][Index][Thread]

[A83] Re: TI83+ Numerical Input




That sounds harder than what I did.  Here is what I did in order to make a
numeric only input that could give you this answer
5(79/8)^3 (and do harder things too.
1.Look for key press
2.See if key is numeric or non
3. If numeric, mult OP1 by 10 then add key value
4. if non-numeric, store OP1 in a veriable (make sure you have ten or more
of these variables, all the same size, right after eachother for easy acces.
	and then store a value relating to the opperater, as the last byte in the
temp var.
5. Clear value of OP1, and start over.
6. If you want them to be able to delete a single char on teh screen, then
every keypess add one to a counter, and store that as the new last byte in
the temp var.

/TEMPVAR
//////////
/NUM DATE/
/        /
/        /
.........
/////////
/Op Val /
//////////
/num char/
/////////

7. To compute it, is where is gets hard (not really though), if you want to
use Order of Opperations.
8. First right down the opperators you will be using (ex. *, /, (, ^) and so
on, in the order they should be looked at.(This helps get a better pic of
what is going on.
9. Then search for that opperator's value, by looking at the address of the
first opp value then adding x to the address to get to the next value.
10. When you find the opperator that you want, perform that opperation, then
store that value in the second temp var, delete (reset teh opp to zero in
the first temp that was used) and continue.
11. For '(' look for the end one and store the number of values between the
() in a reg, and then GOTO 9 untill you have turned the num of variables
between the () to 1.

If it sounds compilated, then read it again, and maybe write it out a little
bit.  It is actually really simple, although maybe a bit mem consuming.
Another option is to simply call a basic program from your app (like one
that has prompt A in it) and then just use that value in your app.


-----Original Message-----
From: assembly-83-bounce@lists.ticalc.org
[mailto:assembly-83-bounce@lists.ticalc.org]On Behalf Of Tijl Coosemans
Sent: Tuesday, July 31, 2001 3:03 PM
To: assembly-83@lists.ticalc.org
Subject: [A83] Re: TI83+ Numerical Input



Indeed, you'll have to make one of your own. If you only need to input
numbers that isn't too hard. If you want to have input like the Basic Input
command on the other hand, you'll have to make an input routine that stores
everything as tokens and then parse that using ParseInp or something.
There's a bit information on it in the Developer Guide Chapter 2


----- Original Message -----
From: "Robert M. Proie Jr." <playnogamz@nls.net>
To: <assembly-83@lists.ticalc.org>
Sent: Tuesday, July 31, 2001 7:00 PM
Subject: [A83] Re: TI83+ Numerical Input


>
> Do you mean as a long string, or just how to register a key press.  If it
is
> a long string, I would recomend writing a routine yourself to do that,
since
> the Ti-83plus doesn't have the input routine that the 83 has.  It would be
> realy easy for numbers.  If you need to be able to input like 3 +
5(79/8)^3
> that might be a little bit trickier, but not impossible.  I used to havce
> one, but I deleted it be accident.
>
> -----Original Message-----
> From: assembly-83-bounce@lists.ticalc.org
> [mailto:assembly-83-bounce@lists.ticalc.org]On Behalf Of Tim Crockford
> Sent: Tuesday, July 31, 2001 4:14 AM
> To: assembly-83@lists.ticalc.org
> Subject: [A83] TI83+ Numerical Input
>
>
>
> It seems that there is plently of tutorials showing how to get input on a
> regular TI-83, but none for the plus.  Anyone got any ideas on how to do
it?
> I'm trying to write a program for Physics to turn into an app, and I need
a
> way to get numerical input from a user.
>
>
>
>
>
>





References: