Documentation
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 the screen
- RANDOMIZE - set the random seed.
- RESTORE
- RND - generate a random number
- SPC() - create spaces from nothing
- TAB()
- TO
- SLEEP - pause the game.
- STEP
- TIME$
- TIMER - usually the number of seconds after the computer was switched on.
Comparison
Conversion
Convert one thing to another.
- ASC() - convert a letter to it's ASCII number
- CHR$() - convert a number to an ASCII character.
- STR$ - convert a number to a string.
- VAL - convert a string to a number.
Math
Get the computer to do math for you.
- Mathematical operator - Basic mathematical operators.
- ABS() - converts a negative number into a positive number.
- ATN - arctangent
- COS - cosine.
- EXP - exponent
- INT - remove the decimal fraction from a number.
- LOG
- SGN - sign
- SIN - sine
- SQR - square root.
- TAN - tangent
Conditional Statements
Conditional statements allows your game to run different blocks of code based on what is happening at the time.
Loops
Input and Output
- CLS - clear the screen.
- DATA - put data in your program
- INKEY$ - check if a key has been pressed.
- INPUT - get a line of input from the player.
- PRINT - display something on the screen or in a window.
- READ - get data from DATA.
- WRITE - the evil twin brother of PRINT
File Handling
String Handling
Outdated BASIC
- Outdated BASIC - documentation for BASIC no longer used.
page_revision: 4, last_edited: 1207845740|%e %b %Y, %H:%M %Z (%O ago)