Heres the sourcecoder link:
http://www.cemetech.net/projects/basicelite/sourcecoder2.php?xpi=32ea805f0d34470d72aa666e94dae618

All help is wanted and appreciated.

About
This is a debugger for TI-Basic. It will run your TI-Basic code, and will stop at every line that begins with a "*". For instance:

Code:
:Disp "Hello"
:*Disp "World"

The debugger will stop at the second line. From there, you can continue, break, or stop at every line henceforth. If you break you go into the command line. The available commands are:
CONT - this will continue execution of the program
variable=value - this will set Variable (any string, real/complex, or any other variable) to be value.
EXEC command - this will execute the TI-Basic code "command"
EVAL expression - this will evaluate the expression specified as if it were typed into the home screen.
EDIT - this will edit the current line
VIEW - this command shows the current line

How It Works
This software takes the requested program and executes it one line at a time by extracting each line to prgmEXEC and running prgmEXEC. Conditionals (If, For, While, Repeat) will not run in this manner, so they are interpreted.

Questions/Suggestions
Post anything relevant to this forum here and I will do my best to implement/answer it.

Todo
Finish interpreting For( loops
remove S3 dependency

Asm Libraries
These files are available at http://cid-c5fee036bc0d72bd.skydrive.live.com/browse.aspx/Public/TI-Debug?uc=4

ZASSEMB1 is stolen *cough cough* from OTBP Assembler and returns the contents of the program in Ans as as string. Example:

"TEST":Asm(prgmZASSEMB1
Will get the contents of program TEST and store it to Ans
STR2PRGM is from Brandon Wilson's website and stores the contents of Ans to the program in Str7.

S3 is on ticalc and is a subroutine program that will execute the subroutine at the specified label. For example,
"HI":Asm(prgmS3
will execute Lbl HI and return to the point where S3 was run once it encounters "Return" in Lbl HI. I intend to eventually remove this dependency.[/b][url][/url]
Very interesting!
It would be interesting if you used Celtic2 or Celtic3 to search through code to find errors, without having to actually execute the code. That way, it would be possible to find multiple errors in just one run.
Thats a good idea, and I will use that in the Flash App version later on, but it would be very hard to do in TI-Basic. If you think you can make it work, go for it.
Hey, that's pretty useful, nicely done. I took a look at your code, and I must say, you write very attractive code. I could only find one or two lines to optimize. Smile
Why thanks! I put it through the optimizer in SourceCoder and it added a byte >.< lol
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement