LASooner Posted April 25, 2018 Share Posted April 25, 2018 Other than going through your code by hand to map out paths and loops, does anyone have any tools for analyzing basic code to better visualize it? Perhaps something that takes basic code and generates a flow chart from it? I've looked online and it seems there are tools that do this for C, Python, Java etc, but nothing for good old fashioned Basic code. 1 Quote Link to comment Share on other sites More sharing options...
+arcadeshopper Posted April 25, 2018 Share Posted April 25, 2018 Basic by its nature is chaos and spagetti.. However the only thing I know of for this is TIdBiT – TI BASIC Translator http://codehackcreate.com/archives/237 Quote Link to comment Share on other sites More sharing options...
LASooner Posted April 25, 2018 Author Share Posted April 25, 2018 I program in TIdBit, but I want something that analyzes the flow of a program, to look for dead ends or unused subroutines, maybe identify where the code is checking something too many times in a loop, etc. Quote Link to comment Share on other sites More sharing options...
marc.hull Posted April 25, 2018 Share Posted April 25, 2018 Yes. It's called your brain. It is sometimes hard to use but for TI BASIC it should work just fine. Millenial ? 1 Quote Link to comment Share on other sites More sharing options...
LASooner Posted April 25, 2018 Author Share Posted April 25, 2018 Yes, a 46 year old millennial, thanks for your help. 2 Quote Link to comment Share on other sites More sharing options...
marc.hull Posted April 25, 2018 Share Posted April 25, 2018 Sorry, that was dickish. It's BASIC though and you are asking for the Cliff notes ? Quote Link to comment Share on other sites More sharing options...
Ed in SoDak Posted April 25, 2018 Share Posted April 25, 2018 (edited) On an old disk I have named XB*TOOLS there's a program called REFERENCE. Others I have are CREF, XREF and CROSSREF. Only two use the same number of sectors on the disk, which means at least three of these are different programs with a similar goal. Save your program in Merge and run it through one of these and get a list that may be just what you're looking for. Another XB program called COMPRESS will shorten and squeeze things down in several ways. -Ed Edited April 25, 2018 by Ed in SoDak 3 Quote Link to comment Share on other sites More sharing options...
LASooner Posted April 25, 2018 Author Share Posted April 25, 2018 On an old disk I have named XB*TOOLS there's a program called REFERENCE. Others I have are CREF, XREF and CROSSREF. Only two use the same number of sectors on the disk, which means at least three of these are different programs with a similar goal. Save your program in Merge and run it through one of these and get a list that may be just what you're looking for. Another XB program called COMPRESS will shorten and squeeze things down in several ways. -Ed I think I found the first disk, I'll give it a look http://ftp.whtech.com/emulators/pc99/pc99%20dsk%20collection/Numbered/1900/XB-TOOLS.ZIP thanks! 2 Quote Link to comment Share on other sites More sharing options...
+OLD CS1 Posted April 25, 2018 Share Posted April 25, 2018 That looks handy. Thanks, Ed. I would not mind something to analyze Tidbit source. I have had to go back through and look for orphaned labels. I guess I could modify Matt's original PHP to give a listing of unused labels. Quote Link to comment Share on other sites More sharing options...
Ed in SoDak Posted April 25, 2018 Share Posted April 25, 2018 That disk should fix you up! Reference seems the most full-featured and that same disk has the Compress program as well. Note that Compress, depending on the options you select, can change the "look" as well as size of your program dramatically, so be sure to keep an unmodified copy. -Ed Quote Link to comment Share on other sites More sharing options...
+arcadeshopper Posted April 27, 2018 Share Posted April 27, 2018 thanks for that i was looking for compress in my stuff here and didn't have any easy way to find it in my library Quote Link to comment Share on other sites More sharing options...
Ed in SoDak Posted April 27, 2018 Share Posted April 27, 2018 My copy of REFERENCE is on my floppies which I need to port, but I do have COMPRESS in V9T9. Remove the ".TXT" to use. -Ed COMPRESS.TXT Quote Link to comment Share on other sites More sharing options...
Airshack Posted April 29, 2018 Share Posted April 29, 2018 (edited) Comments deleted. Edited April 30, 2018 by Airshack Quote Link to comment Share on other sites More sharing options...
Airshack Posted April 29, 2018 Share Posted April 29, 2018 (edited) My bad. Edited April 30, 2018 by Airshack Quote Link to comment Share on other sites More sharing options...
marc.hull Posted April 29, 2018 Share Posted April 29, 2018 Airshack. You have a point. It is taken. I was a dick in that reply so let me offer this mulligan with appologies to a displaced Okie. LA. Your question sounded like you were looking for a way to avoid putting in the time and effort required to program. That was the basis for my millenial question. It was ,in my experience, a question a millenial would ask and believe me I have had a lot of experience with that group of retarded, phone worshiping monkeys. My "brain" statement stands as is. There is only one thing that trumps your mental power to solve problems. It's persistance or staying power or tenacity or whatever the hell you want to call it. It can be frustrating and difficult sometimes. A lot like life in general. For pete's sake it's ti BASIC which was purposly designed to be easy and intuative. Do you really need a bunch of time and effort sinking tools. I see that (for right or wrong) as a give up. It's hard and it's suposed to be. Otherwise every forum happy whore (not you) would actually be producing things. Embrace the pain my sooner from another moother (doesn't rhyme I know.) Makes you better in the long run and one of those that actually did something to completion (you have I know and I'm sure you will again.) I'm sorry I said some things that got you butt hurt. I'm a bit abrasive and plain speaking but I don't lie and don't like people giving up or giving in. Stress, fear and pain are wonderful motivators. Use em for all they provide. Quote Link to comment Share on other sites More sharing options...
LASooner Posted April 29, 2018 Author Share Posted April 29, 2018 Why is this thread happening? You said your peace the first time. Got it. There are logic flow analyzers for most every other programming language and I was just asking if anyone (not you specifically) had anything like that for Basic, and that makes me some sort of asshole in your eyes, fine. I really wish Airshack had left it alone. Quote Link to comment Share on other sites More sharing options...
+OLD CS1 Posted April 29, 2018 Share Posted April 29, 2018 Both points are taken and this thread should go back on-topic; anything else should go PM before we attract the eyes of the mods. Quote Link to comment Share on other sites More sharing options...
marc.hull Posted April 30, 2018 Share Posted April 30, 2018 LA, Sorry I offended you. Airshack, I'd rather be a crumudgeon than some feel good Mother Theresa, rescue the world type. But that's just me. Drop your hammer OLD CS1. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.