But I never knew you could use those FINANCE vars as... er, well, vars...
:knight:

*
pyro_xp2k
QUOTE |
But I never knew you could use those FINANCE vars as... er, well, vars... |
Well, you can and not only that but Finance Vars are not only faster then normal Vars but faster then Ans as well, which is the reason I use them in anything that needs to have an ubsurly high screen refresh rate.
o.o
that I didnt knew O_O
ok I guess I'll try to use those instead of A and B for character moving then if i make a new game :P
Well they can't be deleted like with A-theta and they take up one extra byte I believe.
you mean, token wise? (as some tokens takes 2 bytes instead of 1)
QuoteBegin-xlibman+Jul 9 2006, 07:26 AM-->QUOTE (xlibman @ Jul 9 2006, 07:26 AM) |
you mean, token wise? (as some tokens takes 2 bytes instead of 1) |
Finance vars.
yeah I know you are talking about those, but when pasting for example "PMT" in a program does it takes 2 bytes instead of 1? Like lowercase letters? Also technically we cant even delete a finance var, as it will be set back to 0 so it will always take space
QUOTE |
yeah I know you are talking about those, but when pasting for example "PMT" in a program does it takes 2 bytes instead of 1? Like lowercase letters? Also technically we cant even delete a finance var, as it will be set back to 0 so it will always take space |
Lets go over the advantages and disadvantages.
Advantages:
-Fastest
Disadvantages:
-Can't use with DeleteVar or for(
-2 bytes rather then one.
So I will say this: it is not always the best choice of variable, but is a nice thing to know that it can be used if needed.
or when running out of real vars
Ok, I finished optimizing it. Is this just a program in M2E? I need to test something, as I think I can save a few more bytes. As of now I got it down about 4xxbytes.
it is a program in metroid II e