SuperBASIC: The Manual
()
About this ebook
Do you want to write BASIC programs for your Color Computer, but don’t want to deal with two-character variables and invisible (or non-existent) structure? Consider superBASIC. Use loops, multi-line if/else/endifs, include files, and more. You can even use command-line switches to target the same BASIC program for computers with different hardware.
Jerry Stratton
Jerry Stratton writes at Mimsy Were the Borogoves on politics, technology, and programming for all. He has a Bachelor's degree in Psychology from Cornell University and studied guitar at the Musicians Institute of Technology in Hollywood, California. He has appeared in at least one bad movie from the eighties and participated in at least one ill-fated pre-Internet hypermedia startup.
Read more from Jerry Stratton
42 Astoundingly Useful Scripts and Automations for the Macintosh Rating: 0 out of 5 stars0 ratingsThe Dream of Poor Bazin Rating: 0 out of 5 stars0 ratings
Related to SuperBASIC
Related ebooks
Learn Javascript In 1 Hour Rating: 0 out of 5 stars0 ratingsPHP for Beginners Rating: 0 out of 5 stars0 ratingsRails: Novice to Ninja: Build Your Own Ruby on Rails Website Rating: 4 out of 5 stars4/5More Advanced CSS: Zombie in a Ballgown: Undead Institute Rating: 0 out of 5 stars0 ratingsLearn Programming Using C# Rating: 0 out of 5 stars0 ratingsJavaScript: Best Practices to Programming Code with JavaScript: JavaScript Computer Programming, #3 Rating: 0 out of 5 stars0 ratingsJavascript Concepts: 1St Edition Rating: 0 out of 5 stars0 ratingsWindows Batch File Programming Rating: 2 out of 5 stars2/5Mission Ruby Rating: 0 out of 5 stars0 ratingsJavaScript: Best Practice Rating: 0 out of 5 stars0 ratingsWb Development full course : from zero to web hero Rating: 0 out of 5 stars0 ratingsLearning jQuery Rating: 4 out of 5 stars4/5Progressive web app A Clear and Concise Reference Rating: 0 out of 5 stars0 ratingsMulti-Tier Application Programming with PHP: Practical Guide for Architects and Programmers Rating: 0 out of 5 stars0 ratingsIan Talks JavaScript Libraries and Frameworks A-Z: WebDevAtoZ, #4 Rating: 0 out of 5 stars0 ratingsSvelte: A Beginner's Guide Rating: 0 out of 5 stars0 ratingsResponsive Design High Performance Rating: 0 out of 5 stars0 ratingsLearning jQuery 3 - Fifth Edition Rating: 0 out of 5 stars0 ratingsBeginning DotNetNuke Skinning and Design Rating: 0 out of 5 stars0 ratingsAdobe Flash Professional CC 2015: A Tutorial Approach Rating: 0 out of 5 stars0 ratingsAJAX and PHP: Building Responsive Web Applications Rating: 4 out of 5 stars4/5NW.js Essentials Rating: 0 out of 5 stars0 ratingsCSS Master Rating: 0 out of 5 stars0 ratingsJava Design Patterns for Automation and Performance Rating: 4 out of 5 stars4/5Principles of Programming: Java Level 1 Rating: 0 out of 5 stars0 ratingsHello! Flex 4 Rating: 0 out of 5 stars0 ratingsJavaScript Rating: 0 out of 5 stars0 ratingsMastering PostCSS for Web Design Rating: 0 out of 5 stars0 ratings
Programming For You
Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Python QuickStart Guide: The Simplified Beginner's Guide to Python Programming Using Hands-On Projects and Real-World Applications Rating: 0 out of 5 stars0 ratingsGrokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratingsPython Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Modern C++ for Absolute Beginners: A Friendly Introduction to C++ Programming Language and C++11 to C++20 Standards Rating: 0 out of 5 stars0 ratingsSQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Mastering Windows PowerShell Scripting Rating: 4 out of 5 stars4/5Python Machine Learning By Example Rating: 4 out of 5 stars4/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5Learn JavaScript in 24 Hours Rating: 3 out of 5 stars3/5Hacking: Ultimate Beginner's Guide for Computer Hacking in 2018 and Beyond: Hacking in 2018, #1 Rating: 4 out of 5 stars4/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5Python Essentials Rating: 5 out of 5 stars5/5Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5HTML in 30 Pages Rating: 5 out of 5 stars5/5Photoshop For Beginners: Learn Adobe Photoshop cs5 Basics With Tutorials Rating: 0 out of 5 stars0 ratings
Reviews for SuperBASIC
0 ratings0 reviews
Book preview
SuperBASIC - Jerry Stratton
SuperBASIC
Jerry Stratton
SuperBASIC
The Manual
For the TRS-80 Color Computer
©2020 Jerry Stratton
Published May 2020
ISBN 979-8-63-977180-4 (print)
ISBN 978-0-46-359456-8 (ePub)
hoboes.com/superbasic
SuperBASIC version 1.0.0
Today it seems like a kludge, but all technology looks inelegant 35 years later.
—Wayne Lorentz, This TRS-80Getting Started
Where?
Download superBASIC and its sample files at hoboes.com/superbasic.
Why?
SuperBASIC is a preprocessor for creating Extended Color BASIC code using lengthy variable names, loops, and if/else/endif blocks. It should also work with Color BASIC.
SuperBASIC is not meant to hide BASIC behind a modern wall. It is meant as a superstructure that enhances BASIC. I wrote it specifically for the TRS-80/Tandy Color Computer, though it may well work with other old-school Microsoft BASICs. It adds to and does not subtract from Extended Color BASIC, with the exception of line numbers. Because line numbers are generated by the program, you cannot use GOTO statements in your code. You must use superBASIC’s loops and other blocks, so that every GOTO is generated with the correct line number.
If you provide superBASIC with nothing more than normal BASIC, you will get exactly what you provided, with line numbers added:
INPUT WHAT IS YOUR NAME?
;A$
PRINT HELLO,
;A$
Run superBASIC on it:
superbasic hello.txt
10 INPUT WHAT IS YOUR NAME?
;A$
20 PRINT HELLO,
;A$
30 END
The real power of superBASIC, however, are its loops and readable variable names.
loop
loop
%key$=inkey$
endloop unless (%key$=)
print asc(%key$)
endloop
Run superBASIC on this, and it converts the two loops into standard old-school BASIC. The first loop is a single line looking at INKEY$ until the user presses a key. The second loop reruns the entire program after displaying the ASCII value of the keypress:
superbasic keyboard\ values.txt
10 KE$=INKEY$:IF KE$= THEN 10
20 PRINT ASC(KE$)
30 GOTO 10
40 END