Recent Forum Posts

Looking for something?

Don't see a match? Post to the community

From categories:
page »

The only form of commenting that is available in TI-Basic looks like this

:line(s) of code
:"comment about line(s) of code

The quotation prevents whatever is there from being executed, but there are two large flaws:

  1. It will modify Ans, replacing it with the comment as a string
  2. Multiple comments can considerably increase the size of program, which is a necessary consideration for any TI-Basic program

I personally avoid comments altogether to keep my programs as small as possible, but a short one hear or there for a complex set of code is not bad.

The solution to a complex problem is often a simple answer.

So the majority of my programming experience is with G code and I’m able to put notes and other things into the body of my code and not have it interfere by putting text within ()’s.

Is there anything at all like that within TI Basic?

Well to be very specific I’m creating a program to calculate ingredient weights using bakers percentage. Essentially what I’m looking to do is have the user enter a menu with a variety of ingredients that have a number associated with them. They will enter that number and then be prompted to enter a percentage to attach to that ingredient. After the user has selected all of their ingredients they will return to the main menu and press a button that will calculate all the weights and display a readout.

Now as far as the strings are related my plan is to use a few strings and the sub( command to display the name of the ingredient in the final readout.

The more I read on matrices the more I see that they’re are the superior strategy in this case given that all the data is already self referencing.

However if you have some advice to offer I would be more than happy to read it, especially given that you spent your free time working on my problem.

I don't see very many pure TI-Basic games for CSE/CE models, so to play something like this was pretty cool (though it turns out, I'm terrible at this game). This is a fun and addictive game, which I recommend to anyone with a CE.

Great game by Myles_ZadokMyles_Zadok, 20 Nov 2017 22:25

I'm referring to the current settings on the calculator. That's all that you can change on the toolbar.

ALP5T2 pgLXa8
Re: 84+CE Questions by BattlesquidBattlesquid, 20 Nov 2017 01:28

By content, what do you mean.

I know that you can change the settings, but how do you change what is displayed on the toolbar?

The one and only LAX18
Website: Link to my Wikidot

Re: 84+CE Questions by LAX18LAX18, 19 Nov 2017 20:39
  1. Content, Yes. Color, no.
  2. Here is startup for the 83/84+. Did some research for CE's, you might be able to use the source in this thread and compile is with spasm, brass, or another z80 assembler (those are the main two though), which should password lock your calculator (requires unlock upon powering on).
  3. DoorsCE is not yet released, but check out Cesium.
  4. Not that I know of. I'll look into this more later.
  5. Yes, check out OnBlock.

ALP5T2 pgLXa8
Re: 84+CE Questions by BattlesquidBattlesquid, 19 Nov 2017 19:16

Okay Thank You!

The one and only LAX18
Website: Link to my Wikidot

Re: 84+CE Questions by LAX18LAX18, 19 Nov 2017 18:51

Okay Thank You!

The one and only LAX18
Website: Link to my Wikidot

Re: 84+CE Questions by LAX18LAX18, 19 Nov 2017 18:51

To answer the new questions:

4. No; still need to use separate Asm('d programs as far as I'm aware
5. I do not believe that exists for any calculator and, if it does, we don't have it documented here.

The solution to a complex problem is often a simple answer.

Re: 84+CE Questions by kg583kg583, 19 Nov 2017 18:36

So I spent the better part of my Saturday fiddling with this and that to solve your problem (because why not, I have a Thanksgiving break for the whole week and can just work on my homework later), and I think I have a thing (just ask). I'm a little confused on what the user input is, though. Is it a bunch of strings, or (as the word "calculate" would imply) some equations for the calculator to solve, or some real numbers?


1: You can change the content of the taskbar by pressing the [MODE] button and adjusting the settings. I have no idea if an assembly program exists that allows you to change the color fo the taskbar, however.

2: I have no idea. Probably not.

3: I think there might be a Doors CE. You should probably ask the people over at Cemetech to confirm that, though.

Re: 84+CE Questions by Myles_ZadokMyles_Zadok, 19 Nov 2017 17:13

I just got a TI 84 + CE and had a few programming questions…

1. Can you change the color of the taskbar and the content on it? If so, what is the assembly or ti basic code?
2. Can you use a app like Start Up Customisation for the TI83+ on a TI84 + CE?
3. Is there a Doors CS for CE yet or is it still in dev.

EDIT: Two more questions….
4. Can you embed hexcodes in a program without having to make another program and execute it?
5. Is there a hexcode to disable the use of the [ON] button?


The one and only LAX18
Website: Link to my Wikidot

84+CE Questions by LAX18LAX18, 19 Nov 2017 16:55

The thing about it is that I go from my main loop and main window to another window where the user selects an option and between the point when they enter the information there's a ClrDraw. But further I don't know how many elements they'll insert and I don't think you can scroll in the graph screen without more lines of code I'm not familiar with yet. Lastly I don't want to immediately display the information until a certain screen and the user prompts the program to calculate and display the variables.

So my idea thus far is to do something using a four lists. One list will hold the variable I'm trying to display, one will denote which substring to display, one will denote the row modifier, and one will be an incrementing list.

Actually now that I think about it a matrix might be better than lists rather than referencing 4 lists I can reference one matrix.

A loop would probably solve your problem for the most part. You might be able to do something like this:

:Repeat (some condition, that, when met, will cause the loop to end)
:(code for input)
:Text(A,B+X // coordinates of the input to be displayed, where the X makes the B coordinate move vertically, creating the effect you want

This code would obviously need some modifications to make it do what you need it to do, but it is at least a start. Hope this helps! :P


So I'm having a hard time thinking my way through this idea and I feel like I might be making it more complex then it needs to be.

Basically what I want to do is have input displayed in the graph screen as text at a specific row and column but I want to do this multiple times within the same column but incrementally go down the rows as the user inputs more information.

Press button
Prompt for input
Display input
Wait for next prompt if any
If more input
Display new input below previous input.

Thats part of the reason I dont want it 100% foolproof, or even 90% foolproof

Re: I cant figure this out by TrenlyTrenly, 17 Nov 2017 01:21

But isn't a part of the fun of a game discovering all of the cheats and secrets that allow you to do stuff you weren't supposed to be able to do?

Re: I cant figure this out by Myles_ZadokMyles_Zadok, 17 Nov 2017 01:09

It's not completely foolproof, I could easily create a save code by hand using a rand that I picked randomly, but if people try to modify the save in the list, I can compare it to the string to see if they changed it. For example, store the savecode into string 8, and the pin into string 9

Lbl L
Med-Med L₂,L₃,Y₁
DelVar L₁(length(Str1)-1)/N→dim(L₁
Output(1,1,"Your Save File
Ouptut(2,1,"Is Corrupted
Output(3,1,"Please enter the
Output(4,1,"Save Data!
Input "ID:", Str8
Input "PIN:", Str9
If L1≠LSAVE:Goto L
Re: I cant figure this out by TrenlyTrenly, 16 Nov 2017 21:11

Oh, anyways, I think it will be fun.

by the way, nice security function.

I think to make it foolproof is that you editlock the program, and add the ONBLOCK assembly program to it, or run it from a different program (Subprogram), so that way, they can't edit it while running the subprog.
I cannot garentee that this is correct.

The real Bio_Hazard1282

page »