Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Old chess program in BASIC (long post)

Author: William H Rogers

Date: 07:39:24 03/21/05

Go up one level in this thread


Greetings
A colon is used to seperate commands. If you saw the following code,
A = B: C = D , you would effectively have the following:
A = B
C = D
This allowed for a more condensed coding of programs. Unfortunately in QBasic
some of these types of commands are not allowed. I decompressed the original
coding by entering a line feed after most ":" to make reading the original code
easier. As I stated earlier the original code only occupied about 4K of memory.
In the original Basic all commands, such as goto, then, gosub, are reduced to a
2 byte command when the program was saved, thus saving much space.
In all later versions of Basic each command took up as much space as the word
was long.
Bill



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.