Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
(I need this for a program, because on the header of the TI-84 Plus CE's screen does not display that unless you do [Mode] or [2nd][Trace]; In this case, it would occur during a getKey loop. To clarify, the program itself is written in Ti-Basic.)

What is the TI-Basic routine, ASM code, ICE source, and C code for a program determining which of those 4 modes the calculator is in?
(Ex. For the "assembly" languages, what code so that each mode represents a number stored into Ans.)

**OS 5.3.0.0037
Doing this in any language other than basic makes zero sense, especially considering the requirement that it must be stored to Ans.

You've given me no reason to want to help you. What is the purpose of having these?
Change in requirement: Either basic or any form of what the TI-84 Plus CE considers "assembly".
This very heavily assumes that all window variables belonging to the current mode are in a crash-free configuration (i.e., Tmin being greater than Tmax would cause it to fail under Param), but it does work after a "Defaults…" reset from the Memory menu, which should be enough for illustrative purposes. I'll think more on this puzzle after posting; maybe we can do more by analyzing which variables are held onto by StoreGDB and ZoomSto.

Code:
:StoreGDB 1
:FnOff
:PlotsOff
:Time
:0→Xmin:1→Xmax
:0→Ymin:1→Ymax
:2→nMin:2→nMax
:1→PlotStart
:1→X:1→R:"0→u
:DispGraph
:Disp
:RecallGDB 1
:X+R→M

M MODE
0 POL
1 PAR
2 FUNC
3 SEQ

--

EDIT: The following works, too (tip-off by MateoConLechuga):

Code:
:StoreGDB 1
:FnOff
:PlotsOff
:rand→Tstep
:Ans→θstep
:Ans→u(nMin)
:ZoomSto
:min((Tstep=ZTstep)+2(θstep=Zθstep)+3(u(nMin)=Zu(nMin)→M
:RecallGDB 1
:Disp M

M: 0,1,2,3 = FUNC,PAR,POL,SEQ
Ty
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement