Quick Reference Guide
Literals
-
Numeric literals evaluate to floating point or integer numbers.
-
String literals evaluate to a string of ASCII characters.
Variables
-
Numeric variables contain an floating point or integer numbers.
-
String variables contain a string of ASCII characters.
-
String slices represent a substring of a string variable.
Operators
-
Arithmetic operations evaluate performed using floating point math.
-
Relational operations return -1 if true, 0 if false.
-
Logical operators perform the corresponding boolean operation on the bits of the each integer expression.
-
String operators create new temporary string.
Special Characters
Statements and Functions
-
ABS(float) - Return absolute value of expression.
-
APPEND filespec,^strvar - Append string to file.
-
APPEND filespec,address,length - Append memory to binary file.
-
ARGS arg{,...} {RETURN var{,...}} - Specify subroutine arguments and return variables.
-
ARGS - Return number of RUN arguments
-
ARGS$(argno) - Return RUN argument number index.
-
ASC(string{,pos}) - Return ASCII value of specified character in string.
-
ASC$(hexstring) - Convert hexadecimal string to ASCII string.
-
ATN(float) - Return arctangent of argument.
-
ATTR(fgcolor,bgcolor) - Build color attribute byte.
-
ATTR$(fgcolor,bgcolor,count) - Build color attributes string.
-
BIN$() - Not implemented
-
BIT(long,bit#) - Return status of bit in 23 bit number.
-
BIT(string,bit#) - Return status of bit in binary string.
-
BYTE(string{,pos}) - Return signed byte value of specified character in string.
-
CALL {@page,}address {ARGS hl,de,bc} - Executes machine language routine at address, optionally passing arguments into the associated registers.
-
CALL MODULE - Proposed enhancement.
-
CD - Display current path or change directory.
-
CD$ - Return current path.
-
CHR$(byte) - Convert ASCII value to string.
-
CIRCLE (x,y),radius{,{,,{,aspect}}} - Not implemented.
-
CLEAR {integer{,address}} - Clear all variables, optionally allocating string text space and top of BASIC RAM.
-
CLEAR *array{,...} - Clear numeric or string array data.
-
CLEAR BITMAP {fgcolor,bgcolor} - Clear bitmap layer.
-
CLEAR CURSOR - Temporarily remove cursor from screen.
-
CLEAR KEYS - Clear keyboard and autotype buffers.
-
CLOAD {{?}filename}|*array - Load or verify program or load array data from cassette.
-
CLOSE #channel - Close file.
-
CLS {fgcolor,bgcolor} - Clear the text screen.
-
CLS COLOR {fgcolor,bgcolor} - Fill Color RAM with current or specified foreground and background colors.
-
COLOR fgcolor{,bgcolor} - Set or get bitmap default color(s).
-
COMPARE (array,array) - Compare the binary contents of two numeric arrays.
-
COMPARE ({�!_ext_addr_�|�{@page,}_address_�,�!_ext_addr_�|�{@page,}_address_�,length) - Compare two blocks of memory.
-
COMPARE (filespec,filespec) - Not implemented.
-
CONT - Resume program execution after STOP, Ctrl-C/Escape, or error.
-
COPY - Copy text screen to serial printer.
-
COPY *array TO *array - Copy contents of one numeric array to another.
-
COPY *array TO �!_ext_addr_�|�{@page,}_address_� - Copy numeric array contents to memory.
-
COPY �!_ext_addr_�|�{@page,}_address_�,length TO �!_ext_addr_�|�{@page,}_address_� - Copy bytes from one section of memory to another.
-
COPY �!_ext_addr_�|�{@page,}_address_�{,length(=} TO *array - Copy memory to array contents.
-
COPY �!_ext_addr_�|�@page,_address_� TO SCREEN {CHR|ATTR} - Copy paged memory to screen.
-
COPY FILE filespec TO filespec - Copy file.
-
COPY SCREEN {CHR|ATTR} TO �!_ext_addr_�|�@page,_address_� - Copy screen to paged memory.
-
COS(float) - Return cosine of argument.
-
CSAVE filename|*array - Save program or array data to cassette.
-
CURSOROFFSET - Return text screen relative address at cursor location.
-
CURSORX - Return text screen cursor column.
-
CURSORY - Return text screen cursor line.
-
DATA literal{,...} - Define data for
READ
statement.
-
DATE$ - Return the current date.
-
DATETIME$ - Return the current date and time.
-
DEC numvar - Decrement numeric variable.
-
DEC(hexstring) - Convert hexadecimal string to integer.
-
DEEK(�!_ext_addr_�|�@page,_address_�) - Read integer from memory.
-
DEF ATTRLIST strvar=attr,... - Create a string list of sprite and/or tile attributes.
-
DEF BYTELIST strvar=byte,... - Create a string list of bytes.
-
DEF FN var(var) = expression - Define user-defined function.
-
DEF INTLIST strvar=integer,... - Create a string list of integers.
-
DEF PALETTELIST strvar=palette,... - Create a string list of palette numbers.
-
DEF RGBLIST strvar=r,g,b|rgbstr;... - Create a string list of RGB values.
-
DEF SPRITE strvar= spritle, x-offset, y-offset ;... - Create a sprite definition.
-
DEF SPRITE strvar= ( cols, rows ) , spritle - Create a sprite definition.
-
DEF SPRITE strvar=^strvar - Create a sprite definition.
-
DEF TILELIST strvar=tileno,... - Create a string list of tile indexes.
-
DEF USR=address - Set USR() machine language routine address.
-
DEF USRINT=address - Set user interupt machine language routine address.
-
DEL filespec - Delete file or directory.
-
DIM array(dim{,...}),... - Create and allocate one or more arrays.
-
DIM array(dim{,...})=expr,... - Create and populate array.
-
DIM(*array) - Return number of dimensions in array.
-
DIM(*array,dim) - Return size of array dimension.
-
DIR - Display disk directory.
-
DOKE {�!_ext_addr_�|�@page,_address_�,integer{;...} - Write one or more integers to memory.
-
DRAW command_string - Not implemented.
-
DRAW TEXT (col,row)),string - Not implemented.
-
DUMP VARS "filespec" - Dump system and BASIC variables to YAML file.
-
EDIT - Not implemented.
-
END - Terminate program execution.
-
ENDKEY - Return key used to exit enhanced INPUT.
-
ERASE *array{,*array...} - Delete arrays.
-
EVAL(string) - Evaluate expression in string.
-
EXP(float) - Return argument to the power of mathematical constant e.
-
FILEDATETIME$(filespec) - Return file timestamp.
-
FILEATTR(filespec) - Return file attribute byte.
-
FILEDIR$(filespec) - Extract path from filespec.
-
FILEEXT$(filespec) - Extract extension from filespec.
-
FILELEN(filespec) - Return file length.
-
FILESTATUS$(filespec) - Return file information as binary string.
-
FILL BYTES {@page},address,oount,byte - Fill block of memory with byte.
-
FILL WORDS {@page},address,oount,integer - Fill block of memory with integer.
-
FILL BITMAP {COLOR fgcolor, bgcolor} - Fill bitmap and/or colormap with byte and/or color(s).
-
FILL COLORMAP (x,y_)-(x,y) COLOR fgcolor, bgcolor - Fill rectangular section of 1bpp colormap.
-
FILL SCREEN {(x,y_)-(x,y)} char - Fill screen with character and/or colors.
-
FILL SCREEN COLOR {(x,y_)-(x,y)} fgcolor,bgcolor - Fill screen with character and/or colors.
-
FILL TILEMAP {(x,y_)-(x,y)} TILE tileno - Fill tilemap with specified tile, attributes and palette.
-
FLOAT(string{,offset}) - Convert four consecutive bytes in string to float.
-
FLOAT$(long) - Convert float to four byte binary string.
-
FOR var=expression TO expression {STEP expression] - Initiate a FOR loop.
-
FRE(float|string) - Return amount of unused variable and array or string space (after forcing garage collection).
-
GET ARGS var{,...} - Read arguments from argument list after
GOSUB
.
-
GET SCREEN (x,y_)-(x,y) *array|^strvar - Copy text screen clip to array or string variable.
-
GET SCREEN CHRS (x,y_)-(x,y) *array|^strvar - Copy text screen clip to array or string variable.
-
GET SCREEN COLORS (x,y_)-(x,y) *array|^strvar - Copy text screen clip to array or string variable.
-
GET TILEMAP (x,y_)-(x,y) *array|^strvar - Copy tilemap clip to array or string variable.
-
GETCHRDEF$(char) - Return character definition.
-
GETBORDERCHR - Return screen border character.
-
GETBORDERCHR$ - Return screen border character as string.
-
GETBORDERCOLOR - Return screen border colors.
-
GETBORDERCOLOR$ - Return screen border colors as string.
-
GETCHRSET - Return character set currently in use.
-
GETCOLOR - Return screen printing colors.
-
GETCURSOR - Return cursor display mode.
-
GETKEY - Wait for key and return ASCII code.
-
GETKEY$ - Wait for key and return as string.
-
GETPALETTE$(palette) - Return palette contents.
-
GETSPEED - Return current turbo setting.
-
GETSPRITE$(spritedef) - Return attributes of each spritle in the spritedef.
-
GETTILE$(tileno) - Return tile pixels.
-
GOSUB lineref{:ARGS expression{,...} {RETURN var{,...}} - Branch to subroutine with optional call and return arguments.
-
GOTO lineref - Branch to line specified by line number or label.
-
HEX$(number) - Convert byte or integer into hexadecimal string.
-
HEX$(string) - Convert ASCII string into hexadecimal string.
-
IF expression GOTO linefref|THEN lineno|statement - Branch to line or execute statements if expression evaluates to true.
-
IN(port) - Read byte from Z80 I/O port.
-
IN$(port,length) - Read multiple bytes from Z80 I/O port.
-
INC numvar - Increment numeric variable.
-
INDEX(*array,string) - Search for string in element of array
-
INMEM({@page,}address,string) - Search for string in memory.
-
INT(expression) - Return expression rounded down to nearest integer.
-
INT(string{,offset}) - Convert two consecutive bytes in string to signed integer.
-
INKEY - Return ASCII code of most recently pressed key.
-
INKEY$ - Return most recently pressed key as string.
-
INPUT {stringliteral;}var{,...} - Prompt for keyboard input and assigns entries to variables.
-
INPUT (col,row),minlen,maxlen,INT var - Enhanced keyboard input routine.
-
INSTR({offset,}haystack,_needle) - Search for string needle in string haystack.
-
JOIN *array$ INTO string DEL delimiter - Join string array elements into delimited string.
-
JOY(stick) - Read one or both game controllers.
-
JOY$(id) - Read wireless game controller.
-
KEY({keycode|string}) - Check if key is currently pressed.
-
LEFT$(string,len) - Return the first up to len characters of string.
-
LEN(string) - Return length of string.
-
LEN(*array) - Return total length of array data.
-
{LET} var=expression - Define and assigns value to variable.
-
LINE {(x1,y1)}-(x2,y2){,{,B}}} - Not implemented.
-
LINEH x,y1,y2 - Not implemented.
-
LINEV x1,x2,y - Not implemented.
-
LIST - Display program lines starting at beginning of program or specified line.
-
LIST$(lineno|NEXT) - Detokenize program line.
-
LLIST - Outputs program lines to printer starting at beginning of program or specified line.
-
LOAD filespec - Load BASIC program into memory.
-
LOAD filespec,�!_ext_addr_�|�{@page,}_address_� - Load binary file into memory.
-
LOAD filespec,*array - Load binary file data into numeric or string array.
-
LOAD filespec,*array,ASC - Load multi-line ASCII file into string array.
-
LOAD filespec,^string - Load up to 255 characters of file into string variable.
-
LOAD BITMAP filespec - Load bitmap file into Video RAM.
-
LOAD CHRSET filespec - Load character set into alternate character buffer.
-
LOAD COLORMAP filespec - Load 1bpp color map file into Video RAM.
-
LOAD DIR {filespec,}*array - Load disk directory filenames into string array.
-
LOAD DIR {filespec,}}*array,ASC - Load formatted disk directory into string array.
-
LOAD DIR {filespec,}*array,BIN - Load binary disk directory into string array.
-
LOAD FNKEYS filespec - Load function key definitions from file.
-
LOAD MODULE - Proposed enhancement.
-
LOAD PALETTE p,filespec{,ASC} - Load file data ino palette.
-
LOAD SCREEN filespec - Load text screen from file.
-
LOAD SCREEN ATTR filespec - Load text colors from file.
-
LOAD SCREEN CHR filespec - Not implemented
-
LOAD TILEMAP filespec - Load tile map into Video RAM.
-
LOAD TILESET filespec - Load tile definitions to Video RAM.
-
LOAD TILESET INDEX tileno,filespec - Load tile definitions relative to start of Video RAM.
-
LOAD TILESET OFFSET tileno,filespec - Load tile definitions relative to end of tilemap/bitmap.
-
LOAD TRACK filespec - Load tracker file track into tracker player buffer.
-
LOCATE x,y - Move text cursor to specified position.
-
LOG(float) - Return natural logarithm of argument.
-
LONG(string{,offset}) - Convert four consecutive bytes in string to unsigned long.
-
LONG$(long) - Convert long to unsigned four byte binary string.
-
LOOP TRACK - Play specified or previously loaded tracker file repeatedly.
-
LPOS(expression_) - Return current column position of printer.
-
LPRINT __ TAB(integer)|SPC(integer)|expression|;|, - Output data to printer.
-
LWR(char) - Lowercases numeric ASCII code or ASCII code of first character of string
-
LWR$(string|byte) - Lowercases argument string or argument ASCII code converted to string.
-
LWRKEY - Return lowercased ASCII code of last key presed.
-
LWRKEY$ - Return lowercased string containing last key pressed.
-
MENU - Not implemented.
-
MID$(string,start{,len}) - Return first up to len or all remaining characters starting at character start of string.
-
MID$(strvar,start_{,len})=string - Replace text in string variable.
-
MKDIR dirname - Create directory.
-
MOUSEB - Return mouse button state.
-
MOUSEW - Return mouse wheel delta.
-
MOUSEX - Return mouse x-position.
-
MOUSEY - Return mouse y-position.
-
NEXT {var,...} - Terminate one or more FOR loops.
-
NEW - Delete program and clears all variables.
-
ON .. integer .. GOSUB lineref,... -
GOSUB
one of several line numbers based on expression.
-
ON .. integer .. GOTO lineref,... -
GOTO
one of several line numbers based on expression.
-
ON ERROR GOTO lineref - Enable or disable error trapping.
-
OFFSET(column,row) - Return offset into Screen or Color RAM.
-
OPEN var TO filespec FOR INPUT|OUTPUT|APPEND - Open file.
-
OUT port,byte|string{,...}{;...} - Write to a Z80 port.
-
PAD$(string,length{,char}) - Pad string on left or right with optional fill character.
-
PAUSE - Halt program execution until key is pressed.
-
PAUSE jiffies - Pauses program execution for the specified amount of time.
-
PAUSE UNTIL expression - Pauses program execution until expression evaluates to true.
-
PAUSE TRACK - Pause currently playing track.
-
PEEK(�!_ext_addr_�|�{@page,}_address_�) - Read byte from memory.
-
PEEK$(�!_ext_addr_�|�{@page,}_address_�,length) - Read string from memory.
-
PEEKCOLOR(address) - Read byte from color RAM.
-
PEEKCOLOR$(address,length) - Read string from color RAM.
-
PEEKSCREEN(address) - Read byte from screen RAM.
-
PEEKSCREEN$(address,length) - Read string from screen RAM.
-
PLAY SAMPLE �!_ext_addr_�|�@page,_address_� - Play digital sample from previously loaded file.
-
PLAY TRACK {filespec} - Play specified or previously loaded tracker file.
-
POINT(x,y) - Return status of bloxel or pixel.
-
POKE �!_ext_addr_�|�{@page,}_address_�,byte|string{;..}. - Write bytes and/or strings to memory.
-
POKE COLOR address,byte|string{;...} - Write bytes and/or strings to color RAM.
-
POKE SCREEN address,byte|string{;...} - Write bytes and/or strings to screen RAM.
-
POS(expression_) - Return cursor position in current line.
-
POSX - Return last pixel or bloxel x-position.
-
POSY - Return 1bpp pixel or bloxel y-position.
-
PRESET (x,y) - Erase bloxel or pixel.
-
PRINT __ {@(x,y)} TAB(integer)|SPC(integer)|expression|;|, - Display data on screen.
-
PSG register,byte{,...} - Write bytes to PSG register
-
PSG register,byte{;...} - Not implemented
-
PSET (x,y) - Draw bloxel or pixel.
-
PUT SCREEN (x,y_) *array|^strvar - Copy clip from array or string variable to text screen.
-
PUT SCREEN CHR (x,y_) *array|^strvar - Copy clip from array or string variable to text screen.
-
PUT SCREEN ATTR (x,y_) *array|^strvar - Copy clip from array or string variable to text screen.
-
PUT TILEMAP (x,y_) *array|^strvar - Copy clip from array or string variable to tilemap.
-
READ var{,...} - Read values from DATA statements into variables.
-
READ *array{,...} - Read values from DATA statements into an array.
-
READ #channel,^strvar,length) - Read string from open file.
-
REM text - Denotes comment.
-
RENAME filespec TO filespec - Rename file or directory
-
RESUME lineref - Clear error condition and continues program execution at specified line
-
RESUME TRACK - Resume playing paused track.
-
RESET *array - Set all array elements to 0 or empty string and collect garbage if string array.
-
RESET BIT - Not implemented
-
RESET BORDER - Set border character and colors to default values.
-
RESET PALETTE palette - Reset palette to default RGB values.
-
RESET SCREEN - Reset current text screen to default settings.
-
RESET SPRITE spritedef|#spritle|* - Reset all spritle properties.
-
RESTORE - Reset READ/DATA pointer to beginning of program or specified line.
-
RESTORE BITMAP|TILEMAP - Not implemented.
-
RESTORE SCREEN - Copy respective screen buffer to current text screen.
-
RETURN {expression{,...}} - Resume program execution after GOSUB, optionally returning results.
-
RGB(r,g,b|rgbstr) - Return integer representing a single palette entry.
-
RGB$(r,g,b|rgbstr) - Return string representing a single palette entry.
-
RIGHT$(string,len) - Return the last up to byte characters of string.
-
RND(integer) - Return new or previous psuedo-random number or seeds the random number generator.
-
RUN - Start program execution at first or specified line.
-
RUN filespec - Load a.0nd runs specified program, cartridge image, or FPGA core.
-
SAVE filespec{,ASC|CAQ|BIN} - Save BASIC program to CAQ or ASCII or raw tokenized file.
-
SAVE filespec,{@page,}address,length - Save memory to binary file.
-
SAVE filespec,*array - Save numeric or string array data to file.
-
SAVE filespec,^strvar - Save string to file.
-
SAVE BITMAP filespec - Save bitmap screen data from Video RAM to file.
-
SAVE CHRSET filespec - Save curent character set to file.
-
SAVE COLORMAP filespec - Save 1bpp color map from Video RAM to file.
-
SAVE FNKEYS filespec - Save function key definitions to file.
-
SAVE PALETTE p,filespec{,ASC} - Save palette contents to file.
-
SAVE SCREEN filespec - Save text screen to file.
-
SAVE SCREEN ATTR filespec - Not implemented
-
SAVE SCREEN CHR filespec - Not implemented
-
SAVE TILEMAP filespec - Save tile map to file.
-
SAVE TILESET tileno,tilecount,filespec - Save tile definitions to disk.
-
SCREEN ,,,, - Set screen mode.
-
SCROLL BITMAP - Not implemented.
-
SCROLL SCREEN - Not implemented.
-
SET BIT - Not implemented
-
SET BORDER {COLOR fgcolor,bgcolor} - Enable color printing mode.
-
SET BREAK ON|OFF - Enable or disable control-c checking.
-
SET CHRDEF char,string - Redefine character.
-
SET COLOR fgcolor,bgcolor - Enable color printing mode.
-
SET COLOR OFF - Disable color printing mode.
-
SET CURSOR ON|OFF - Enable or disable cursor display.
-
SET FAST ON|OFF - Enable or disable turbo mode.
-
SET FILE ERROR ON|OFF - Enable or disable file operations generating BASIC errors.
-
SET FNKEY key TO string - Set auto-typed text when function key is pressed.
-
SET KEY mode - Set alternate keyboard port mode.
-
SET PALETTE palette TO rgblist - Set palette entries.
-
SET SAVE ASC ON|OFF - Enable or disable forced saving of BASIC programs in ASCII format.
-
SET SPEED speed - Set turbo mode.
-
SET SPRITE spritedef {ON|OFF} {POS x,y} - Set sprite properties.
-
SET SPRITE spritedef TILECLIP *array|^strvar - Set sprite to tile indexes and properties in tilemap clip.
-
SET SPRITE spritedef TO proplist - Set sprite properties from combined properties list.
-
SET SPRITE * OFF|CLEAR - Disable or clears all sprites.
-
SET TILE tileno TO tiledata - Write tile definition Video RAM.
-
SET TILE_ tileno TO CHR char, fg_color, bg_color - Convert character definition to tile data and write to Video RAM.
-
SET TILE *array$ - Set multiple tiles from tile array.
-
SET TILEMAP (x,y) TO TILE tileno - Set tilemap cell to tile index, attributes, and palette.
-
SET TILEMAP (x,y) TO integer - Set tilemap cell to integer represeting combined tile index, attributes, and palette.
-
SET TILEMAP OFFSET x,y - Scroll tilemap to specified position.
-
SET TRACK FAST {ON|OFF} - Set tracker playback to 50Hz or 60Hz mode.
-
SET TRACK LOOP {ON|OFF} - Set loop status of active or paused track.
-
SET TRACK SPEED hertz - Set tracker playback rate.
-
SET USRINT ON|OFF - Enable disable user interrupt.
-
SGN(expression) - Return signum of expression.
-
SIN(float) - Return sine of argument.
-
SOUND (duration,frequency) - Generate a tone through the television speaker.
-
SPLIT string INTO *array$ DEL delimiter - Split delimited string into string array elements.
-
SQR(_float) - Return square root of argument.
-
STASH BITMAP - Not implemented.
-
STASH SCREEN - Copy current text screen to respective screen buffer.
-
STASH TILEMAP - Not implemented.
-
STOP - Interrupt program execution.
-
STOP TRACK - Stop currently playing track.
-
STR$(float) - Convert floating point number to ASCII string.
-
STRING$(length{,byte|string}) - Create string of repeated character.
-
STRPTR(strvar) - Return address of text for string variable.
-
SWAP BITMAP - Not implemented.
-
SWAP SCREEN - Swap current text screen with respective screen buffer.
-
SWAP TILEMAP - Not implemented.
-
SWAP VARS var,var - Swap contents of two variables.
-
TAN(float) - Return tangent of argument.
-
TILEMAP(x,y) - Return tile index and properties in tile cell.
-
TILEMAPX - Return X-offset of tilemap.
-
TILEMAPY - Return X-offset of tilemap.
-
TILEOFFSET - Return first free tile index for current graphics mode.
-
TILEOFFSET(gfx_mode) - Return first free tile index for specified graphics mode.
-
TIME$ - Return the current time.
-
TIMER - Return timer count..
-
TIMER = long - Set and start jiffy timer..
-
TRACKFAST - Return -1 if tracker playback is set to fast, else 0.
-
TRACKLOOP - Return -1 if tracker playback is set to loop, else 0.
-
TRACKSPEED - Return tracker playback speed in Hertz.
-
TRACKSTATUS - Return -1 if track is playing, else 0.
-
TRIM$(string{,string}) - Remove characters from both ends of string.
-
TRIMDIR$(filespec) - Remove path from filespec.
-
TRIMEXT$(filespec) - Remove extension from filespec.
-
TRIML$(string{,string}) - Remove characters from left end of string.
-
TRIMR$(string{,string}) - Remove characters from right end of string.
-
TRON - Enable line tracing.
-
TROFF - Disable line tracing.
-
UPR(char) - Uppercases numeric ASCII code or ASCII code of first character of string
-
UPR$(string|byte) - Uppercases argument string or argument ASCII code converted to string.
-
UPRKEY - Return uppercased ASCII code of last key presed.
-
UPRKEY$ - Return uppercased string containing last key pressed.
-
USE CHRSET 0|1|filespec - Copy specified character set to character RAM.
-
USE SCREEN {@page,}text_mode,gfx_mode - Not implemented.
-
USR(float) - Call user-defined machine language routine passing argument and returning result.
-
VAL(string) - Convert ASCII string to floating point number.
-
VARPTR(var{}_|\*_array{}) - Return address of variable, array element, or array
-
VER(expression) - Return System or plusBASIC version as integer.
-
VER$(expression) - Return System or plusBASIC version as printable string.
-
WAIT port,xor_mask{,and_mask} - Pause until specifie bit pattern received from IO port.
-
WORD(string{,offset}) - Convert two consecutive bytes in string to unsigned integer.
-
WORD$(integer) - Convert integer to unsigned two byte binary string.
-
WRITE #channel,^strvar - Write string to open file.
-
WRITE KEYS string - Write string to auto-type buffer.