List All Pages
ABS - convert a negative number to a positive number.
History
ABS was first seen in Dartmouth BASIC.
Syntax
pnum = ABS ( num )
pnum - returned positive number
num - number to convert to a...
This article is a stub. You can help improve Basic Programming Wiki Complete by expanding it.
AND - comparison and logical operator
Description
AND is a comparison operator when used with the...
This article is a stub. You can help improve Basic Programming Wiki Complete by expanding it.
BASIC Guide
BASIC is a group of programming languages that use a syntax similar to that of...
Syntax
BYE
Description
BYE was used in the days when BASIC was considered a time-sharing language and everyone used dumb terminals to access a larger mainframe computer. BYE shut down the BASIC...
Syntax
AS$ = CHR$( NU )
AS$ - returned ASCII character.
NU - number to convert to an ASCII character.
Description
CHR$() converts a number to an ASCII character. In classic computers his is...
Syntax
CLS
Description
CLS clears the screen of text and graphics. The use of CLS in older BASIC dialects was not universal. Some old computers required you to change graphics modes in order to...
Syntax
DIM varName [as dataType] [= init]
Description
DIM is short for dimension and is a way of creating a variable or array.
Some programming languages require that you declare all your...
Generic BASIC Keyword List
DEF - define
DIM - create a variable or array.
END - end the game
PEEK - look directly at memory.
POKE - put something directly in memory.
POS
PSET - draw a pixel on...
Syntax
END
Description
END causes the game to end. By end, of course, it is meant "shut down". When you use END, in most modern BASICs, the game window will close, usually returning the player to...
Synatax
Description
FOR is sometimes called a "counting loop" because it loops by counting.
Examples
Example of Use
This example counts from 1 to 10.
FOR I = 1 TO 10
PRINT I
NEXT I
Delay...
Usage
The general usage of the 'Gosub' function is:
[Statements]
Gosub [Label_name]
[Statements]
[Label_name]:
[Statements]
Return
Examples
Here's an example of a 'Gosub' function at...
Syntax
GOTO label
label the line number or label to go to
Description
GOTO causes the program execution to go to a specific line number or label. GOTO is extremely outdated, and depending on who...
{$name} Guide
If you are allowed to edit pages in this Site, simply click on edit button at the bottom of the page. This will open an editor with a toolbar pallette with options.
To create a link to a new page,...
Syntax
IF condition THEN doSomething
condition - the condition to be checked
doSomething - other statements to run if condition is true
Description
IF is a conditional statement. It will check...
This article is a stub. You can help improve Basic Programming Wiki Complete by expanding it.
Input Guide
Syntax
INPUT; variable
variable - the variable to contain the player input.
Description
INPUT accepts a line of input from the player. When it is executed, the game is paused to allow the player...
Description
INT will remove the decimal fraction from a number, if it has one. If it doesn't, it does nothing. Either way, it will return the argument as an integer.
Examples
Example of...
Please change this page according to your policy (configure first using Site Manager) and remove this note.
Who can join?
You can write here who can become a member of this site.
Join!
So you...
Syntax
numChar = LEN$( str )
numChar - returned character count
str - string to be counted
Description
LEN$() counts the number of characters (letters, numbers, spaces, punctuation, etc) in a...
Syntax
LET variable = X
X - string, number, other variable
Description
LET is an outdated BASIC statement that has been almost completely removed from modern BASICs. In its original form, LET...
Syntax
LIST [line number(s)]
Description
LIST is an outdated BASIC command. It was used during the days of line editors when BASIC game code was stored in memory one line at a time and there was...
This article is a stub. You can help improve Basic Programming Wiki Complete by expanding it.
Loop Guide
A loop is a construct that loops code.
This article is a stub. You can help improve Basic Programming Wiki Complete by expanding it.
Math Guide
Math in BASIC.
Members:
Moderators
Admins
Syntax
NEW
Description
NEW is an outdated BASIC command usually only found in line editors. When used, it clears the game code in memory, effectively erasing the game. It only erases the game code...
This article is a stub. You can help improve Basic Programming Wiki Complete by expanding it.
To be complete, Generic BASIC contains documentation for BASIC keywords that are no longer used....
This article is a stub. You can help improve Basic Programming Wiki Complete by expanding it.
Output Guide
Output in BASIC.
PRINT - display a message to the screen or window.
Syntax
PRINT message
message - message to be displayed.
Description
PRINT displays a message on the screen. This message can be a string,...
Syntax
RANDOMIZE seed
seed - number to be used as the random seed
Description
RANDOMIZE sets the random seed so that the player is unable to guess a sequence of randomly generated numbers will...
READ - get a unit of data
Syntax
READ var
var - variable to store the data
Description
READ gets one unit of data from any DATA statements in your program and stores it in a variable. It is...
REM - put a "remark" in the game code
Syntax
REM remarks
Description
REM is used to place a "remark" or comment in the game code. It's a bit like a post-it note you can put directly in your code...
Syntax
numb = RND(1)
num - returned random number
Description
RND generates a random number between 0 and less than 1. In most BASICs, the random number generator needs to be seeded first with...
Syntax
RUN
Description
RUN was used with old line editors. When used, RUN would execute the game code stored in memory. Since everyone no longer uses line editors, RUN is now unnecessary. Instead,...
BASIC Wiki
This wiki is a part of
Game Design Novice
Page tags
edit this panel
This article is a stub. You can help improve Basic Programming Wiki Complete by expanding it.
String Guide
Strings in BASIC.
This article is a stub. You can help improve Basic Programming Wiki Complete by expanding it.
These pages are stubs.
Syntax
TAB ( spaces )
spaces - how many columns to move
Description
TAB moves the cursor a number of columns. It comes in handy when you want to space text a specific number of spaces from the...
{ BASIC }
BASIC
{ Wiki }
Recent Changes
List All Pages
Page Tags List
Wiki Members
Site Admin
According to Wikipedia, the world largest wiki site:
A Wiki ([ˈwiː.kiː] <wee-kee> or [ˈwɪ.kiː] <wick-ey>) is a type of website that allows users to add, remove, or otherwise edit...
Description
WRITE is almost identical to PRINT with a few minor differences. While both display text and numbers on the screen, each one does it a bit differently.
With strings, WRITE prints the...