Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dinhotheone

Pages: 1 ... 22 23 [24] 25 26 ... 28
346
TI-BASIC / Is it possible to Goto a label in a loop?
« on: February 22, 2007, 02:24:00 pm »
the problem with the code you supplied is that when you jump into the loop, the calculator doesn't know it just jumped into the loop. it will continue execution as though it were not in a loop, up untill hte point where it hits the end where it will either error due an end with no structure (if you used a plain if) or (if you used an if-then) it will see the end as the end to the if-then and continue as though nothing happened. too jump into a loop you have to be already in the loop
ie
while condition "again, main game loop"
goto 0
label 1
end
label 0
goto 1

you can only have a plain if for the jump out/in otherwise it will mem leak.
and you must always jump back in.

the only otherway to jump 'into' a loop is to jump to the top of it
ie

label1
while condition
end
goto 1

you can't really tell the complier to remember that there is a start of the loop up above. at least not with basic, you may in asm.

347
TI-BASIC / Is it possible to Goto a label in a loop?
« on: February 22, 2007, 01:30:00 pm »
the only problem there is that if you have alot of subroutines, then your goto-label loops have to repeatedly search through the program passing over the subroutines everytime, in this case a looping structure is far more efficient because it does not have to reread over all the useless code (useless to the os at that time) to get to the label because the start of the looping structure is temporarily stored in the calcs ram. looping structures will pretty much always be faster than label-goto loops but label-goto's are easier to program.

348
TI-BASIC / Is it possible to Goto a label in a loop?
« on: February 22, 2007, 11:58:00 am »
its not really that bad and its the most efficient subroutine method, i just wrote alot because i like to feel smart.
perhaps if you explained why you needed to do this then i could be of more help.

349
TI Z80 / ASM Tutorials
« on: February 22, 2007, 11:05:00 am »
if you complete this i would voulenteer to use it to teach myself asm. sorta like a beta tester. I really want to learn asm at sometime so i think it would be "mutually beneficial" :)smile.gif

350
Gaming Discussion / This thingy suckz in my free time like water!!!!
« on: February 22, 2007, 10:44:00 am »
wow, thats a sick crescent, imagine how much you could sell that to a newby farmer for.

delnar (goto this site, they have the best guides www.silkroadtavern.com though you do have to register with a valid email, i havent gooten any spam from em though)

351
Miscellaneous / Sick Gecko
« on: February 22, 2007, 10:38:00 am »
wow thats like the worst thing that could happen. she died AND it costed 100 dollars... thats real tough.


352
TI Z80 / Space Trader
« on: February 22, 2007, 10:33:00 am »
this looks really cool, i always enjoy trading games
btw i answered you mem leak question if you read this before you check that.

353
TI-BASIC / Is it possible to Goto a label in a loop?
« on: February 22, 2007, 10:30:00 am »
yes, it is. it was discussed in some subroutine question.

what you have to do though is return to the loop everytime. so as not to create a memory leak

ill give you a concept example and a use example
goto 1
label 0
end
label 1
while1
disp "hi"
goto 0
end


this displays hi forever. The reason being the same behind a memory leak. everytime the calc hits a while,repeat,for,if-then (i think thats al of em) the calc keeps track of it in the memory. so when you hit the end, no matter if its before of after the loop, it transports you back to the start of the loop (obviously not for if-then's of if the condition is met...) the way that it is used is in subroutines: the fastest way to find which subroutine you want is using a goto to a label at the top of the program since the compiler starts searching for the label at the top. then for each label, you have an end to transport you back to the start of the main game loop.

ie:

goto 1 "jumps over the subroutines"
label A
do the things that you gota do
end "another end if you used an if-then instead of plain if"
label1
while 1 "main game loop"
if (condition) "if you use if-then for speed then you have to have 2"
goto A ---------   -------------- "end's at the end of the subroutine"
end

this is the best way to do subroutines and does not create a memory leak as long as you are absolutely sure you hit an end for everything.

354
TI 68K / Nanocrisis
« on: February 21, 2007, 03:24:00 pm »
i have a confession, when i read the poll, i chose psionic because psionic is so cool, not because the char looks cooler, im sorry . the spider dude looks the coolest. :oops:embarassed.gif:oops:embarassed.gif:oops:embarassed.gif:oops:embarassed.gif:oops:embarassed.gif

355
Miscellaneous / Why did you choose the username you have...?
« on: February 21, 2007, 03:15:00 pm »
this is actually one of my least original user names... i have like 30 i use because i usually will sign up for some free thingy except mess something up and then they say that i cant make a new one cuz of the same email so i have to make a new email... and although i like kaka more than ronaldinho...kakatheone ends up getting alot of akward questions and banned sometimes plus ronaldinho isnt bad by any stretch. on othersites im jimmothy because i didnt know what the full name of jimmy was in 2nd grade and i called my friend jimmothy. or areign becase the name is sweet. i just made areign up. also majesticle42 on aim. at that time i really wanted majesticle so i had to tack a number on it though i, like curedesu hate the tacking on of useless numbers eg: snowborder, snowborder1, snowborder2,10snowborder01, crap

omfg i've given away all my secret identities!

356
General Calculator Help / help
« on: February 20, 2007, 12:55:00 pm »
my school recently updated thier gay sonic filter/firewall. the result being: i cant visit like any website during the long boredom of programming class (i am done the book). i was wondering if anyone knew how to set up a proxy site and could help me with that or if anyone knew how to bypass a sonic firewall/filter. i have attempted to set up my own proxysite using CGI-proxy but i havent been successful yet...

357
TI Z80 / Space Trader
« on: February 20, 2007, 12:48:00 pm »
that blows.

but anyway, i was just fooling around with pti to see what error you were getting...i think if you clickk the little spark plug thingy (3rd from left) you will be able to send .8xp files. it worked for me

also, way to stay positive after the ram clear. that sorta thing crushes me when i forget to group my WIP

358
Other Calculators / Requesting an ASM program...
« on: February 16, 2007, 12:02:00 pm »
to answer your second question as i have no asm knowledge, i think its people that have an account but are just browsing. like when i used firefox, it wouldnt log me in automatically so i would look around and if i saw something i wanted to post to then i would login and post. unless of course you have to login as a guest. im not 100% if thats not the case.

359
Web Programming and Design / Legend Of Zelda :: Online Experience
« on: February 13, 2007, 09:56:00 am »
naah, bledux said that he hasnt set them up yet, i still have noworking weapon, i just sat outside killing the cuckoos for like an hour with ctl-punch, i'd watch a soccer video, kill the 2 cookus, watch another, kill 2 more... i do -18 to the guards now! 19 more levels to go.

to talk to people in the game just click on the textbox and then type and press enter. it should show up as a txt bubble over your head, theres a list of controlls here :http://rancidmoose.unitedti.org/forum/viewtopic.php?t=313 i like holding shift to run

edit, wow i started my post before elf but he finished first, hes fast, but you do need to be on the same map to get msg's

editedit, i just realized what delnar is asking, you cant talk to the npc's, you can talk to signs by hitting enter though

360
Web Programming and Design / Legend Of Zelda :: Online Experience
« on: February 12, 2007, 03:25:00 pm »
i got some real ugly stuff going on my screen when i tried it, first when i opened it it gave me an error msg saying ???????????????????? with a button saying ????. then when i did it a second time it went through but none of the text displayed saying like requesting user confirmation... i exited there, i didnt wana do anything permanent to my computer.

also, i need someone to loginto zelda so i can pwn em in the arena lol i got bored and levelup to level 3 while watching soccer vids.

Pages: 1 ... 22 23 [24] 25 26 ... 28