|
Latest Headlines
Online Users
There are a total of 56 users online: 13 members, 22 guests and 21 bots. Members: benryves, builderboy2005, calc84maniac, comicIDIOT, Hyped, KeithJohansen, KermMartian, LordConiupiter, souvik1997, TC01, TheStorm, WhiteValkery, _player1537. Bots: Ask Jeeves (6), Googlebot (2), Yahoo! Slurp (2), EntireWeb (1), Baidu (5), Spinn3r (4), MSN/Bing (1).
RSS Feeds
![[RSS]](/forum/templates/Cemetech6/images/rss.png) News Headlines
![[RSS]](/forum/templates/Cemetech6/images/rss.png) Latest Posts
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
SirCmpwn

Coding Knight

Joined: 06 Feb 2010 Posts: 469 Location: Colorado Springs
|
Posted: 07 Feb 2010 11:30:33 pm Post subject: TI-Basic Debugger |
|
|
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] _________________ -SirCmpwn
My Major Projects:
Mosaic: 60% | KnightOS: 10% | Half Life 2 On-Calc: 20% | Secret Axe Project: 30% |
|
| Back to top |
|
|
rthprog

Expert

Joined: 21 Sep 2007 Posts: 607 Location: relative to where?
|
Posted: 08 Feb 2010 07:43:40 am Post subject: |
|
|
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. |
|
| Back to top |
|
|
SirCmpwn

Coding Knight

Joined: 06 Feb 2010 Posts: 469 Location: Colorado Springs
|
Posted: 08 Feb 2010 08:26:54 am Post subject: |
|
|
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. _________________ -SirCmpwn
My Major Projects:
Mosaic: 60% | KnightOS: 10% | Half Life 2 On-Calc: 20% | Secret Axe Project: 30% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 31776 Location: Earth, Sol, Milky Way
|
Posted: 08 Feb 2010 10:38:12 am Post subject: |
|
|
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.  _________________
 |
|
| Back to top |
|
|
SirCmpwn

Coding Knight

Joined: 06 Feb 2010 Posts: 469 Location: Colorado Springs
|
Posted: 08 Feb 2010 04:44:59 pm Post subject: |
|
|
Why thanks! I put it through the optimizer in SourceCoder and it added a byte >.< 0x5 _________________ -SirCmpwn
My Major Projects:
Mosaic: 60% | KnightOS: 10% | Half Life 2 On-Calc: 20% | Secret Axe Project: 30% |
|
| Back to top |
|
|
|
|
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
|
© Copyright 2000-2010 Cemetech & Kerm Martian :: Page Execution Time: 0.076255 seconds.
|