Omnimaga

Calculator Community => TI Calculators => General Calculator Help => Topic started by: spud2451 on August 12, 2011, 04:42:04 pm

Title: i need help really badly
Post by: spud2451 on August 12, 2011, 04:42:04 pm
so i'm making a shell and i want to figure out how to make
it list all of my programs but the problem is that i want to make it all in ti basic and xlib

can some one tell me how to do this or at least post a link

 :( :( :( 
Title: Re: i need help really badly
Post by: Ashbad on August 12, 2011, 05:14:48 pm
Well, what type of a shell?  In pure Basic (or even hybrid basic with only xLib), listing programs arbitrarily (so, like external programs like MirageOS or DCS does) will be a problem.  However, if you just want to show things like built in programs, then that's simple.

For the former, I suggest reading a full tutorial about Assembly, since if you're going to make a shell like that you'll need at the very least an intermediate understanding of assembly and how the VAT and OS works at a much lower level than BASIC provides.  If the latter, then you're in business, feel free to ask any BASIC-related questions here.
Title: Re: i need help really badly
Post by: FinaleTI on August 12, 2011, 05:23:45 pm
If you want to go with a Hybrid BASIC approach, I would suggest using Celtic III. It has commands for listing programs and dealing with their content, etc. It also has decent xLib compatibility.
Title: Re: i need help really badly
Post by: spud2451 on August 12, 2011, 05:26:11 pm
i have celtic III but i cant find a good tutorial on it so i don't know
anything about it
Title: Re: i need help really badly
Post by: spud2451 on August 12, 2011, 06:11:57 pm
Can someone please help me find a good tutorial on Celtic III
Title: Re: i need help really badly
Post by: FinaleTI on August 12, 2011, 06:18:03 pm
First, please don't double post. Doing so is against the forum rules.
Quote from: The Rules
4: The only time double-posting is allowed (posting two messages in a row in the same topic) is either if there has been 6 hours since your last post, 3 hours if your thread has been bumped out of the New Posts page, 1 hour if it's a project update or immediately if you need to upload more than 10 file attachments at once. Otherwise, update the last post using the "EDIT" button. It will be marked as unread for all members (altough it won't bump the thread).

What kind of a tutorial are you looking for for Celtic?
The readme provided with the program is fairly comprehensive and should explain the commands. If you have a question about a specific command, try asking for clarification or help with that command.
Title: Re: i need help really badly
Post by: spud2451 on August 12, 2011, 06:27:27 pm
all i need is a general tutorial
Title: Re: i need help really badly
Post by: FinaleTI on August 12, 2011, 06:39:15 pm
In that case, I believe the readme would cover it well. I don't believe there are tutorials made specifically for general Celtic III stuff like there are for xLib. Its usage is similar to xLib's, the major difference is the commands and what they do.
Title: Re: i need help really badly
Post by: spud2451 on August 12, 2011, 06:57:54 pm
thanks
Title: Re: i need help really badly
Post by: spud2451 on August 12, 2011, 08:59:40 pm
 i still need help with something else...

i can make it diplay the programs but
it lists them all on one line

so how can i make it so it displays them
all on different lines

ps. i'm using the det(32 command also known as the GETPROGLIST command
Title: Re: i need help really badly
Post by: FinaleTI on August 12, 2011, 09:20:08 pm
Here's a quick bit of code I whipped up:
Code: [Select]
det(32,"A"->Str1
1->Y
inString(Str1," ",Y)->Z
While Z
Disp sub(Str1,Y,Z-Y
Z+1->Y
inString(Str1," ",Y)->Z
End
Pause
It should list through all the programs in the retrieved search string and display each name on a separate line.
Title: Re: i need help really badly
Post by: spud2451 on August 13, 2011, 07:39:02 am
thanks so much for helping
Title: Re: i need help really badly
Post by: mrmprog on August 13, 2011, 10:32:03 am
If you are interested, I wrote a shell in BASIC a while ago. It used two of Xeda's opcodes to list programs, and execute them with some major string manipulation. It could run archived programs and no shell asm programs. Let me know if you are interested.
Title: Re: i need help really badly
Post by: spud2451 on August 13, 2011, 05:33:30 pm
can any one tell me how to make all the programs show up in a ti basic menu
Title: Re: i need help really badly
Post by: fb39ca4 on August 13, 2011, 06:57:52 pm
You would use the commands in celtic to get the program names, and then use the menu function with the names converted into strings, and you have your menu.
Also, please do not double post, if you have something else to say, modify your latest post and add it in.