MediaWiki:Sitenotice:
2025-12-29: I have restored the wiki to a backup from the end of November. Starting in September 2025, accesses went form the 800MB-1.2GB range per month to 26GB in September, 42GB in October, and 70GB in November with most accesses originating from China. As soon as I realized what was causing all the access problems in November, I shut it down (it had reached 36GB by then) behind a password/login screen. The database had gotten corrupted, and I tried a restore from just before the spike in access but that didn't work. Thus, end of November. I still have the other daily backups so if there were any important additions in December, let me know and maybe they can be recovered. - Allen H.
BASIC:BASIC: Difference between revisions
AllenHuffman (talk | contribs) m AllenHuffman moved page BASIC to BASIC:BASIC: Moving to new nameplace (testing) |
AllenHuffman (talk | contribs) adding BASIC: namespace. Need to add friendly link to hide the BASIC: from the html output |
||
| Line 18: | Line 18: | ||
! Module || Keyword || Description | ! Module || Keyword || Description | ||
|- | |- | ||
| CB || [[BASIC:ABS]] || Get absolute value of a signed number | | CB || [[BASIC:BASIC:ABS|ABS]] || Get absolute value of a signed number | ||
|- | |- | ||
| CB || + || Addition operator | | CB || [[BASIC:+]] || Addition operator | ||
|- | |- | ||
| CB || [[AND]] || Boolean / Logical AND operator | | CB || [[BASIC:AND]] || Boolean / Logical AND operator | ||
|- | |- | ||
| CB || [[ASC]] || ASCII code of first letter of string | | CB || [[BASIC:ASC]] || ASCII code of first letter of string | ||
|- | |- | ||
| ECB || [[ATN]] || Returns arctangent in radians | | ECB || [[BASIC:ATN]] || Returns arctangent in radians | ||
|- | |- | ||
| SECB || [[ATTR]] || Set the display attributes of a high-resolution text screen | | SECB || [[BASIC:ATTR]] || Set the display attributes of a high-resolution text screen | ||
|- | |- | ||
| CB || [[AUDIO]] || Control the audio source | | CB || [[BASIC:AUDIO]] || Control the audio source | ||
|- | |- | ||
| DECB || [[BACKUP]] || Duplicates the contents of the disk in the source drive on the disk in the destination drive | | DECB || [[BASIC:BACKUP]] || Duplicates the contents of the disk in the source drive on the disk in the destination drive | ||
|- | |- | ||
| SECB || [[BRK]] || Jump to a line number when the BREAK key is pressed | | SECB || [[BASIC:BRK]] || Jump to a line number when the BREAK key is pressed | ||
|- | |- | ||
| SECB || [[BUTTON]] || Return if a Joystick Button is being pressed or not | | SECB || [[BASIC:BUTTON]] || Return if a Joystick Button is being pressed or not | ||
|- | |- | ||
| CB || [[CHR$]] || Convert number to Control, ASCII, or graphics code string | | CB || [[BASIC:CHR$]] || Convert number to Control, ASCII, or graphics code string | ||
|- | |- | ||
| ECB || [[CIRCLE]] || Draws a circle with center at point (x,y) radius r, specified color c and height/width ratio | | ECB || [[BASIC:CIRCLE]] || Draws a circle with center at point (x,y) radius r, specified color c and height/width ratio | ||
|- | |- | ||
| CB || [[CLEAR]] || Clear RAM for string space | | CB || [[BASIC:CLEAR]] || Clear RAM for string space | ||
|- | |- | ||
| CB || [[CLOAD]] || Cassette load | | CB || [[BASIC:CLOAD]] || Cassette load | ||
|- | |- | ||
| CB || [[CLOSE]] || Close files | | CB || [[BASIC:CLOSE]] || Close files | ||
|- | |- | ||
| CB || [[CLS]] || Clear screen | | CB || [[BASIC:CLS]] || Clear screen | ||
|- | |- | ||
| SECB || [[CMP]] || Set palette to composite defaults | | SECB || [[BASIC:CMP]] || Set palette to composite defaults | ||
|- | |- | ||
| ECB || [[COLOR]] || Sets foreground and background color | | ECB || [[BASIC:COLOR]] || Sets foreground and background color | ||
|- | |- | ||
| CB || [[CONT]] || Continue the program from a stop | | CB || [[BASIC:CONT]] || Continue the program from a stop | ||
|- | |- | ||
| DECB || [[COPY]] || Copies the contents of filename1 to filename2 | | DECB || [[BASIC:COPY]] || Copies the contents of filename1 to filename2 | ||
|- | |- | ||
| ECB || [[COS]] || Return cosine of an angle given in radians | | ECB || [[BASIC:COS]] || Return cosine of an angle given in radians | ||
|- | |- | ||
| CB || [[CSAVE]] || Cassette save | | CB || [[BASIC:CSAVE]] || Cassette save | ||
|- | |- | ||
| DECB || [[CVN]] || Convert a 5-byte coded string created by MKN$ back to the number it represents | | DECB || [[BASIC:CVN]] || Convert a 5-byte coded string created by MKN$ back to the number it represents | ||
|- | |- | ||
| CB || [[DATA]] || Store data within a program | | CB || [[BASIC:DATA]] || Store data within a program | ||
|- | |- | ||
| ECB || [[DEF]] || Defines numeric function | | ECB || [[BASIC:DEF]] || Defines numeric function | ||
|- | |- | ||
| ECB || [[DEL]] || Deletes program lines | | ECB || [[BASIC:DEL]] || Deletes program lines | ||
|- | |- | ||
| CB || [[DIM]] || Set aside memory for arrays | | CB || [[BASIC:DIM]] || Set aside memory for arrays | ||
|- | |- | ||
| DECB || [[DIR]] || Displays a directory of the disk in the drive you specify | | DECB || [[BASIC:DIR]] || Displays a directory of the disk in the drive you specify | ||
|- | |- | ||
| CB || / || Division operator | | CB || / || Division operator | ||
|- | |- | ||
| ECB || [[DLOAD]] || Loads BASIC program at specified baud | | ECB || [[BASIC:DLOAD]] || Loads BASIC program at specified baud | ||
|- | |- | ||
| DECB || [[DOS]] || With the OS-9 system diskette in drive 0, the DOS command boots the OS-9 operating system | | DECB || [[BASIC:DOS]] || With the OS-9 system diskette in drive 0, the DOS command boots the OS-9 operating system | ||
|- | |- | ||
| ECB || [[DRAW]] || Draws a line beginning at specified starting point of specified length and color | | ECB || [[BASIC:DRAW]] || Draws a line beginning at specified starting point of specified length and color | ||
|- | |- | ||
| DECB || [[DRIVE]] || Changes the default drive to the drive you specify | | DECB || [[BASIC:DRIVE]] || Changes the default drive to the drive you specify | ||
|- | |- | ||
| DECB || [[DSKI$]] || Inputs data from a particular sector with in a particular track on the disk in the drive you specify | | DECB || [[BASIC:DSKI$]] || Inputs data from a particular sector with in a particular track on the disk in the drive you specify | ||
|- | |- | ||
| DECB || [[DSKINI]] || Formats a disk in the drive you specify | | DECB || [[BASIC:DSKINI]] || Formats a disk in the drive you specify | ||
|- | |- | ||
| DECB || [[DSKO$]] || Writes string data on sector, track, and drive number you specify | | DECB || [[BASIC:DSKO$]] || Writes string data on sector, track, and drive number you specify | ||
|- | |- | ||
| ECB || [[EDIT]] || Allows editing of program line | | ECB || [[BASIC:EDIT]] || Allows editing of program line | ||
|- | |- | ||
| CB || [[END]] || The end of the program | | CB || [[BASIC:END]] || The end of the program | ||
|- | |- | ||
| CB || [[EOF]] || End of file | | CB || [[BASIC:EOF]] || End of file | ||
|- | |- | ||
| CB || [[ELSE]] || Alternate conditional statement | | CB || [[BASIC:ELSE]] || Alternate conditional statement | ||
|- | |- | ||
| CB || = || Equality operator | | CB || = || Equality operator | ||
|- | |- | ||
| SECB || [[ERLIN]] || Returns the BASIC line number where an error has occurred | | SECB || [[BASIC:ERLIN]] || Returns the BASIC line number where an error has occurred | ||
|- | |- | ||
| SECB || [[ERR]] || Jump to a line number when an error occurs | | SECB || [[BASIC:ERR]] || Jump to a line number when an error occurs | ||
|- | |- | ||
| SECB || [[ERRNO]] || Returns the BASIC error number for the error that has occurred | | SECB || [[BASIC:ERRNO]] || Returns the BASIC error number for the error that has occurred | ||
|- | |- | ||
| CB || [[EVAL]] || Evaluate a numeric expression | | CB || [[BASIC:EVAL]] || Evaluate a numeric expression | ||
|- | |- | ||
| CB || [[EXEC]] || EXECute code at address | | CB || [[BASIC:EXEC]] || EXECute code at address | ||
|- | |- | ||
| CB || [[EXP]] || Generates ?SN in Color BASIC, implemented in Extended Color BASIC | | CB || [[BASIC:EXP]] || Generates ?SN in Color BASIC, implemented in Extended Color BASIC | ||
|- | |- | ||
| ECB || [[EXP]] || Returns natural exponential of number | | ECB || [[BASIC:EXP]] || Returns natural exponential of number | ||
|- | |- | ||
| DECB || [[FIELD]] || Organizes the space within a direct access buffer into fields | | DECB || [[BASIC:FIELD]] || Organizes the space within a direct access buffer into fields | ||
|- | |- | ||
| DECB || [[FILES]] || Tell the computer the number of buffers to reserve in memory | | DECB || [[BASIC:FILES]] || Tell the computer the number of buffers to reserve in memory | ||
|- | |- | ||
| ECB || [[FIX]] || Returns truncated (whole number) value | | ECB || [[BASIC:FIX]] || Returns truncated (whole number) value | ||
|- | |- | ||
| CB || [[FOR]] || Start a loop | | CB || [[BASIC:FOR]] || Start a loop | ||
|- | |- | ||
| DECB || [[FREE]] || Returns to the number of free granules on the disk in the drive you specify | | DECB || [[BASIC:FREE]] || Returns to the number of free granules on the disk in the drive you specify | ||
|- | |- | ||
| ECB || [[GET]] || Reads the graphic contents of a rectangle into an array for future use by PUT | | ECB || [[BASIC:GET]] || Reads the graphic contents of a rectangle into an array for future use by PUT | ||
|- | |- | ||
| CB || [[GO]] || Jump to line number | | CB || [[BASIC:GO]] || Jump to line number | ||
|- | |- | ||
| CB || > || Greater Than operator | | CB || > || Greater Than operator | ||
|- | |- | ||
| SECB || [[HBUFF]] || Reserves an area in memory for high-resolution graphics | | SECB || [[BASIC:HBUFF]] || Reserves an area in memory for high-resolution graphics | ||
|- | |- | ||
| SECB || [[HCIRCLE]] || Draws a circle on the high-resolution graphics screen | | SECB || [[BASIC:HCIRCLE]] || Draws a circle on the high-resolution graphics screen | ||
|- | |- | ||
| SECB || [[HCLS]] || Clear the high-resolution graphics screen to a specified color | | SECB || [[BASIC:HCLS]] || Clear the high-resolution graphics screen to a specified color | ||
|- | |- | ||
| SECB || [[HCOLOR]] || Set foreground and background color on the high-resolution graphics screen | | SECB || [[BASIC:HCOLOR]] || Set foreground and background color on the high-resolution graphics screen | ||
|- | |- | ||
| SECB || [[HDRAW]] || Draws on the high-resolution screen from a command string | | SECB || [[BASIC:HDRAW]] || Draws on the high-resolution screen from a command string | ||
|- | |- | ||
| ECB || [[HEX$]] || Computes hexadecimal value | | ECB || [[BASIC:HEX$]] || Computes hexadecimal value | ||
|- | |- | ||
| SECB || [[HGET]] || Stores a rectangle from the high-resolution screen into a buffer | | SECB || [[BASIC:HGET]] || Stores a rectangle from the high-resolution screen into a buffer | ||
|- | |- | ||
| SECB || [[HLINE]] || Draws a line on the high-resolution graphics screen | | SECB || [[BASIC:HLINE]] || Draws a line on the high-resolution graphics screen | ||
|- | |- | ||
| SECB || [[HPAINT]] || Paints an area on the high-resolution graphics screen | | SECB || [[BASIC:HPAINT]] || Paints an area on the high-resolution graphics screen | ||
|- | |- | ||
| SECB || [[HPOINT]] || Returns information on point x,y from the high-resolution graphics screen | | SECB || [[BASIC:HPOINT]] || Returns information on point x,y from the high-resolution graphics screen | ||
|- | |- | ||
| SECB || [[HPRINT]] || Prints a message on the high-resolution graphics screen | | SECB || [[BASIC:HPRINT]] || Prints a message on the high-resolution graphics screen | ||
|- | |- | ||
| SECB || [[HPUT]] || Copies graphics from a buffer to a rectangle on the high-resolution graphics screen | | SECB || [[BASIC:HPUT]] || Copies graphics from a buffer to a rectangle on the high-resolution graphics screen | ||
|- | |- | ||
| SECB || [[HRESET]] || Resets a point on the high-resolution graphics screen to the background color | | SECB || [[BASIC:HRESET]] || Resets a point on the high-resolution graphics screen to the background color | ||
|- | |- | ||
| SECB || [[HSCREEN]] || Select and clear high-resolution graphics screen | | SECB || [[BASIC:HSCREEN]] || Select and clear high-resolution graphics screen | ||
|- | |- | ||
| SECB || [[HSET]] || Set point x,y on the high-resolution graphics screen to color c | | SECB || [[BASIC:HSET]] || Set point x,y on the high-resolution graphics screen to color c | ||
|- | |- | ||
| SECB || [[HSTAT]] || Returns information regarding the high-resolution text screen cursor | | SECB || [[BASIC:HSTAT]] || Returns information regarding the high-resolution text screen cursor | ||
|- | |- | ||
| CB || [[IF]] || Start a conditional check | | CB || [[BASIC:IF]] || Start a conditional check | ||
|- | |- | ||
| CB || [[INKEY$]] || Get a key | | CB || [[BASIC:INKEY$]] || Get a key | ||
|- | |- | ||
| CB || [[INPUT]] || Read a line of text at a time | | CB || [[BASIC:INPUT]] || Read a line of text at a time | ||
|- | |- | ||
| ECB || [[INSTR]] || Searches for the first occurrence of target string | | ECB || [[BASIC:INSTR]] || Searches for the first occurrence of target string | ||
|- | |- | ||
| CB || [[INT]] || Convert a number to an integer | | CB || [[BASIC:INT]] || Convert a number to an integer | ||
|- | |- | ||
| CB || [[JOYSTK]] || Read and report joysticks | | CB || [[BASIC:JOYSTK]] || Read and report joysticks | ||
|- | |- | ||
| DECB || [[KILL]] || Deletes the filename you specify from the disk directory | | DECB || [[BASIC:KILL]] || Deletes the filename you specify from the disk directory | ||
|- | |- | ||
| CB || [[LEFT$]] || Left part of a string | | CB || [[BASIC:LEFT$]] || Left part of a string | ||
|- | |- | ||
| CB || [[LEN]] || Length of a string | | CB || [[BASIC:LEN]] || Length of a string | ||
|- | |- | ||
| CB || < || Less Than operator | | CB || < || Less Than operator | ||
|- | |- | ||
| CB || [[LET]] || Assign a variable | | CB || [[BASIC:LET]] || Assign a variable | ||
|- | |- | ||
| ECB || [[LINE]] || Draw a line from (x1,y1) to (x2,y2) | | ECB || [[BASIC:LINE]] || Draw a line from (x1,y1) to (x2,y2) | ||
|- | |- | ||
| CB || [[LIST]] || List program to screen | | CB || [[BASIC:LIST]] || List program to screen | ||
|- | |- | ||
| CB || [[LLIST]] || List program to printer | | CB || [[BASIC:LLIST]] || List program to printer | ||
|- | |- | ||
| DECB || [[LOAD]] || Loads the specified program file into memory from disk | | DECB || [[BASIC:LOAD]] || Loads the specified program file into memory from disk | ||
|- | |- | ||
| SECB || [[LOCATE]] || Move the high-resolution text screen cursor to position x,y | | SECB || [[BASIC:LOCATE]] || Move the high-resolution text screen cursor to position x,y | ||
|- | |- | ||
| DECB || [[LOC]] || Returns the current record number of the buffer you specify | | DECB || [[BASIC:LOC]] || Returns the current record number of the buffer you specify | ||
|- | |- | ||
| DECB || [[LOF]] || Returns the highest-numbered record of the buffer you specify | | DECB || [[BASIC:LOF]] || Returns the highest-numbered record of the buffer you specify | ||
|- | |- | ||
| ECB || [[LOG]] || Returns natural logarithm | | ECB || [[BASIC:LOG]] || Returns natural logarithm | ||
|- | |- | ||
| SECB || [[LPEEK]] || Return the contents of a virtual memory location $00000 - $7FFFF | | SECB || [[BASIC:LPEEK]] || Return the contents of a virtual memory location $00000 - $7FFFF | ||
|- | |- | ||
| SECB || [[LPOKE]] || Stores a value in a virtual memory location $00000 - $7FFFF | | SECB || [[BASIC:LPOKE]] || Stores a value in a virtual memory location $00000 - $7FFFF | ||
|- | |- | ||
| DECB || [[LSET]] || Left-justifies the data within the field you specify | | DECB || [[BASIC:LSET]] || Left-justifies the data within the field you specify | ||
|- | |- | ||
| CB || [[MEM]] || Free memory | | CB || [[BASIC:MEM]] || Free memory | ||
|- | |- | ||
| DECB || [[MERGE]] || Loads the specified program file from disk and merges it with the program that exists in memory | | DECB || [[BASIC:MERGE]] || Loads the specified program file from disk and merges it with the program that exists in memory | ||
|- | |- | ||
| CB || [[MID$]] || Middle of a string | | CB || [[BASIC:MID$]] || Middle of a string | ||
|- | |- | ||
| DECB || [[MKN$]] || Convert a specified number into a 5-byte coded string for storage in a formatted disk file | | DECB || [[BASIC:MKN$]] || Convert a specified number into a 5-byte coded string for storage in a formatted disk file | ||
|- | |- | ||
| CB || [[MOTOR]] || Tape drive motor control | | CB || [[BASIC:MOTOR]] || Tape drive motor control | ||
|- | |- | ||
| CB || * || Multiplication operator | | CB || * || Multiplication operator | ||
|- | |- | ||
| CB || [[NEW]] || Initialize the BASIC memory map | | CB || [[BASIC:NEW]] || Initialize the BASIC memory map | ||
|- | |- | ||
| CB || [[NEXT]] || End of a loop | | CB || [[BASIC:NEXT]] || End of a loop | ||
|- | |- | ||
| CB || [[NOT]] || Boolean / Logical negation | | CB || [[BASIC:NOT]] || Boolean / Logical negation | ||
|- | |- | ||
| CB || [[OFF]] || AUDIO and MOTOR control token | | CB || [[BASIC:OFF]] || AUDIO and MOTOR control token | ||
|- | |- | ||
| CB || [[ON]] || Start of multi-way branch | | CB || [[BASIC:ON]] || Start of multi-way branch | ||
|- | |- | ||
| CB || [[OPEN]] || Open a file | | CB || [[BASIC:OPEN]] || Open a file | ||
|- | |- | ||
| CB || [[OR]] || Boolean / Logical OR operator | | CB || [[BASIC:OR]] || Boolean / Logical OR operator | ||
|- | |- | ||
| ECB || [[PAINT]] || Paints graphic screen starting at a point (x,y) withh specified color c stopping at border b | | ECB || [[BASIC:PAINT]] || Paints graphic screen starting at a point (x,y) withh specified color c stopping at border b | ||
|- | |- | ||
| SECB || [[PALETTE]] || Store a color code into a palette register, or reset palette for CMP or RGB defaults | | SECB || [[BASIC:PALETTE]] || Store a color code into a palette register, or reset palette for CMP or RGB defaults | ||
|- | |- | ||
| ECB || [[PCLEAR]] || Reserves b number of 1.5K graphics memory pages | | ECB || [[BASIC:PCLEAR]] || Reserves b number of 1.5K graphics memory pages | ||
|- | |- | ||
| ECB || [[PCLS]] || Clears screen with specified color c | | ECB || [[BASIC:PCLS]] || Clears screen with specified color c | ||
|- | |- | ||
| ECB || [[PCOPY]] || Copy graphics from source page to destination page | | ECB || [[BASIC:PCOPY]] || Copy graphics from source page to destination page | ||
|- | |- | ||
| CB || [[PEEK]] || Read a value from a memory address | | CB || [[BASIC:PEEK]] || Read a value from a memory address | ||
|- | |- | ||
| ECB || [[PLAY]] || Plays music of specific note, octave, note-length, tempo, pause | | ECB || [[BASIC:PLAY]] || Plays music of specific note, octave, note-length, tempo, pause | ||
|- | |- | ||
| ECB || [[PMODE]] || Selections resolution and first memory page | | ECB || [[BASIC:PMODE]] || Selections resolution and first memory page | ||
|- | |- | ||
| CB || [[POINT]] || Check color of a semigraphics pixel | | CB || [[BASIC:POINT]] || Check color of a semigraphics pixel | ||
|- | |- | ||
| CB || [[POKE]] || Write a value to a memory address | | CB || [[BASIC:POKE]] || Write a value to a memory address | ||
|- | |- | ||
| ECB || [[POS]] || Returns current print position | | ECB || [[BASIC:POS]] || Returns current print position | ||
|- | |- | ||
| ECB || [[PPOINT]] || Tests whether specified graphics cell is on or off | | ECB || [[BASIC:PPOINT]] || Tests whether specified graphics cell is on or off | ||
|- | |- | ||
| ECB || [[PRESET]] || Reset a point to background color | | ECB || [[BASIC:PRESET]] || Reset a point to background color | ||
|- | |- | ||
| CB || [[PRINT]] || Write to the screen | | CB || [[BASIC:PRINT]] || Write to the screen | ||
|- | |- | ||
| ECB || [[PSET]] || Sets a specified point (x,y) to specified color c | | ECB || [[BASIC:PSET]] || Sets a specified point (x,y) to specified color c | ||
|- | |- | ||
| ECB || [[PUT]] || Stores graphics from source into start/end rectangle on the screen | | ECB || [[BASIC:PUT]] || Stores graphics from source into start/end rectangle on the screen | ||
|- | |- | ||
| CB || [[READ]] || Read a piece of data | | CB || [[BASIC:READ]] || Read a piece of data | ||
|- | |- | ||
| CB || [[REM]] || Comments or remarks - FIXME Else uses this too? | | CB || [[BASIC:REM]] || Comments or remarks - FIXME Else uses this too? | ||
|- | |- | ||
| DECB || [[RENAME]] || Renames a disk file | | DECB || [[BASIC:RENAME]] || Renames a disk file | ||
|- | |- | ||
| ECB || [[RENUM]] || Allows program line renumbering | | ECB || [[BASIC:RENUM]] || Allows program line renumbering | ||
|- | |- | ||
| CB || [[RESET]] || Clear a semigraphics pixel | | CB || [[BASIC:RESET]] || Clear a semigraphics pixel | ||
|- | |- | ||
| CB || [[RESTORE]] || Start back at the first DATA item | | CB || [[BASIC:RESTORE]] || Start back at the first DATA item | ||
|- | |- | ||
| CB || [[RETURN]] || Return from a subroutine | | CB || [[BASIC:RETURN]] || Return from a subroutine | ||
|- | |- | ||
| SECB || [[RGB]] || Set palette to RGB defaults | | SECB || [[BASIC:RGB]] || Set palette to RGB defaults | ||
|- | |- | ||
| CB || [[RIGHT$]] || Right part of a string | | CB || [[BASIC:RIGHT$]] || Right part of a string | ||
|- | |- | ||
| CB || [[RND]] || Pseudo-random number generator | | CB || [[BASIC:RND]] || Pseudo-random number generator | ||
|- | |- | ||
| DECB || [[RSET]] || Right-justifies the data within the field you specify | | DECB || [[BASIC:RSET]] || Right-justifies the data within the field you specify | ||
|- | |- | ||
| CB || [[RUN]] || Start the program running | | CB || [[BASIC:RUN]] || Start the program running | ||
|- | |- | ||
| DECB || [[SAVE]] || Saves filename on disk | | DECB || [[BASIC:SAVE]] || Saves filename on disk | ||
|- | |- | ||
| ECB || [[SCREEN]] || Selects either graphics (1) or text (0) screen and color-set (0 or 1) | | ECB || [[BASIC:SCREEN]] || Selects either graphics (1) or text (0) screen and color-set (0 or 1) | ||
|- | |- | ||
| CB || [[SET]] || Draw a semigraphics pixel | | CB || [[BASIC:SET]] || Draw a semigraphics pixel | ||
|- | |- | ||
| CB || [[SGN]] || Get the sign of a number positive or negative | | CB || [[BASIC:SGN]] || Get the sign of a number positive or negative | ||
|- | |- | ||
| CB || [[SIN]] || Sine of an angle | | CB || [[BASIC:SIN]] || Sine of an angle | ||
|- | |- | ||
| CB || [[SKIPF]] || Skip tape file | | CB || [[BASIC:SKIPF]] || Skip tape file | ||
|- | |- | ||
| CB || [[SOUND]] || Beep the speaker | | CB || [[BASIC:SOUND]] || Beep the speaker | ||
|- | |- | ||
| ECB || [[SQR]] || Returns the square root of a number | | ECB || [[BASIC:SQR]] || Returns the square root of a number | ||
|- | |- | ||
| CB || [[STEP]] || FOR loop control | | CB || [[BASIC:STEP]] || FOR loop control | ||
|- | |- | ||
| CB || [[STOP]] || Stop the program at the current line | | CB || [[BASIC:STOP]] || Stop the program at the current line | ||
|- | |- | ||
| CB || [[STR$]] || Convert a number to a string | | CB || [[BASIC:STR$]] || Convert a number to a string | ||
|- | |- | ||
| ECB || [[STRING]] || Returns a string of characters of specified length | | ECB || [[BASIC:STRING]] || Returns a string of characters of specified length | ||
|- | |- | ||
| CB || [[SUB]] || Completion token for GOSUB | | CB || [[BASIC:SUB]] || Completion token for GOSUB | ||
|- | |- | ||
| CB || - || Subtraction operator | | CB || - || Subtraction operator | ||
|- | |- | ||
| CB || [[TAB]] || Tabulation | | CB || [[BASIC:TAB]] || Tabulation | ||
|- | |- | ||
| ECB || [[TAN]] || Returns tangent of angle given in radians | | ECB || [[BASIC:TAN]] || Returns tangent of angle given in radians | ||
|- | |- | ||
| CB || [[THEN]] || Completion token for IF | | CB || [[BASIC:THEN]] || Completion token for IF | ||
|- | |- | ||
| ECB || [[TIMER]] || Returns contents or allows setting of timer | | ECB || [[BASIC:TIMER]] || Returns contents or allows setting of timer | ||
|- | |- | ||
| CB || [[TO]] || Token for TO in GO TO | | CB || [[BASIC:TO]] || Token for TO in GO TO | ||
|- | |- | ||
| ECB || [[TROFF]] || Turns off program tracer | | ECB || [[BASIC:TROFF]] || Turns off program tracer | ||
|- | |- | ||
| ECB || [[TRON]] || Turns on program tracer | | ECB || [[BASIC:TRON]] || Turns on program tracer | ||
|- | |- | ||
| DECB || [[UNLOAD]] || Close any open files on the disk in the drive you specify | | DECB || [[BASIC:UNLOAD]] || Close any open files on the disk in the drive you specify | ||
|- | |- | ||
| CB || [[USR]] || User defined function | | CB || [[BASIC:USR]] || User defined function | ||
|- | |- | ||
| CB || [[VAL]] || Convert a string to a number | | CB || [[BASIC:VAL]] || Convert a string to a number | ||
|- | |- | ||
| ECB || [[VARPTR]] || Returns address of pointer to the specified variable | | ECB || [[BASIC:VARPTR]] || Returns address of pointer to the specified variable | ||
|- | |- | ||
| DECB || [[VERIFY]] || Turns the verify function on or off | | DECB || [[BASIC:VERIFY]] || Turns the verify function on or off | ||
|- | |- | ||
| SECB || [[WIDTH]] || Set the text screen to a resolution in character width | | SECB || [[BASIC:WIDTH]] || Set the text screen to a resolution in character width | ||
|- | |- | ||
| DECB || [[WRITE]] || Writes the data to the buffer you specify | | DECB || [[BASIC:WRITE]] || Writes the data to the buffer you specify | ||
|} | |} | ||
Revision as of 20:22, 9 April 2020
BASIC
Tandy Color Computers contain a modular interpreter which understands a superset of the Beginner's All-purpose Symbolic Instruction Code (BASIC) programming language.
There are up to four core modules available in Read-Only Memory (ROM) that detect and link to each other when combinations of these ROMs exist in a Color Computer.
MODULES
Color BASIC - the core module present in all models of Color Computer
Extended Color BASIC (ECB) - a graphics and sound package which was optional in the Color Computer 1 and 2.
Disk Extended Color BASIC (DECB) - Disk commands present when a disk controller cartridge is plugged in
Super Extended Color BASIC (SECB) - Present in the Color Computer 3 only and includes Color BASIC and Extended Color BASIC in lower memory - links to Disk BASIC ROM if a cartridge is present.
KEYWORDS
| Module | Keyword | Description |
|---|---|---|
| CB | ABS | Get absolute value of a signed number |
| CB | BASIC:+ | Addition operator |
| CB | BASIC:AND | Boolean / Logical AND operator |
| CB | BASIC:ASC | ASCII code of first letter of string |
| ECB | BASIC:ATN | Returns arctangent in radians |
| SECB | BASIC:ATTR | Set the display attributes of a high-resolution text screen |
| CB | BASIC:AUDIO | Control the audio source |
| DECB | BASIC:BACKUP | Duplicates the contents of the disk in the source drive on the disk in the destination drive |
| SECB | BASIC:BRK | Jump to a line number when the BREAK key is pressed |
| SECB | BASIC:BUTTON | Return if a Joystick Button is being pressed or not |
| CB | BASIC:CHR$ | Convert number to Control, ASCII, or graphics code string |
| ECB | BASIC:CIRCLE | Draws a circle with center at point (x,y) radius r, specified color c and height/width ratio |
| CB | BASIC:CLEAR | Clear RAM for string space |
| CB | BASIC:CLOAD | Cassette load |
| CB | BASIC:CLOSE | Close files |
| CB | BASIC:CLS | Clear screen |
| SECB | BASIC:CMP | Set palette to composite defaults |
| ECB | BASIC:COLOR | Sets foreground and background color |
| CB | BASIC:CONT | Continue the program from a stop |
| DECB | BASIC:COPY | Copies the contents of filename1 to filename2 |
| ECB | BASIC:COS | Return cosine of an angle given in radians |
| CB | BASIC:CSAVE | Cassette save |
| DECB | BASIC:CVN | Convert a 5-byte coded string created by MKN$ back to the number it represents |
| CB | BASIC:DATA | Store data within a program |
| ECB | BASIC:DEF | Defines numeric function |
| ECB | BASIC:DEL | Deletes program lines |
| CB | BASIC:DIM | Set aside memory for arrays |
| DECB | BASIC:DIR | Displays a directory of the disk in the drive you specify |
| CB | / | Division operator |
| ECB | BASIC:DLOAD | Loads BASIC program at specified baud |
| DECB | BASIC:DOS | With the OS-9 system diskette in drive 0, the DOS command boots the OS-9 operating system |
| ECB | BASIC:DRAW | Draws a line beginning at specified starting point of specified length and color |
| DECB | BASIC:DRIVE | Changes the default drive to the drive you specify |
| DECB | BASIC:DSKI$ | Inputs data from a particular sector with in a particular track on the disk in the drive you specify |
| DECB | BASIC:DSKINI | Formats a disk in the drive you specify |
| DECB | BASIC:DSKO$ | Writes string data on sector, track, and drive number you specify |
| ECB | BASIC:EDIT | Allows editing of program line |
| CB | BASIC:END | The end of the program |
| CB | BASIC:EOF | End of file |
| CB | BASIC:ELSE | Alternate conditional statement |
| CB | = | Equality operator |
| SECB | BASIC:ERLIN | Returns the BASIC line number where an error has occurred |
| SECB | BASIC:ERR | Jump to a line number when an error occurs |
| SECB | BASIC:ERRNO | Returns the BASIC error number for the error that has occurred |
| CB | BASIC:EVAL | Evaluate a numeric expression |
| CB | BASIC:EXEC | EXECute code at address |
| CB | BASIC:EXP | Generates ?SN in Color BASIC, implemented in Extended Color BASIC |
| ECB | BASIC:EXP | Returns natural exponential of number |
| DECB | BASIC:FIELD | Organizes the space within a direct access buffer into fields |
| DECB | BASIC:FILES | Tell the computer the number of buffers to reserve in memory |
| ECB | BASIC:FIX | Returns truncated (whole number) value |
| CB | BASIC:FOR | Start a loop |
| DECB | BASIC:FREE | Returns to the number of free granules on the disk in the drive you specify |
| ECB | BASIC:GET | Reads the graphic contents of a rectangle into an array for future use by PUT |
| CB | BASIC:GO | Jump to line number |
| CB | > | Greater Than operator |
| SECB | BASIC:HBUFF | Reserves an area in memory for high-resolution graphics |
| SECB | BASIC:HCIRCLE | Draws a circle on the high-resolution graphics screen |
| SECB | BASIC:HCLS | Clear the high-resolution graphics screen to a specified color |
| SECB | BASIC:HCOLOR | Set foreground and background color on the high-resolution graphics screen |
| SECB | BASIC:HDRAW | Draws on the high-resolution screen from a command string |
| ECB | BASIC:HEX$ | Computes hexadecimal value |
| SECB | BASIC:HGET | Stores a rectangle from the high-resolution screen into a buffer |
| SECB | BASIC:HLINE | Draws a line on the high-resolution graphics screen |
| SECB | BASIC:HPAINT | Paints an area on the high-resolution graphics screen |
| SECB | BASIC:HPOINT | Returns information on point x,y from the high-resolution graphics screen |
| SECB | BASIC:HPRINT | Prints a message on the high-resolution graphics screen |
| SECB | BASIC:HPUT | Copies graphics from a buffer to a rectangle on the high-resolution graphics screen |
| SECB | BASIC:HRESET | Resets a point on the high-resolution graphics screen to the background color |
| SECB | BASIC:HSCREEN | Select and clear high-resolution graphics screen |
| SECB | BASIC:HSET | Set point x,y on the high-resolution graphics screen to color c |
| SECB | BASIC:HSTAT | Returns information regarding the high-resolution text screen cursor |
| CB | BASIC:IF | Start a conditional check |
| CB | BASIC:INKEY$ | Get a key |
| CB | BASIC:INPUT | Read a line of text at a time |
| ECB | BASIC:INSTR | Searches for the first occurrence of target string |
| CB | BASIC:INT | Convert a number to an integer |
| CB | BASIC:JOYSTK | Read and report joysticks |
| DECB | BASIC:KILL | Deletes the filename you specify from the disk directory |
| CB | BASIC:LEFT$ | Left part of a string |
| CB | BASIC:LEN | Length of a string |
| CB | < | Less Than operator |
| CB | BASIC:LET | Assign a variable |
| ECB | BASIC:LINE | Draw a line from (x1,y1) to (x2,y2) |
| CB | BASIC:LIST | List program to screen |
| CB | BASIC:LLIST | List program to printer |
| DECB | BASIC:LOAD | Loads the specified program file into memory from disk |
| SECB | BASIC:LOCATE | Move the high-resolution text screen cursor to position x,y |
| DECB | BASIC:LOC | Returns the current record number of the buffer you specify |
| DECB | BASIC:LOF | Returns the highest-numbered record of the buffer you specify |
| ECB | BASIC:LOG | Returns natural logarithm |
| SECB | BASIC:LPEEK | Return the contents of a virtual memory location $00000 - $7FFFF |
| SECB | BASIC:LPOKE | Stores a value in a virtual memory location $00000 - $7FFFF |
| DECB | BASIC:LSET | Left-justifies the data within the field you specify |
| CB | BASIC:MEM | Free memory |
| DECB | BASIC:MERGE | Loads the specified program file from disk and merges it with the program that exists in memory |
| CB | BASIC:MID$ | Middle of a string |
| DECB | BASIC:MKN$ | Convert a specified number into a 5-byte coded string for storage in a formatted disk file |
| CB | BASIC:MOTOR | Tape drive motor control |
| CB | * | Multiplication operator |
| CB | BASIC:NEW | Initialize the BASIC memory map |
| CB | BASIC:NEXT | End of a loop |
| CB | BASIC:NOT | Boolean / Logical negation |
| CB | BASIC:OFF | AUDIO and MOTOR control token |
| CB | BASIC:ON | Start of multi-way branch |
| CB | BASIC:OPEN | Open a file |
| CB | BASIC:OR | Boolean / Logical OR operator |
| ECB | BASIC:PAINT | Paints graphic screen starting at a point (x,y) withh specified color c stopping at border b |
| SECB | BASIC:PALETTE | Store a color code into a palette register, or reset palette for CMP or RGB defaults |
| ECB | BASIC:PCLEAR | Reserves b number of 1.5K graphics memory pages |
| ECB | BASIC:PCLS | Clears screen with specified color c |
| ECB | BASIC:PCOPY | Copy graphics from source page to destination page |
| CB | BASIC:PEEK | Read a value from a memory address |
| ECB | BASIC:PLAY | Plays music of specific note, octave, note-length, tempo, pause |
| ECB | BASIC:PMODE | Selections resolution and first memory page |
| CB | BASIC:POINT | Check color of a semigraphics pixel |
| CB | BASIC:POKE | Write a value to a memory address |
| ECB | BASIC:POS | Returns current print position |
| ECB | BASIC:PPOINT | Tests whether specified graphics cell is on or off |
| ECB | BASIC:PRESET | Reset a point to background color |
| CB | BASIC:PRINT | Write to the screen |
| ECB | BASIC:PSET | Sets a specified point (x,y) to specified color c |
| ECB | BASIC:PUT | Stores graphics from source into start/end rectangle on the screen |
| CB | BASIC:READ | Read a piece of data |
| CB | BASIC:REM | Comments or remarks - FIXME Else uses this too? |
| DECB | BASIC:RENAME | Renames a disk file |
| ECB | BASIC:RENUM | Allows program line renumbering |
| CB | BASIC:RESET | Clear a semigraphics pixel |
| CB | BASIC:RESTORE | Start back at the first DATA item |
| CB | BASIC:RETURN | Return from a subroutine |
| SECB | BASIC:RGB | Set palette to RGB defaults |
| CB | BASIC:RIGHT$ | Right part of a string |
| CB | BASIC:RND | Pseudo-random number generator |
| DECB | BASIC:RSET | Right-justifies the data within the field you specify |
| CB | BASIC:RUN | Start the program running |
| DECB | BASIC:SAVE | Saves filename on disk |
| ECB | BASIC:SCREEN | Selects either graphics (1) or text (0) screen and color-set (0 or 1) |
| CB | BASIC:SET | Draw a semigraphics pixel |
| CB | BASIC:SGN | Get the sign of a number positive or negative |
| CB | BASIC:SIN | Sine of an angle |
| CB | BASIC:SKIPF | Skip tape file |
| CB | BASIC:SOUND | Beep the speaker |
| ECB | BASIC:SQR | Returns the square root of a number |
| CB | BASIC:STEP | FOR loop control |
| CB | BASIC:STOP | Stop the program at the current line |
| CB | BASIC:STR$ | Convert a number to a string |
| ECB | BASIC:STRING | Returns a string of characters of specified length |
| CB | BASIC:SUB | Completion token for GOSUB |
| CB | - | Subtraction operator |
| CB | BASIC:TAB | Tabulation |
| ECB | BASIC:TAN | Returns tangent of angle given in radians |
| CB | BASIC:THEN | Completion token for IF |
| ECB | BASIC:TIMER | Returns contents or allows setting of timer |
| CB | BASIC:TO | Token for TO in GO TO |
| ECB | BASIC:TROFF | Turns off program tracer |
| ECB | BASIC:TRON | Turns on program tracer |
| DECB | BASIC:UNLOAD | Close any open files on the disk in the drive you specify |
| CB | BASIC:USR | User defined function |
| CB | BASIC:VAL | Convert a string to a number |
| ECB | BASIC:VARPTR | Returns address of pointer to the specified variable |
| DECB | BASIC:VERIFY | Turns the verify function on or off |
| SECB | BASIC:WIDTH | Set the text screen to a resolution in character width |
| DECB | BASIC:WRITE | Writes the data to the buffer you specify |