Author | Comment |
darksideprogramming Guardian
Posted: 12 Sep 2005 16:24 GMT Total Posts: 1005 | Ok, I've got a couple things...
A) BlakJak is in the process of getting updated, as well as getting graphics added. Yay!
B) I thought about something today, and I realize that I usually answer the questions, not ask them: In If-Then-End statements, enough Goto's can create a memory error. What about Goto's inside of loops? I've never encountered it, but I figured I'd ask if anyone else has...
C) Does anyone have any new ideas for TI Visual BASIC? I can't think of any, save converting it to ASM (which won't happen for quite some time).
D) I'm working on the next tutorial for the newsletter... routing (i.e. Goto, Lbl, etc.)... what is everyone thinking of those?
That's all I've got for now... feedback is appreciated! |
allynfolksjr Administrator
Posted: 12 Sep 2005 19:01 GMT Total Posts: 1892 | All I have to say is: Newsletter tutorials are the bestest. |
lord_bakotl Dragoon Posted: 12 Sep 2005 19:26 GMT Total Posts: 70 | Yes, enough goto's inside a loop without ends will cause you to run out of memory. A simple test program would be: PROGRAM:ABOB :Lbl A :For(X,1,10,1 :Goto A :End
Run that and it will eventually run out of memory. A fix would be to have the label inside a dummy loop or if-then statement, such as
:While 0 :Lbl A :End :For(X,1,10,1 :Goto A :End
seems to work. I tried just having the End right after the label, which is apparently illegal syntax, since the interpreter is looking for legal grammar. Using the while loop to nest the label will take less memory(about 4 bytes) than if you were to use an if-then statement(about 7 bytes) or a for statement(probably even more bytes). [You could also use a "Repeat 1" instead of the "While 0"] |
Lunchbox Carrier
Posted: 12 Sep 2005 21:23 GMT Total Posts: 2007 | @lord_bakotl: Well, the only reason it would give you a syntax error when encountering the above code is if you jumped to Lbl A and the inteerpreter wasn't expecting and End (i.e. you didn't jump from a loop/if-then statement) @DSP: A) Yay! B) Yes, as waspreviously mentioned, anytime you jump out of a block ended by an end statement you will chew up memory thanks to a glaring flaw in the 83x BASIC interpreter. C) Nope, I actually haven't seen the latest TI-VB version yet. D) Love the tutorials, and make sure to mention the potential memory leaks involved with labels. |
TI Freak Probe Posted: 13 Sep 2005 15:34 GMT Total Posts: Edit | In your next tutorial, make sure you mention that you can use While as a router, just have to change the variable values... :) |
threefingeredguy Ghost
Posted: 14 Sep 2005 08:41 GMT Total Posts: 1189 | I like the tutorials and make sure to mention the memory leak problems cause those are the number 1 killer of good games. Even the SiCoDe Lode RUnner had memory leaks.
--- Someone call for an exterminator? |
darksideprogramming Guardian
Posted: 14 Sep 2005 15:58 GMT Total Posts: 1005 | The mem leak issue was addressed in the control methods tutorial, which if memory serves right was the third one.
Also, BlakJak 2 is done, I just need testers now. Anyone interested? |
Lunchbox Carrier
Posted: 14 Sep 2005 21:32 GMT Total Posts: 2007 | Sure, I need a few new games to hog up my 1.4 megs of free archive. Also, I'm sure its part of my duty as a member of DSP to test things.
[Edited by Lunchbox on 15-Sep-05 06:34] |
darksideprogramming Guardian
Posted: 15 Sep 2005 16:45 GMT Total Posts: 1005 | Darn right it is.
Give me a few days and I should be able to send it to you.
Also, L, you got any new stuff? You ain't given me nothin' yet... |
Lunchbox Carrier
Posted: 15 Sep 2005 17:02 GMT Total Posts: 2007 | I'm working, but from about 3 weeks ago until at least november 11th, and possibly as late as december 2nd, I won't have any time really to do my own things due to a combination of football and school. I might be able to make some nifty java applets for you though in computer science class :) . |
darksideprogramming Guardian
Posted: 15 Sep 2005 17:04 GMT Total Posts: 1005 | Alright. Do what you can... |
Lunchbox Carrier
Posted: 15 Sep 2005 20:31 GMT Total Posts: 2007 | I can make an appleet that draws a fish :) . |
darksideprogramming Guardian
Posted: 16 Sep 2005 16:25 GMT Total Posts: 1005 | And the purpose of that would be...? |
Lunchbox Carrier
Posted: 16 Sep 2005 21:20 GMT Total Posts: 2007 | It looks cool. And now it moves across the screen :D . |