Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop the on button from breaking a program in TI-BASIC

Tags:

ti-basic

So I made a TI-BASIC program that fakes the calculator's home screen but gives the wrong answer to math equations on purpose. This is the code:

:ClrHome
:Lbl 1
:Input "",A
:Disp rand
:Goto 1

It works great and all and it's fun to trick friends with it, but I would like to make it more sophisticated. For example:
1) How can I get around the automatic breaking of the program when "ON" is pressed,and
2) Are there any other ways to better fake the home screen (like when someone presses an operation without a number before it, it automatically fakes the 'ANS' variable), and how can I write those in the program.

Thanks in advance.

like image 892
Private Caller Avatar asked Nov 18 '25 08:11

Private Caller


1 Answers

Well to avoid a syntax error by

like when someone presses an operation without a number before it

You can store the input as STR1 instead of A

like image 138
Moshe Goldberg Avatar answered Nov 21 '25 09:11

Moshe Goldberg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!