Miscellaneous GWBASIC Source Code
placed in the public domain by Gary Peek
from Gary Peek's BASIC Source Code Archive
Applications/utilities/complete programs
There were many more, but were written for hire and cannot be made public :(
- MESSAGE.BAS messaging and alarm clock program
- DUMBTERM.BAS very simple dumb terminal program
- SCP.BAS serial communcation program, terminal
program with many features
- VIEW.BAS view files in current directory,
(similar to PC magazine utility FILECTRL or LOTUS MAGELLAN FILE VIEW)
- FILEMOD.BAS modify files in many ways,
remove duplicate charaters, add character
before or after another, etc., plus a binary editor also
- CHKLNUM.BAS check for proper line numbers
in GWBASIC file
- EASYMENU.BAS run DOS programs from a menu
that can be called from AUTOEXEC.BAT
- APPDFILE.BAS shows how to add "menu" command
to AUTOEXEC.BAT, for "EASYMENU"
- DUATCOM.BAS communcation program for pilot
weather service (for its source code value only, don't mess with the DUAT
system, besides, its all on the www now anyway)
Electronics related programs
Miscellaneous programs, demo's, and snippets, in alpharandomized order
Note: Many of the "graphics" programs or demos were written a long time
ago for monchrome monitors, block characters, and low resolution graphics,
and are now probably only useful for their instructional value or some of
the ideas or methods in them.
- PARPORT.BAS subroutines with demo to read and write values from parallel port
- DOW.BAS shows how to calculate day of week
- DTADEMO.BAS demonstrates the use of the Disk Transfer Area in DOS so you
can get the command line argument into your BASIC program
- DRAWPCX.BAS draw graphics on VGA screen and save as a PCX file,
good demo of writing a PCX file, can read monochrome PCX files,
(needs to be compiled, will not work in GWBASIC)
- DRAWPCXC.BAS like DRAWPCX but can read color PCX files
- GEP.BAS keyboard operated graphics program (Etch-A-Sketch style)
- ANGLEMSG.BAS subroutine to display message at many angles, backwards, etc.
- BANNER.BAS creates banners on continuous form tractor feed paper on Okidata printer
- BIGCHAR.BAS create large block characters on screen
- BARLINE.BAS bar graph routines for SCREEN 1
- CAPSON.BAS turn on the CAPS LOCK key
- CIRCLE.BAS draw arc or circle subroutine with demo code
- EDGFXCHR.BAS edit block graphics characters
- EPSBAS.BAS subroutine to print graphics screen to EPSON dot matrix printer
- EPSON.BAS set Epson printer print options
- HEXDUMP.BAS display contents of a file in hexadecimal
- LABELOKI.BAS print labels on Okidata dot matrix printer
- MAKEFONT.BAS, LOOKFONT.BAS create, display character fonts in X,Y coordinates and save to files, good example of keyboard operated pixel editing
- MEMTEST.BAS memory test, subroutine to enter hexadecimal numbers
- MOUSEPOS.BAS display mouse position on a text screen
- NUMWORDS.BAS finds number of words in a file
- OKI.BAS set options on Okidate printers
- PALETTE.BAS demonstrates showing all 4 shades of a color in SCREEN 9
- PHONE10.BAS, PHONE7.BAS make words from phone numbers
- PRINT39.BAS code 39 bar code label printing for dot matrix printer
- PRNSCRN9.BAS print screen for SCREEN 9 and
- QUIZ.BAS run a multiple choice question quiz by reading quiz data file
- REMOVECR.BAS remove carriage returns from file and replace with spaces
- REMREM.BAS remove remarks from GWBASIC source code file
- SAVEFILE.BAS save ASCII data coming into a serial port into a file
- SPLIT.BAS split large text file into several smaller ones
- SWATCH.BAS shows all the colors available in SCREEN 9
- TXBIN.BAS, RXBIN.BAS transmit and receive binary files from serial port
- WHATMON.BAS finds out what monitor type is connected
- WSCONVRT.BAS convert WordStar files back to regular
- SLOWMOUS.BAS reduce the mouse sensitivity
- PRINTEST.BAS shows how to test for printer so as not to get errors
- SCRNDEMO.BAS demonstrates "SCREEN", "VIEW", and "WINDOW" commands in SCREEN 0