Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: Freyaday on March 28, 2011, 05:18:50 pm

Title: Frayed Strings
Post by: Freyaday on March 28, 2011, 05:18:50 pm
I can't get this to work, and I have no idea why.

[30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46]->GDB1
...stuff...
GetCalc("Str1",16)->A
For(N,0,1
For(P,0,15
0->B
For(Q,0,3
If pxl-test(P*4+Q^8+87,P*4+Q/8+46+(N*9
e^(3-Q)+B->B
End
{GDB1+B}->{A+P}
End
End
GetCalc("Str2",16)->A
End

Str1 is fine, Str2 isn't.
Title: Re: Frayed Strings
Post by: Compynerd255 on March 28, 2011, 05:31:25 pm
It's because there is nothing in Str2. After you store the pointer to Str2 in A, you do nothing to it.
Also, what is the data in GDB1? Is it supposed to be in Hex, or Decimal?
Title: Re: Frayed Strings
Post by: SirCmpwn on March 28, 2011, 05:52:45 pm
This looks like a sprite to hex program of some sort, am I right?
Title: Re: Frayed Strings
Post by: Freyaday on March 28, 2011, 06:32:58 pm
It is. I feel kinda silly, but I actually managed to get it working on my own: Axe doesn't seem to like using the same var for multiple GetCalc(s. Oh, and the data in Gdb1 are the bytes for the 0-F