Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
22 May, 2013, 02:29:31 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 2 [3] 4 5   Go Down
  Print  
Author Topic: TI-BASIC Q&A - Ask your questions about TI-BASIC!  (Read 3640 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 00:32:08
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1421


Topic starter
Total Post Ratings: +80

View Profile WWW
« Reply #30 on: 09 December, 2011, 03:14:33 »
0

Ok, screen dimentions were wrong
* epic7 adds zstandard
That will work, right?
yes, if you want a 10*10 window. Wink
Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Online Online

Gender: Male
Last Login: Today at 02:28:39
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2166


Total Post Ratings: +118

View Profile
« Reply #31 on: 09 December, 2011, 03:15:30 »
0

I just wan't to keep that game and have it work for historical reasons Tongue
Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   35%         Active
?     C (ndless)   0%        Unconfirmed

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
njaddison
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 15 May, 2013, 02:46:53
Date Registered: 08 November, 2011, 03:56:20
Location: South Carolina(USA)
Posts: 153


Total Post Ratings: -5

View Profile
« Reply #32 on: 09 December, 2011, 03:46:42 »
0

What kind of Ti-Basic are you guys talking about? nspire basic, which I know alot about, or ti-84 basic, which I know almost nothing about?
Logged


NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!


epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Online Online

Gender: Male
Last Login: Today at 02:28:39
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2166


Total Post Ratings: +118

View Profile
« Reply #33 on: 09 December, 2011, 03:47:10 »
0

83 and 84 basic
« Last Edit: 09 December, 2011, 03:48:31 by epic7 » Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   35%         Active
?     C (ndless)   0%        Unconfirmed

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 00:32:08
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1421


Topic starter
Total Post Ratings: +80

View Profile WWW
« Reply #34 on: 09 December, 2011, 03:47:23 »
0

What kind of Ti-Basic are you guys talking about? nspire basic, which I know alot about, or ti-84 basic, which I know almost nothing about?
yes, the latter. (83 BASIC) Smiley

EDIT: ninja'd! and lost the game! Get Ninja'd
« Last Edit: 09 December, 2011, 03:48:05 by parser padwan » Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Online Online

Gender: Male
Last Login: Today at 02:28:39
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2166


Total Post Ratings: +118

View Profile
« Reply #35 on: 09 December, 2011, 03:47:51 »
0

Ninja'd Get Ninja'd

I think there's an nspire basic somewhere though.
« Last Edit: 09 December, 2011, 03:48:07 by epic7 » Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   35%         Active
?     C (ndless)   0%        Unconfirmed

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
CVSoft
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 15 May, 2013, 06:24:14
Date Registered: 10 November, 2011, 04:26:49
Location: California
Posts: 28


Total Post Ratings: +1

View Profile WWW
« Reply #36 on: 03 January, 2012, 06:54:25 »
0

I'm reworking my Windows 85/86 program, and would like to know if there is any way to shrink this code:


1
2
3
4
5
6
7
0→x
Repeat x
getKey→x
End
If x≠[a getKey value]
Goto [label]

Is it possible? How would this be done?
It was originally TI-85 code, but it works (and preferably needs to work) from TI-82 to TI-86.
« Last Edit: 03 January, 2012, 06:58:17 by CVSoft » Logged

Current projects:
Sunθ v3.0 (Solar Position Calculator)
UPhys (Ultimate Physics Program)
--KJ6PSG
parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 00:32:08
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1421


Topic starter
Total Post Ratings: +80

View Profile WWW
« Reply #37 on: 03 January, 2012, 06:55:48 »
0


1
2
3
4
5
Repeat GetKey
End
If Ans≠[a getKey value]
Goto [label]
that should work...

Also Parser that code would not work at all, or at least not do the same thing.  It only checks for a key once, and if there is no key, the loop will go forever.
ah yes, fixed Grin (I think) Tongue
« Last Edit: 03 January, 2012, 07:00:12 by parser padwan » Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
Builderboy
Physics Guru
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Yesterday at 23:45:26
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5642


Total Post Ratings: +589

View Profile
« Reply #38 on: 03 January, 2012, 06:57:01 »
0

I'm reworking my Windows 85/86 program, and would like to know if there is any way to shrink this code:
Try this

1
2
3
4
5
6
Repeat Ans
getKey
End
If Ans≠[a getKey value]
Goto [label]

Also Parser that code would not work at all, or at least not do the same thing.  It only checks for a key once, and if there is no key, the loop will go forever.
« Last Edit: 03 January, 2012, 06:58:32 by Builderboy » Logged

CVSoft
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 15 May, 2013, 06:24:14
Date Registered: 10 November, 2011, 04:26:49
Location: California
Posts: 28


Total Post Ratings: +1

View Profile WWW
« Reply #39 on: 04 January, 2012, 01:43:35 »
0

I've forgotten to say that the returned key may need to be stored (many complicated reasons [simulated keypresses over link on 83+]) but that's an easy fix.

Parser: This code only seems to work on the 83 series; it returns 0 for Ans on the 85 series. It is about as small as it gets without starting any contests.

Builderboy: That code works well for the 85/86; I realized the 0→x part was unnecessary as Repeat doesn't test before running.

Thank you both for your help!
« Last Edit: 04 January, 2012, 01:44:14 by CVSoft » Logged

Current projects:
Sunθ v3.0 (Solar Position Calculator)
UPhys (Ultimate Physics Program)
--KJ6PSG
parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 00:32:08
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1421


Topic starter
Total Post Ratings: +80

View Profile WWW
« Reply #40 on: 06 February, 2012, 23:09:33 »
0

I never learned what 'Tangent' and 'sub' do in BASIC. Could someone enlighten me?
« Last Edit: 06 February, 2012, 23:09:54 by parser padwan » Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
Builderboy
Physics Guru
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Yesterday at 23:45:26
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5642


Total Post Ratings: +589

View Profile
« Reply #41 on: 06 February, 2012, 23:15:08 »
0

You should check out TiBasic Developer, they have well documented pages on pretty much every TiBasic command there is!  Just type whatever command you are curious about into the search bar and learn Cheesy
Logged

Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: 19 May, 2013, 19:18:47
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813


Total Post Ratings: +706

View Profile WWW
« Reply #42 on: 06 February, 2012, 23:39:12 »
0

sub returns a substring and is one of the most useful commands there is. Tangent draws a tangent to a curve. As Builderboy suggested, look on TI|BD for usage info (links right in this post Smiley).
Logged




nxtboy III
LV8 Addict (Next: 1000)
********
Offline Offline

Last Login: 15 May, 2013, 02:00:51
Date Registered: 30 March, 2011, 22:57:58
Posts: 784


Total Post Ratings: +23

View Profile WWW
« Reply #43 on: 02 March, 2012, 04:12:36 »
0

I'm a real super super super beginner, but how do you check if a certain key is pressed?
Also are there arrays in BASIC?
Logged

Yeong
Eternally Young Scarlet Moon
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 01:44:48
Date Registered: 15 October, 2010, 04:29:49
Location: Arden, NC
Posts: 3694


Total Post Ratings: +260

View Profile
« Reply #44 on: 02 March, 2012, 04:13:24 »
0

instead of array, we have list (element start from 1, not 0 Evil).
for key check, we use getKey.
Logged

Project Redemption....

My project progresses:HERE
My Pastebin stuffs:HERE
Check your rate: HERE
My Animations: HERE
Spoiler for Images :D:

ノ◕ヮ◕)ノ:・゚ PENGUIN WAVE!!:„ø¤º°¨ ¨°º¤KEEP THE PENGUIN GOING ¸„ø¤º°¨ ¨°º¤øº LETS GO PENGUIN !¤¤º°¨¨°º¤øº¤ø„¸¸ø¤º°¨„ ø¤º°¨¨°º
Pages: 1 2 [3] 4 5   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.244 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.