Graham Kendall
Various Images

Professor Graham Kendall

Professor Dr. Graham Kendall is the Deputy Vice Chancellor (Research & Quality Assurnace, MILA University, Malaysia

Basic Betting: The Micro Bytes Back (1st Edition)

Running the GWBASIC Programs

This is a support page for Basic Betting: The Micro Bytes Back (2nd Edition). This page provides details of how to run the GWBASIC programs from the book, once you have installed the GWBASIC emulator.

When you run the GWBASIC emulator, you will see a screen similar to the one shown in Fig 1
Fig 1: GWBASIC screen at start up

You need to "change directory" to the location where you have copied the GWBASIC programs (I chose 'BETBOOK') that were supplied as part of the book (you can see list of the programs here). To do this, you enter the CHDIR command (see Fig 2).

Fig 2: GWBASIC screen showing 'CHDIR' and 'files' commands

You can check that you are in the right place by typing 'files' (see Fig 2).

You next need to load the program that you want to run. This is done by the LOAD command (see Fig 3).

Once the program is loaded, you can type 'list' which will show you the program, and verify that it has been loaded into memory.

Fig 3: GWBASIC screen showing LOAD command

To run the program you type 'run', which will start the program running and (depending on the program you have loaded) will lead to a screen that looks like Fig 4.

Fig 4: GWBASIC screen showing running program

These are the very basic commands to 'load' and 'run' BASIC programs. If you want to extend your knowledge (for exmaple, to enable you to edit the programs), I would recommend that you search the Internet as there is a lot of information available.