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
Programming and Customizing the PIC Microcontroller Rating: 0 out of 5 stars0 ratingsArduino Projects for Amateur Radio Rating: 5 out of 5 stars5/5Hi5ive: The Simplest Computer Language Rating: 0 out of 5 stars0 ratingsEmployability Skills: Brush Up Your Computing Rating: 0 out of 5 stars0 ratingsProgramming the TI-83 Plus/TI-84 Plus Rating: 0 out of 5 stars0 ratingsBasic Language Rating: 0 out of 5 stars0 ratingsProjects With Microcontrollers And PICC Rating: 5 out of 5 stars5/5Introduction to Computing DSST Quick Prep Sheet Rating: 0 out of 5 stars0 ratingsComputing and Information Technology V11 Home Study Rating: 0 out of 5 stars0 ratingsSchaum's Outline of Principles of Computer Science Rating: 0 out of 5 stars0 ratingsBasics of Computer Rating: 0 out of 5 stars0 ratingsProgramming in C | Step by Step: The Simple Beginner's Guide Rating: 0 out of 5 stars0 ratingsLearn to Code with C: Program with the world's most popular language on your Raspberry Pi Rating: 5 out of 5 stars5/5C Programming Language Rating: 4 out of 5 stars4/5Touchpad Plus Ver. 3.1 Class 3: Linux & LibreOffice Rating: 0 out of 5 stars0 ratingsMission Ruby Rating: 0 out of 5 stars0 ratingsTrackpad iPro Ver. 4.0 Class 8: Windows 10 & MS Office 2019 Rating: 0 out of 5 stars0 ratingsWindows Batch File Programming Rating: 2 out of 5 stars2/5Computer Programming In C Language Rating: 4 out of 5 stars4/5Touchpad Modular Ver. 1.1 Class 6 Rating: 0 out of 5 stars0 ratingsCOBOL Language Fundamentals Quick Start Rating: 0 out of 5 stars0 ratingsMVS JCL Utilities Quick Reference, Third Edition Rating: 5 out of 5 stars5/5Beginning Programming All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsThe Software Programmer: Basis of common protocols and procedures Rating: 0 out of 5 stars0 ratingsARDUINO PROGRAMMING FOR BEGINNERS: Simple and Effective Methods to Learn Arduino Programming Efficiently Rating: 0 out of 5 stars0 ratingsHackerTools Crack With Disassembling Rating: 2 out of 5 stars2/5AutoIT Scripting For Beginners Rating: 5 out of 5 stars5/5Programming Concepts in C++ Rating: 0 out of 5 stars0 ratingsAssembly Language Coding in Color: ARM and NEON Rating: 0 out of 5 stars0 ratingsTouchpad Plus Ver. 4.0 Class 7 Rating: 0 out of 5 stars0 ratings
Programming For You
Python: Learn Python in 24 Hours 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/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL 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/5Microsoft Azure For Dummies Rating: 0 out of 5 stars0 ratingsGodot from Zero to Proficiency (Foundations): Godot from Zero to Proficiency, #1 Rating: 5 out of 5 stars5/5PYTHON PROGRAMMING Rating: 4 out of 5 stars4/5Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Learn Python in 10 Minutes Rating: 4 out of 5 stars4/5Beginning Programming with C++ For Dummies Rating: 4 out of 5 stars4/5Learn NodeJS in 1 Day: Complete Node JS Guide with Examples Rating: 3 out of 5 stars3/5Mastering Godot: A Comprehensive Guide to Game Development Rating: 0 out of 5 stars0 ratingsJavaScript All-in-One For Dummies Rating: 5 out of 5 stars5/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