Author Topic: Undocumented BASIC tricks (TI83/84 series)  (Read 19146 times)

0 Members and 2 Guests are viewing this topic.

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
Undocumented BASIC tricks (TI83/84 series)
« Reply #15 on: April 28, 2006, 03:30:00 pm »
QuoteBegin-Radical Pi+Apr 28 2006, 04:24 PM-->
QUOTE (Radical Pi @ Apr 28 2006, 04:24 PM)
The fifth argument can also be a variable, useful in Paint programs with eraser mode...  

 Yeah, I have save quite a few bytes this way :D

It is in the 83+ manual (line routine).

g28401

  • Guest
Undocumented BASIC tricks (TI83/84 series)
« Reply #16 on: April 28, 2006, 05:28:00 pm »
I fixed DDR, (but not on my website yet) to not have Goto's inside an If Then loop.  ya!

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
Undocumented BASIC tricks (TI83/84 series)
« Reply #17 on: April 28, 2006, 05:48:00 pm »
QuoteBegin-g28401+Apr 28 2006, 11:28 PM-->
QUOTE (g28401 @ Apr 28 2006, 11:28 PM)
I fixed DDR, (but not on my website yet) to not have Goto's inside an If Then loop.  ya!  

 Great, but why did you say it in here? ;)wink.gif

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Undocumented BASIC tricks (TI83/84 series)
« Reply #18 on: April 29, 2006, 01:33:00 am »
it was goto/lbl talk as well kala :/

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Undocumented BASIC tricks (TI83/84 series)
« Reply #19 on: April 29, 2006, 01:46:00 am »
QuoteBegin-crzyrbl+Apr 29 2006, 02:06 AM-->
QUOTE (crzyrbl @ Apr 29 2006, 02:06 AM)
QuoteBegin-tifreak8x+Apr 24 2006, 07:09 AM-->
QUOTE (tifreak8x @ Apr 24 2006, 07:09 AM)
http://s4.invisionfree.com/TIFreakware/index.php?showforum=60

That is all that needs to be said. 8)

*reads Definition of memory errors

uh oh, does recursion really cause a memory leak?  

 Everything listed in there is stuff that I have experienced to get a memory error. So yes, I guess it does. :)smile.gif
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
Undocumented BASIC tricks (TI83/84 series)
« Reply #20 on: April 29, 2006, 04:30:00 am »
QuoteBegin-xlibman+Apr 29 2006, 07:33 AM-->
QUOTE (xlibman @ Apr 29 2006, 07:33 AM)
it was goto/lbl talk as well kala :/  

 Sorry lol, I just didn't see it I guess >.>

Risen Phoenix

  • Guest
Undocumented BASIC tricks (TI83/84 series)
« Reply #21 on: June 07, 2006, 11:22:00 am »
Good teacher protection code
c1-->
CODE
ec1
:ClrHome
:1X
:While X
:Input "",Str1
:If Str1="DONE
:0X
:Disp expr(Str1
:Endc2
ec2
It's not optomized, but it can be used in programs to solve problems as if it was the homescreen. (to some extent) :)smile.gif

Offline Radical Pi

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1143
  • Rating: +5/-2
    • View Profile
    • RealityRevolution
Undocumented BASIC tricks (TI83/84 series)
« Reply #22 on: June 07, 2006, 11:45:00 am »
While the topic is active again...

I discovered an interesting flaw in the interpreter. It only checks the condition on Repeat at the repeat's End. Thus a program, though memory erroring, like the following would cause no syntax error:

Repeat -----------------+++-++++++++-
One of these days I'll get a sig I'm really proud of.

Dragon__lance

  • Guest
Undocumented BASIC tricks (TI83/84 series)
« Reply #23 on: June 07, 2006, 03:20:00 pm »
that's cool :)smile.gif i have a question though, according to my understanding, the BASIC interpreter converts each line of BASIC code into ASM, checks for errors, and then executes it. If it is like this, can't there be a program that just first automatically converts the BASIC into ASM, thus gaining speed?

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Undocumented BASIC tricks (TI83/84 series)
« Reply #24 on: June 07, 2006, 03:45:00 pm »
Not really, because of the way asm s written and interpreted. And none of the normal variables are easily accessed,  am not sure of the procedure, but you can use only 8 bit and 16 bit registers... To add in asm, you do:

inc a

or something very similar ;)wink.gif I only have a simple understanding of asm...
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline Radical Pi

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1143
  • Rating: +5/-2
    • View Profile
    • RealityRevolution
Undocumented BASIC tricks (TI83/84 series)
« Reply #25 on: June 08, 2006, 08:11:00 am »
The addition term you want would be add, not increment. Let's end any assembly controversy before it begins...

So yeah, I found an interesting glitch in TI-84+(SE) OS v2.30. Could someone confirm it elsewhere?

Good luck trying to take advantage of this undocumented trick. XDsmiley.gif
One of these days I'll get a sig I'm really proud of.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Undocumented BASIC tricks (TI83/84 series)
« Reply #26 on: June 08, 2006, 08:31:00 am »
I know this is not pure basic but more xLIB related but in xlib if you want a non scrolling map engine to run faster you just have to store the map into a picture, and during the walkign loop just recall that picture instead of recalling the map over and over , it run much faster. Only downside: the last sprite row isnt displayed

Dragon__lance

  • Guest
Undocumented BASIC tricks (TI83/84 series)
« Reply #27 on: June 08, 2006, 08:39:00 am »
yep radicalpi, the glitch exists on Ti-83+ black additions :)smile.gif Do u guys know anyway to make a pic store all 64 rows of data?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Undocumented BASIC tricks (TI83/84 series)
« Reply #28 on: June 08, 2006, 08:42:00 am »
in BASIC or using an asm lib, no. xLIB wont even do it :Ptongue.gif

you can use rigview tho

Offline Radical Pi

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1143
  • Rating: +5/-2
    • View Profile
    • RealityRevolution
Undocumented BASIC tricks (TI83/84 series)
« Reply #29 on: June 08, 2006, 08:55:00 am »
I thought you could use xlib to fill in those pixels, and RecallPic would revive those normally unobtainable spots?
One of these days I'll get a sig I'm really proud of.