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 ratingsMission Ruby Rating: 0 out of 5 stars0 ratingsMore Advanced CSS: Zombie in a Ballgown: Undead Institute 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 ratingsAutoIT Scripting For Beginners Rating: 5 out of 5 stars5/5Wb Development full course : from zero to web hero Rating: 0 out of 5 stars0 ratingsJava Design Patterns for Automation and Performance Rating: 4 out of 5 stars4/5JavaScript Rating: 0 out of 5 stars0 ratingsIBM InfoSphere Replication Server and Data Event Publisher Rating: 0 out of 5 stars0 ratingsIBM DB2 9.7 Advanced Application Developer Cookbook Rating: 0 out of 5 stars0 ratingsBeginning DotNetNuke Skinning and Design Rating: 0 out of 5 stars0 ratingsLearning CoreOS Rating: 0 out of 5 stars0 ratingsProfessional ASP.NET Design Patterns Rating: 4 out of 5 stars4/5Multi-Tier Application Programming with PHP: Practical Guide for Architects and Programmers Rating: 0 out of 5 stars0 ratingsASP.NET 3.5 CMS Development Rating: 0 out of 5 stars0 ratingsGetting Started with Bootstrap 3.2 Rating: 0 out of 5 stars0 ratingsMastering PostCSS for Web Design Rating: 0 out of 5 stars0 ratings.Net Framework and Programming in ASP.NET Rating: 0 out of 5 stars0 ratingsProgressive web app A Clear and Concise Reference Rating: 0 out of 5 stars0 ratingsResponsive Design High Performance Rating: 0 out of 5 stars0 ratingsLearn SQL with MySQL: Retrieve and Manipulate Data Using SQL Commands with Ease Rating: 0 out of 5 stars0 ratingsNode.js: Tools & Skills Rating: 0 out of 5 stars0 ratingsModern CSS: Master the Key Concepts of CSS for Modern Web Development Rating: 0 out of 5 stars0 ratingsCSS3 Foundations Rating: 4 out of 5 stars4/5AJAX and PHP: Building Responsive Web Applications Rating: 4 out of 5 stars4/5PHP Package Mastery: 100 Essential Tools in One Hour - 2024 Edition Rating: 0 out of 5 stars0 ratingsSchematron: A language for validating XML Rating: 0 out of 5 stars0 ratingsMicrosoft .NET Framework 4.5 Quickstart Cookbook 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/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 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/5HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Java for Beginners: A Crash Course to Learn Java Programming in 1 Week Rating: 5 out of 5 stars5/5Web Designer's Idea Book, Volume 4: Inspiration from the Best Web Design Trends, Themes and Styles 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 ratingsRaspberry Pi Cookbook for Python Programmers Rating: 0 out of 5 stars0 ratingsPython QuickStart Guide: The Simplified Beginner's Guide to Python Programming Using Hands-On Projects and Real-World Applications Rating: 0 out of 5 stars0 ratingsPython: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5Python Data Structures and Algorithms Rating: 5 out of 5 stars5/5OneNote: The Ultimate Guide on How to Use Microsoft OneNote for Getting Things Done Rating: 1 out of 5 stars1/5Poirot's Early Cases Rating: 5 out of 5 stars5/5The Little SAS Book: A Primer, Sixth Edition Rating: 5 out of 5 stars5/5Learn JavaScript in 24 Hours Rating: 3 out of 5 stars3/5Python Machine Learning By Example Rating: 4 out of 5 stars4/5
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