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:
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]
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]