Changes

Jump to: navigation, search

Locomotive BASIC

4,064 bytes added, 19:44, 29 May 2012
/* CHR$ (n) */
:The CHR$ code between 0 and 31 will not print out a character but perform a function:
<pre>
===============================================================================| VALUE | NAME | PARAMETERS | EFFECT |===============================================================================| DEC | HEX | | | |===============================================================================| 0 | &00 | NUL | NONE | DOES NOTHING || 1 | &01 | SOH | 0-255 | PRINTS CHARACTER TO SCREEN || 2 | &02 | STX | NONE | TURNS TEXT CURSOR OFF || 3 | &03 | ETX | NONE | TURNS TEXT CURSOR ON IN IMMEDIATE || | | | | MODE || 4 | &04 | EOT | 0-2 | SET SCREEN MODE || 5 | &05 | ENQ | 0-255 | PRINT CHARACTER AT GRAPHICS CURS. || 6 | &06 | ACK | NONE | TURNS ON TEXT SCREEN (SEE ALSO CHR$(21))|| 7 | &07 | BEL | NONE | MAKE A SHORT BEEP || 8 | &08 | BS | NONE | MOVES TEXT CURSOR BACK ONE CHARACTER || 9 | &09 | TAB | NONE | MOVES TEXT CURSOR FORWARD ONE CHARACTER || 10 | &0A | LF | NONE | MOVES TEXT CURSOR DOWN ONE CHARACTER || 11 | &0B | VT | NONE | MOVES TEXT CURSOR UP ONE CHARACTER || 12 | &0C | FF | NONE | CLEARS SCREEN OR WINDOWS (= CLS) || 13 | &0D | CR | NONE | MOVES CURSOR TO LEFT EDGE OF WINDOW ON || | | | | CURRENT LINE || 14 | &0E | SO | 0-15 | SETS PAPER COLOUR || 15 | &0F | SI | 0-15 | SETS PEN COLOUR || 16 | &10 | DLE | NONE | DELETES CHARACTER UNDER TEXT CURSOR || 17 | &11 | DC1 | NONE | CLEARS LINE FROM LEFT OF WINDOW UP TO || | | | | AND INCLUDING CURRENT CHARACTER || 18 | &12 | DC2 | NONE | CLEARS FROM CURRENT CHARACTER TO RIGHT || | | | | EDGE OF THE WINDOW || 19 | &13 | DC3 | NONE | CLEARS FROM START OF WINDOW UP TO AND || | | | | INCLUDING CURRENT CHARACTER || 20 | &14 | DC4 | NONE | CLEARS FROM CURRENT CHARACTER TO END OF || | | | | WINDOW || 21 | &15 | NAK | NONE | TURNS OFF TEXT SCREEN (SEE ALSO CHR$(6))|| 22 | &16 | SYN | 0 AND 1 | TURNS TRANSPARENT OPTION OFF AND ON || 23 | &17 | ETB | 0-3 | SET GRPAHICS PLOTTING MODE || 24 | &18 | CAN | NONE | CHANGE TO INVERSE CHARACTER DISPLAYING || 25 | &19 | EM | NINE PARAM. | DEFINES A CHARACTER (= SAME AS SYMBOL) || | | | EACH 0-255 | || 26 | &1A | SUB | FOUR PARAM. WILL FOLLOW | DEFINES A TEXT WINDOW (=SAME AS WINDOW) || | | | 1-80, 1-80 | FROM LEFT, RIGHT, TOP TO BOTTOM || | | | 1-25, 1-25 | FROM LEFT, RIGHT, TOP TO BOTTOM || 27 | &1B | ESC | NONE | DOES NOTHING ON SCREEN (PRINTER SIGNAL) || 28 | &1C | FS | THREE PARAM. | SETS INK COLOUR TO FLASH BETWEEN TWO || | | | 0-15, 0-32 | INK NO, COLOUR 1, COLOUR 2 || | | | 0-32 | || 29 | &1D | GS | TWO PARAM. | SETS BORDER COLOUR TO FLASH BETWEEN TWO || | | | 0-31, 0-31 | COLOURS || 30 | &1E | RS | NONE | HOMES CURSOR TO TOP LEFT OF SCREEN || 31 | &1F | US | TWO PARAM. | MOVES CURSOR TO CELL SPECIFIED BY TWO || | | | 1-80, 1-25 | PARAMETERS (=SAME AS LOCATE) |===============================================================================
</PRE>
205
edits