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 - scottywz

Pages: [1]
1
The Axe Parser Project / Re: Bug Reports
« on: December 02, 2010, 07:11:13 pm »
Hi, I'm writing a program that deals a lot with TI-OS variables, and I'm having a problem.

Code: [Select]
DelVar [04720000]
If GetCalc([01720000],9)->V
 1->{V-2}r
 93->float{V}
End

Assume that Ans in TI-OS contains a string before running this.  In Axe 0.4.5, this code would delete Ans and make a new Ans that is a real-number list with one element.  Ans in TI-OS would actually be a real list.  In Axe 0.4.6, however, Ans is still a string, and the output is weird, but not crashing (as far as I've seen).

2
Axe / Re: Custom lists
« on: October 01, 2010, 11:13:55 am »
Thanks Runer12, that worked.

[015D] is ListObj and the list token because Axe Parser won't insert ListObj otherwise (this wasn't in the documentation I think), and typing the list token didn't work.  Str1RV ended up being redundant because I was trying different things trying to get it to work.

3
Axe / Re: Custom lists
« on: October 01, 2010, 12:34:59 am »
Well the SDK docs said the same thing and my code seems to be using the format correctly (save for the extra null when deleting the variable).  Tried removing the extra null and the variable won't delete.

I hope you can get the code working soon. :)  Good luck! ;D
Welcome to Omnimaga, by the way. :)
Thank you! :)

Edit:  Using L1 ([015D0000]) works twice without a syntax error, then starts writing the wrong value, and then a memory error after around 6-8 times, just like the custom name.

4
Axe / Custom lists
« on: September 30, 2010, 11:38:02 pm »
I'm trying to save a return code to a one element list with a custom name in a subroutine that's called right before exiting.  Simply using GetCalc("LAVLIB",1) doesn't seem to do anything, so I've been manually coding the token name (thanks to the 83+ SDK docs).  [01]"LAVLIB" (coded using Data() and the transpose symbol with a null byte at the end) screws up the symbol table and crashes the calculator, but [015D]"AVLIB" works--the first time. Then I get "ERR:SYNTAX".

Deleting it first didn't seem to work until I added an extra null byte to the end, and even then it acts weird:  it works the first time, then ERR:SYNTAX (but the list got deleted), and then it works again, then it just saves 0 to the only element (even though the correct value, 2, is displayed).

But what's really strange is starting the 4th time(?), as I run it over and over, the free RAM displayed in the Memory menu goes UP, even with the same result, but the list gives an ERR:MEMORY when I try to open it.  Calcsys shows a size of 2080.

This is the code that I'm using:
Code: [Select]
Lbl RET
 Disp r1>Dec
 [015D]->Str0RV
 "AVLIB"
 [00]
 DelVar Srt0RV
 [015D]->Str1RV
 "AVLIB"
 GetCalc(Str1RV,1)->Z
 If Z
  r1->float{Z}
 End
Return

I tried adding the extra null byte when I made the new list and the first time that will work (as in the List menu loads right), but the second time the List menu looks like this:
Code: [Select]
NAMES OPS MATH
1:L1
2:
3:!



and then it's not too hard to do a RAM clear :)

Is this an Axe bug or my error?

Pages: [1]