Program examples


Some example programs to copy and run

These examples will contain some pretty exotic coding; however, it isn't necessary to know know all the statements and functions to copy and run a program. All that is necessary is to have the program along with the GWBasic interpreter to run it. This write-up is intended to make programs available for you to copy and to provide a method of copying programs to your mass storage device.
A method used to copy a program file was given in an earlier presentation; however, it is presented in more detail by clicking on the link below.
create program files A method to download a basic program file.

The programs listed below may be copied to your own developmental folder and run as well as edited the way you wish. Two links are provided on each line. The first link is the program itself. The second link on each line is a softalk text file that talks about the program itself. Examples of the different kind of programs that lend themselves to the computer are given.

An example of a prose game program is the Wumpus Hunt.
DecBin is a math application program, converting decimal to binary.
The COLOR program shows the affect of various values in a COLOR statement.
DiDah is an example of rattling the computers speaker with the SOUND statement.
And... Oh yeh... there are more.


Index of Example Programs

Wumpus Hunt Program My version of the classic Wumpus Hunt. Wumpus Hunt Rules The how to play the game instructions.
DecBin.Bas Decimal to binary conversion. DecBin.html Program structure and explaination of algorithms.
Color.Bas Use of the COLOR statement. Color.html Program structure and explaination of algorithms.
DiDah.Bas Keyboard driven Morse Code generator. Didah.html Program structure and algorithm.
TxtDida.Bas Text file Morse Code generator. TxtDida.html Program structure and algorithm.
Timer.Bas INP and OUT to Timer 2. Timer.html Program structure and algorithm.

Some more advanced graphics and file management programs
Screen 0 Using the Graphics Screen O mode.
Screen 1 Using the Graphics Screen 1 mode.
Screen 2 Using the Graphics Screen 2 mode.
Error Handling Program Developement tools.
Mandel.html Mandelbrot overview tools..... Mandel Softalk.html Mandelbrot Softalk Mandel.bas Mandelbrot program.....

These examples control GWBasic and the computer. Commenly known as Utilities
Call.html Call Machine Language programs with GWBasic.
Variable Pointer.html Access the variable list.