Alternative BASIC tokens ======================== Gives six spare tokens Modifiers --------- 80 LINE 81 SPC 82 STEP 83 TAB( 84 Operators --------- 85 AND 86 EOR 87 OR 88 DIV Functions and operator ---------------------- 89 MOD Numeric Functions ----------------- 8A OPENIN Open a file for input 8B OPENUP Open a file for update 8C OPENOUT Open a file for output 8D line number Line number 8E ABS Absolute value 8F ACS Arc cosine 90 ADVAL Read input device/buffer state 91 ASC Ascii value 92 ASN Arc sine 93 ATN Arc tangent 94 BGET Get Byte from channel 95 COS Cosine 96 COUNT Count of printed characters 97 DEG Convert radians to degrees 98 EOF End of file 99 ERL Error line 9A ERR Error number 9B EVAL Evaluate expression 9C EXP Exponent base e 9D FALSE Returns zero - false 9E FN Call function 9F GET Wait for keypress A0 INKEY Test for keypress A1 INSTR( Find substring A2 INT Integer A3 LEN Length of string A4 LN Logarithm base e A5 LOG Logarithm base 10 A6 NOT Logical NOT A7 PI 3.1415926535 etc A8 POINT( State of point on screen A9 POS Text x position AA RAD Convert degrees to radians AB RND Random number AC SGN Sign of number AD SIN Sine AE SQR Square root AF TAN Tangent B0 TO TOP of program B1 TRUE Returns -1 - true B2 USR Call machine code B3 VAL Convert string to number B4 VPOS Text y position B5 B6 B7 String functions ---------------- B8 CHR$ Ascii character B9 GET$ Wait for keypress BA INKEY$ Test for keypress BB STR$ Convert number to string BC STRING$ Repeated string Commands and functions ---------------------- BD =LEFT$([,]) Leftmost characters of BE =MID$(,[,]) Middle characters of BF =RIGHT$([,]) Rightmost characters of C0 PAGE= =PAGE Address of current user's program C1 LOMEM= =LOMEM Start address of dynamic variable storage C2 HIMEM= =HIMEM Top of memory used by BASIC C3 TIME[$]= =TIME[$] System elapsed time counter/RTC C4 PTR#= =PTR# Current pointer for an open file C5 EXT#= =EXT# Extent of an open file C6 OSCLI =OSCLI Pass to operating system to execute a command C7 END =END Terminate program Return end of variables C8 MODE =MODE Sends VDU 22,n to the output stream Return current MODE C9 REPORT =REPORT$ Print error message for last error Return last error string CA VDU ... =VDU Sends a list of arguments to the VDU Return VDU variable CB WIDTH =WIDTH Set print output width Return print output width CC DIM var =DIM() Define a structure/space/array Return array size Program commands ---------------- CD BPUT#,[|[;]] Write to output stream CE CALL [,arg list]| Call assembly language routine or BASIC program CF CHAIN Load and run a program D0 CLEAR Clear dynamic variables D1 CLG Sends VDU 16 to the output stream D2 CLOSE# Closes the specified channel D3 CLS Sends VDU 12 to the output stream D4 COLOUR [...] Sends VDU 17,n to the output stream D5 DATA Data for READ statement D6 DEF PROC|FNname[(arg list)] Define a procedure/function D7 DRAW , Sends PLOT 5,x,y D8 ELSE Skip ELSE clause D9 ENDPROC Return from a procedure DA ENVELOPE a,b,c,d,e,f,g,h,i,j,k,l,m,n Define an envelope DB ERROR [EXT] , Generate an [external] error DC FOR var= TO [STEP ] Begin a FOR...NEXT loop DD GCOL [,] Sends VDU 18,[m|0],c to the VDU DE GOSUB Call a BASIC subroutine DF GOTO Branch to specified line E0 IF ... Start of IF structure E1 INPUT [LINE][[,]]var[,var] Request input from user or file E2 LET var = Assignment E3 LOCAL ... Localise things E4 MOVE [BY] , Sends PLOT 4,x,y [PLOT 0,x,y] E5 NEXT [var[,var...]] End FOR...NEXT loop E6 OFF Sends VDU 23,1,0,0,0,0,0,0,0,0 to the output stream E7 ON ... Various E8 PLOT [,], Sends VDU 25,[k|69],x;y; E9 PRINT [TAB(x[,y])][SPC(n)]['][;][~][#][/][[,...][;] Print data to output stream or file EA PROCname|()[(parameter list)] Call a procedure EB READ var[,var...] Read data from DATA statement(s) EC REM any text Remark ED REPEAT Begin a REPEAT...UNTIL loop EE RESTORE Restore various EF RETURN Return from subroutine F0 RUN [] Run the current or loaded program F1 SOUND [ON|OFF|,,,] Generates sounds F2 STOP Stop program and print message F3 THEN Continue to THEN clause F4 TRACE [ON|OFF|...] Control program tracing F5 UNTIL Terminate loop if is non-zero F6 F7 Immediate/Program commands -------------------------- F8 LIST List all or part of program F9 LOAD [,] Load program or data into memory FA SAVE [,,] Save program Immediate commands ------------------ FB AUTO Generate line numbers FC DELETE , Delete program lines FD RENUMBER , Renumber the program lines FE NEW Delete current program & variables FF OLD Recover a program deleted by NEW