Checking the type of calculator in TI-BASIC

I was looking to make a program in TIBASIC that can evaluate which calculator the code works from without assembly. Since I do not think that there is anything that could receive information from the screen. Here is one piece of code that I came up with:

:ClrDraw :Text(0,0,0 :PxlTest(6,1 

This will have different outputs based on which it was launched. Are there any other tricks of this nature or is there a better way to do this?

+5
source share
2 answers

Great question! The only thing I could think of from my head was the difference in processor speed (or the RAM / ROM difference, but I could not think of a way to test this without assembly). Unfortunately, the TI-83 does not have a built-in clock, but some code like this should be able to tell the difference between the TI-84 and TI-84 SE:

 :startTmr→T :For(I,1,99 :e^9 :End :sub("TI-84+ SE",1,6+3(19>T 
+2
source

Here's a quick and easy way to tell the difference between a TI-84 and a TI-84 CE. Another answer seems to focus on distinguishing between SE and non-SE. Since you approved it (and asked about it a year ago), I don't know if this is useful to you, but here you go.

 : 0β†’Xmin : 1β†’Ξ”X : If Xmax=264 : Disp "TI-84 CE 

Since the CE screens are wider, auto-generation max is set to a higher value (264) than the regular TI-84. You can also install window vars used for something else, and then restore them so that the graph screen is not affected.

+4
source

All Articles