0 Members and 3 Guests are viewing this topic.
Runer, I can't replicate that effect, it just throws a BAD SYMBOL at the 'o' for me as I would expect. What version are you using?
Quote from: DJ Omnimaga on October 25, 2010, 09:11:31 pmIn SourceCoder, I believe that if you type Copy, it recognize it as conj, so such thing may not happen in SourceCoder.The test I just did with SourceCoder disagrees with this. That would prevent you from typing the literal string "Copy" and SourceCoder isn't designed to be an Axe source editor anyways.
In SourceCoder, I believe that if you type Copy, it recognize it as conj, so such thing may not happen in SourceCoder.
What is the max number of labels you can have in a program? Because Runer112 was trying to help me optimize Nostalgia's menu routine and he said he got a ERR:MAX SYMBOLS. Is there anyway around this?
[HEX]->Pic1 .player1[HEX]->Pic2 .player2[HEX]->Pic3 .player3
[HEX]->Pic1 .player1[HEX] .Pic1+8 refers to player2[HEX] .Pic1+16 refers to player3
[hex]→Pic1[hex]→Pic2Pt-On(X,Y, Pic1)Pt-On(X,Y, Pic2)
[hex]→Pic1[hex]Pt-On(X,Y, Pic1)Pt-On(X,Y, Pic1+8)
I wonder if you can use a label as a pointer, like by doing lbl123+64
Quote from: ASHBAD_ALVIN on October 27, 2010, 04:35:46 pmI wonder if you can use a label as a pointer, like by doing lbl123+64You would never reliably be able to do this because future optimizations would mean that the spacing between some labels would change between every version of the parser. This would only work if the entire routine were written with an Asm() command so you would know the length of the subroutine ahead of time.Unfortunately there is no way around the 150 symbol limit to labels, but there are some things you can do to use less labels in general. First of all, if you aren't calling it as a subroutine, you probably don't need it as a label. You can instead use a combination of if's and while's to handle those situations properly (remember, most modern programming languages don't even have a goto command). Another thing, if you have labels that are never used, comment them out becasue they still take up space on the symbol table even if they are never called.
I've recently completed Warrior 2, another big RPG, in Ti-Basic with xLib. The only problem is that I have an 83+ so I cannot send it to the computer and upload it. I've also done several other projects but not any that I am still prowd of.