I Want 2 Learn 2‎ > ‎


You can write your own programs in SuperBASIC, its free! using an emulator on your own computer  

You can run and adapt those written by others in SuperBASIC, its free! using an emulator on your own computer
If you are feeling particularly brave you could even try Assembly Language or Machine Code using a QL Emulator  

  • SuperBASIC is a BASIC interpreter, i.e. a system that lets you write lines of code that do something
  • SuperBASIC was originally part of the operating system known as QDOS this made the electronics of the QL computer work
  • SuperBASIC is emulated in many forms now (see other web pages on this site)
  • SuperBASIC also goes by other short form names such as SBasic and S*Basic
  • SuperBASIC also allows you to to write your own procedures and functions

Of course if you have an actual Black Box QL or one of its derivatives you can use the actual machine to do all those things 

Like most BASIC program examples, the line

10 PRINT "Hello World"

will do just that, when RUN, will display on the screen the words 'Hello World'

SuperBasic can do that obviously but it can also do much more 

Here are two simple examples, the first is a procedure, the second is a function (REMarks are to help you understand what happens in each line)
10 DEFine PROCedure Hello  :REMark The start of the procedure
20  PAPER 4                        :REMark Screen colour set to 4 (green)
30  INK 7                            :REMark Screen text colour set to 7 (white)
40  CLS                              :REMark Screen is cleared of all data and the background appears blue
50  PRINT "HELLO WORLD"   :REMark Text appears at the top left of the screen in white
60 END DEFine                     :REMark The end of the procedure
If you now type in to the command window in SuperBasic 'Hello' and press the Enter key the above procedure will run and the computer screen will clear and the words "HELLO WORLD" will appear in white text on a green background

100 Define Function Multiplying (a,b)  :REMark The start of the function
110  c = a * b                                  :REMark multiply's a & b together puts the result into c 
120  RETurn c                                   :REMark returns the value of c back to the user
130 END DEFine                                :REMark The end of the function

If you now type in to the command window in SuperBasic 'PRINT Multiplying (5,7)' and press the Enter key the above function will multiply the two numbers together and PRINT will then put the answer on the screen

If you want to try this for yourself you first need a QL emulator software on you computer (click here)