ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

2539 lines
110 KiB

  1. ============================================================
  2. GENERAL
  3. ============================================================
  4. OPTION VERSION "BYWATER"
  5. REM INTERNAL ID: B15
  6. REM DESCRIPTION: Bywater BASIC 3
  7. REM REFERENCE: Bywater BASIC Interpreter, version 3.20
  8. REM by Ted A. Campbell, Jon B. Volkoff, Paul Edwards, et al.
  9. REM (c) 2014-2017, Howard Wulf, AF5NE
  10. REM http://wwww.sourceforge.net/bwbasic/
  11. REM bwbasic-3.20.zip
  12. REM
  13. OPTION STRICT OFF
  14. OPTION ANGLE RADIANS
  15. OPTION BUGS ON
  16. OPTION LABELS ON
  17. OPTION COMPARE BINARY
  18. OPTION COVERAGE OFF
  19. OPTION TRACE ON
  20. OPTION ERROR GOTO
  21. OPTION IMPLICIT
  22. OPTION BASE 0
  23. OPTION RECLEN 128
  24. OPTION DATE "%m/%d/%Y"
  25. OPTION TIME "%H:%M:%S"
  26. OPTION PUNCT STRING "$"
  27. OPTION PUNCT DOUBLE "#"
  28. OPTION PUNCT SINGLE "!"
  29. OPTION PUNCT CURRENCY "@"
  30. OPTION PUNCT LONG "&"
  31. OPTION PUNCT INTEGER "%"
  32. OPTION PUNCT BYTE "~"
  33. OPTION PUNCT QUOTE """
  34. OPTION PUNCT COMMENT "'"
  35. OPTION PUNCT STATEMENT ":"
  36. OPTION PUNCT PRINT "?"
  37. OPTION PUNCT INPUT " "
  38. OPTION PUNCT IMAGE " "
  39. OPTION PUNCT LPAREN "("
  40. OPTION PUNCT RPAREN ")"
  41. OPTION PUNCT FILENUM "#"
  42. OPTION PUNCT AT "@"
  43. OPTION USING DIGIT "#"
  44. OPTION USING COMMA ","
  45. OPTION USING PERIOD "."
  46. OPTION USING PLUS "+"
  47. OPTION USING MINUS "-"
  48. OPTION USING EXRAD "^"
  49. OPTION USING DOLLAR "$"
  50. OPTION USING FILLER "*"
  51. OPTION USING LITERAL "_"
  52. OPTION USING FIRST "!"
  53. OPTION USING ALL "&"
  54. OPTION USING LENGTH "\"
  55. ============================================================
  56. COMMANDS
  57. ============================================================
  58. ------------------------------------------------------------
  59. SYNTAX: APPEND filename$
  60. DESCRIPTION: Merges the BASIC program in filename$ into the
  61. current BASIC program; lines in filename$
  62. replace any matching lines in the current
  63. program.
  64. ------------------------------------------------------------
  65. SYNTAX: AS
  66. DESCRIPTION: Syntax Error.
  67. ------------------------------------------------------------
  68. SYNTAX: AUTO [start [, increment]]
  69. DESCRIPTION: Automatic line numbering for manual program
  70. entry. If the line already exists, then an
  71. asterisk is displayed and pressing ENTER
  72. leaves the line as-is. If the line does not
  73. exist, then an asterisk is not displayed and
  74. pressing ENTER terminates AUTO mode.
  75. Regardless whether the line exists, entering
  76. the command MAN will terminate AUTO mode.
  77. AUTO mode is also terminated by any ERROR or
  78. by pressing control-C.
  79. ------------------------------------------------------------
  80. SYNTAX: BREAK line [, ...]]
  81. DESCRIPTION: Diagnostic command to stop execution at the
  82. specified line(s). BREAK only applies to
  83. user-numbered lines. For multi-statement
  84. lines, BREAK only applies to the first
  85. statement. BREAK effectively inserts a
  86. hidden STOP command immediately after the
  87. line number. Once a BREAK occurrs on a
  88. specified line, it is automatically removed.
  89. To remove all existing BREAKs, execute BREAK
  90. without any line numbers.
  91. ------------------------------------------------------------
  92. SYNTAX: BYE
  93. DESCRIPTION: Exits to the operating system.
  94. ------------------------------------------------------------
  95. SYNTAX: CALL subname( [parameter [, ...] ] )
  96. DESCRIPTION: Calls a subroutine that was defined by SUB and
  97. END SUB.
  98. ------------------------------------------------------------
  99. SYNTAX: CASE constant [TO constant]
  100. DESCRIPTION: Introduces an element of a SELECT CASE
  101. statement. Multiple tests must be seperated
  102. a comma. For example: CASE 1, 2 TO 3, IS >
  103. 4, IF < 5
  104. ------------------------------------------------------------
  105. SYNTAX: CASE IF operator constant
  106. DESCRIPTION: Introduces an element of a SELECT CASE
  107. statement. Multiple tests must be seperated
  108. a comma. For example: CASE 1, 2 TO 3, IS >
  109. 4, IF < 5
  110. ------------------------------------------------------------
  111. SYNTAX: CASE IS operator constant
  112. DESCRIPTION: Introduces an element of a SELECT CASE
  113. statement. Multiple tests must be seperated
  114. a comma. For example: CASE 1, 2 TO 3, IS >
  115. 4, IF < 5
  116. ------------------------------------------------------------
  117. SYNTAX: CASE ELSE
  118. DESCRIPTION: Introduces a default SELECT CASE element.
  119. ------------------------------------------------------------
  120. SYNTAX: CHAIN filename$ [, linenumber]
  121. DESCRIPTION: Load and execute another BASIC program,
  122. without clearing common variables. For
  123. System/370, the syntax is CHAIN
  124. filename$,parameter$.
  125. ------------------------------------------------------------
  126. SYNTAX: CHANGE A$ TO X
  127. DESCRIPTION: Changes a string to a numeric array.
  128. ------------------------------------------------------------
  129. SYNTAX: CHANGE X TO A$
  130. DESCRIPTION: Changes a numeric array to a string.
  131. ------------------------------------------------------------
  132. SYNTAX: CLEAR
  133. DESCRIPTION: Sets all numeric variables to 0, and all
  134. string variables to empty strings.
  135. ------------------------------------------------------------
  136. SYNTAX: CLOAD [filename$]
  137. DESCRIPTION: Loads an ASCII BASIC program into memory.
  138. ------------------------------------------------------------
  139. SYNTAX: CLOAD* arrayname
  140. DESCRIPTION: Loads a numeric array from a file saved using
  141. CSAVE*.
  142. ------------------------------------------------------------
  143. SYNTAX: CMDS
  144. DESCRIPTION: Prints a list of all implemented BASIC
  145. commands.
  146. ------------------------------------------------------------
  147. SYNTAX: COMMON variable [, ...]
  148. DESCRIPTION: Designates variables to be passed to a CHAINed
  149. program.
  150. ------------------------------------------------------------
  151. SYNTAX: CONST variable [, ...] = value
  152. DESCRIPTION: Assigns the value to variable. Any later
  153. assignment to the variable causus a VARIABLE
  154. NOT DECLARED error.
  155. ------------------------------------------------------------
  156. SYNTAX: CONT
  157. DESCRIPTION: Continue a BASIC program after a STOP has been
  158. executed. Program resumes at the line after
  159. the STOP.
  160. ------------------------------------------------------------
  161. SYNTAX: CSAVE [filename$]
  162. DESCRIPTION: Saves the current program into the file
  163. filename$ in ASCII format.
  164. ------------------------------------------------------------
  165. SYNTAX: CSAVE* ArrayName
  166. DESCRIPTION: Saves a numeric array into a file for later
  167. loading by CLOAD*.
  168. ------------------------------------------------------------
  169. SYNTAX: DATA constant [, ...]
  170. DESCRIPTION: Stores numeric and string constants to be
  171. accessed by READ.
  172. ------------------------------------------------------------
  173. SYNTAX: DEF FNname[( arg [,...] )] = value
  174. DESCRIPTION: Defines a single-line function. Single-line
  175. functions require an equal sign.
  176. ------------------------------------------------------------
  177. SYNTAX: DEF FNname[( arg [,...] )]
  178. DESCRIPTION: Defines a multiline function. Multi-line DEF
  179. functions do not have an equal sign and must
  180. end with FNEND.
  181. ------------------------------------------------------------
  182. SYNTAX: DEFBYT letter[-letter] [, ...]
  183. DESCRIPTION: Declares variables with single-letter names as
  184. numeric variables.
  185. ------------------------------------------------------------
  186. SYNTAX: DEFCUR letter[-letter] [, ...]
  187. DESCRIPTION: Declares variables with single-letter names as
  188. numeric variables.
  189. ------------------------------------------------------------
  190. SYNTAX: DEFDBL letter[-letter] [, ...]
  191. DESCRIPTION: Declares variables with single-letter names as
  192. numeric variables.
  193. ------------------------------------------------------------
  194. SYNTAX: DEFINT letter[-letter] [, ...]
  195. DESCRIPTION: Declares variables with single-letter names as
  196. numeric variables.
  197. ------------------------------------------------------------
  198. SYNTAX: DEFLNG letter[-letter] [, ...]
  199. DESCRIPTION: Declares variables with single-letter names as
  200. numeric variables.
  201. ------------------------------------------------------------
  202. SYNTAX: DEFSNG letter[-letter] [, ...]
  203. DESCRIPTION: Declares variables with single-letter names as
  204. numeric variables.
  205. ------------------------------------------------------------
  206. SYNTAX: DEFSTR letter[-letter] [, ...]
  207. DESCRIPTION: Declares variables with single-letter names as
  208. string variables.
  209. ------------------------------------------------------------
  210. SYNTAX: DELETE line [- line]
  211. DESCRIPTION: Deletes program lines indicated by the
  212. argument(s). All program lines have a
  213. number, which is visible with the LIST
  214. command. If line numbers are not provided,
  215. they are assigned beginning with 1. Deleting
  216. a non-existing line does not cause an error.
  217. ------------------------------------------------------------
  218. SYNTAX: DIM [# filenum,] variable([ lower TO ] upper)
  219. DESCRIPTION: Declares variables and specifies the
  220. dimensions of array variables. For array
  221. variables, if the lower bound is not
  222. provided, then the OPTION BASE value is used.
  223. If filenum is provided, then the variable is
  224. virtual.
  225. ------------------------------------------------------------
  226. SYNTAX: DO UNTIL value
  227. DESCRIPTION: Top of a DO - LOOP structure. Exits when
  228. value is non-zero.
  229. ------------------------------------------------------------
  230. SYNTAX: DO
  231. DESCRIPTION: Top of a DO - LOOP structure. If the loop is
  232. not terminated by EXIT DO or LOOP UNTIL or
  233. LOOP WHILE, then it will loop forever.
  234. ------------------------------------------------------------
  235. SYNTAX: DO WHILE value
  236. DESCRIPTION: Top of a DO - LOOP structure. Exits when
  237. value is zero.
  238. ------------------------------------------------------------
  239. SYNTAX: DSP variable [, ...]]
  240. DESCRIPTION: Diagnostic command to display the value every
  241. time the variable is assigned. To remove all
  242. existing DSPs, execute DSP without any
  243. variables.
  244. ------------------------------------------------------------
  245. SYNTAX: EDIT
  246. DESCRIPTION: implementation defined.
  247. ------------------------------------------------------------
  248. SYNTAX: ELSE
  249. DESCRIPTION: Introduces a default condition in a multi-line
  250. IF statement.
  251. ------------------------------------------------------------
  252. SYNTAX: ELSEIF
  253. DESCRIPTION: Introduces a secondary condition in a
  254. multi-line IF statement.
  255. ------------------------------------------------------------
  256. SYNTAX: END
  257. DESCRIPTION: Terminates program execution. If the BASIC
  258. program was executed from the operating
  259. system level, then control returns to the
  260. operating system, oterwise control reuturns
  261. to the BASIC prompt.
  262. ------------------------------------------------------------
  263. SYNTAX: END FUNCTION
  264. DESCRIPTION: Specifies the last line of a multi-line
  265. FUNCTION definition.
  266. ------------------------------------------------------------
  267. SYNTAX: END IF
  268. DESCRIPTION: Specifies the last line of a multi-line IF
  269. definition.
  270. ------------------------------------------------------------
  271. SYNTAX: END SELECT
  272. DESCRIPTION: Specifies the last line of a multi-line SELECT
  273. CASE definition.
  274. ------------------------------------------------------------
  275. SYNTAX: END SUB
  276. DESCRIPTION: Specifies the last line of a multi-line SUB
  277. definition.
  278. ------------------------------------------------------------
  279. SYNTAX: ERASE variable [, ...]
  280. DESCRIPTION: Eliminates arrayed variables from a program.
  281. ------------------------------------------------------------
  282. SYNTAX: EXCHANGE variable, variable
  283. DESCRIPTION: Swaps the values of two variables. Both
  284. variables must be of the same type.
  285. ------------------------------------------------------------
  286. SYNTAX: EXIT
  287. DESCRIPTION: Syntax Error.
  288. ------------------------------------------------------------
  289. SYNTAX: EXIT DO
  290. DESCRIPTION: Immediately exits the inner-most DO-LOOP
  291. strucure.
  292. ------------------------------------------------------------
  293. SYNTAX: EXIT FOR
  294. DESCRIPTION: Immediately exits the inner-most FOR-NEXT
  295. strucure.
  296. ------------------------------------------------------------
  297. SYNTAX: EXIT FUNCTION
  298. DESCRIPTION: Immediately exits the inner-most multi-line
  299. FUNCTION strucure.
  300. ------------------------------------------------------------
  301. SYNTAX: EXIT REPEAT
  302. DESCRIPTION: Exit a REPEAT - UNTIL structure.
  303. ------------------------------------------------------------
  304. SYNTAX: EXIT SUB
  305. DESCRIPTION: Immediately exits the inner-most multi-line
  306. SUB strucure.
  307. ------------------------------------------------------------
  308. SYNTAX: EXIT WHILE
  309. DESCRIPTION: Immediately exits the inner-most WHILE-END
  310. strucure.
  311. ------------------------------------------------------------
  312. SYNTAX: FIELD [#] filenum, number AS variable$ [, ...]
  313. DESCRIPTION: Assigns number bytes in the buffer of random
  314. file filenum to the variable variable$. GET
  315. will automatically update the variable, and
  316. PUT will automatically use the variable.
  317. ------------------------------------------------------------
  318. SYNTAX: FNCS
  319. DESCRIPTION: Prints a list of all pre-defined BASIC
  320. functions.
  321. ------------------------------------------------------------
  322. SYNTAX: FNEND
  323. DESCRIPTION: Specifies the last line of a multi-line DEF
  324. function.
  325. ------------------------------------------------------------
  326. SYNTAX: FOR variable = start TO finish [STEP
  327. increment]
  328. DESCRIPTION: Top of a FOR - NEXT structure. The loop will
  329. continue a fixed number of times, which is
  330. determined by the values of start, finish,
  331. and increment.
  332. ------------------------------------------------------------
  333. SYNTAX: FUNCTION [ ( parameter [, ... ] ) ]
  334. DESCRIPTION: Top line of a multi-line FUNCTION definition.
  335. The variable names specified are local to the
  336. FUNCTION definition, and are initialized
  337. BYVAL when the function is invoked by another
  338. routine.
  339. ------------------------------------------------------------
  340. SYNTAX: GO
  341. DESCRIPTION: Syntax Error.
  342. ------------------------------------------------------------
  343. SYNTAX: GO SUB line
  344. DESCRIPTION: Initiates a subroutine call to the line
  345. specified. The subroutine must end with
  346. RETURN. The line may be a number or a label.
  347. ------------------------------------------------------------
  348. SYNTAX: GO TO line
  349. DESCRIPTION: Branches program execution to the specified
  350. line. The line may be a number or a label.
  351. ------------------------------------------------------------
  352. SYNTAX: GOODBYE
  353. DESCRIPTION: Exits to the operating system.
  354. ------------------------------------------------------------
  355. SYNTAX: GOSUB line
  356. DESCRIPTION: Initiates a subroutine call to the line
  357. specified. The subroutine must end with
  358. RETURN. The line may be a number or a label.
  359. ------------------------------------------------------------
  360. SYNTAX: GOTO line
  361. DESCRIPTION: Branches program execution to the specified
  362. line. The line may be a number or a label.
  363. ------------------------------------------------------------
  364. SYNTAX: HELP name
  365. DESCRIPTION: Provides help on the specified name which is a
  366. command name or function name.
  367. ------------------------------------------------------------
  368. SYNTAX: IF value THEN line1 [ELSE line2]
  369. DESCRIPTION: Single line standard IF command. If the value
  370. is non-zero, then branh to line1. If the
  371. value is zero and ELSE is provided, then
  372. branch to line2. Otherwise continue to the
  373. next line. LABELS are not allowed.
  374. ------------------------------------------------------------
  375. SYNTAX: IF value THEN
  376. DESCRIPTION: Top of a multi-line IF - END IF structure. If
  377. the value is non-zero, then the program lines
  378. upto the next ELSE or ELSE IF command are
  379. executed, otherwise the program branches to
  380. the next ELSE or ELSE IF command.
  381. ------------------------------------------------------------
  382. SYNTAX: INPUT "prompt string" , variable [, ...]
  383. DESCRIPTION: Reads input from the terminal after displaying
  384. a prompt.
  385. ------------------------------------------------------------
  386. SYNTAX: INPUT # filenum , variable [, ...]s
  387. DESCRIPTION: Reads input from the file specified by
  388. filenum.
  389. ------------------------------------------------------------
  390. SYNTAX: INPUT variable [, ...]
  391. DESCRIPTION: Reads input from the terminal.
  392. ------------------------------------------------------------
  393. SYNTAX: INPUT LINE variable$
  394. DESCRIPTION: Reads entire line from the terminal into
  395. variable$.
  396. ------------------------------------------------------------
  397. SYNTAX: INPUT LINE # filenum , variable$
  398. DESCRIPTION: Reads entire line from a file into variable$.
  399. ------------------------------------------------------------
  400. SYNTAX: INPUT LINE "prompt string" , variable$
  401. DESCRIPTION: Reads entire line from the terminal into
  402. variable$ after displaying a prompt
  403. ------------------------------------------------------------
  404. SYNTAX: [LET] variable [, ...] = value
  405. DESCRIPTION: Assigns the value to the variable. The LET
  406. keyword is optional.
  407. ------------------------------------------------------------
  408. SYNTAX: LINE
  409. DESCRIPTION: Syntax Error.
  410. ------------------------------------------------------------
  411. SYNTAX: LINE INPUT [[#] filenum,]["prompt string";]
  412. variable$
  413. DESCRIPTION: Reads entire line from the keyboard or a file
  414. into variable$.
  415. ------------------------------------------------------------
  416. SYNTAX: LIST line1 [- line2]
  417. DESCRIPTION: Lists BASIC program lines from line1 to line2
  418. to the console on stdout.
  419. ------------------------------------------------------------
  420. SYNTAX: LISTNH line1 [- line2]
  421. DESCRIPTION: Lists BASIC program lines from line1 to line2
  422. to the console on stdout.
  423. ------------------------------------------------------------
  424. SYNTAX: LLIST line1 [- line2]
  425. DESCRIPTION: Lists BASIC program lines from line1 to line2
  426. to the printer on stderr.
  427. ------------------------------------------------------------
  428. SYNTAX: LOAD [filename$]
  429. DESCRIPTION: Loads an ASCII BASIC program into memory.
  430. ------------------------------------------------------------
  431. SYNTAX: LOOP UNTIL value
  432. DESCRIPTION: Bottom of a DO - LOOP structure. Exits when
  433. value is nonz-zero.
  434. ------------------------------------------------------------
  435. SYNTAX: LOOP WHILE value
  436. DESCRIPTION: Bottom of a DO - LOOP structure. Exits when
  437. value is zero.
  438. ------------------------------------------------------------
  439. SYNTAX: LOOP
  440. DESCRIPTION: Bottom of a DO - LOOP structure. If the loop
  441. is not terminated by EXIT DO or DO UNTIL or
  442. DO WHILE, then it will loop forever.
  443. ------------------------------------------------------------
  444. SYNTAX: LPRINT [USING format-string$;] value ...
  445. DESCRIPTION: Send output to the printer (stderr).
  446. ------------------------------------------------------------
  447. SYNTAX: LSET variable$ = value
  448. DESCRIPTION: Left-aligns the value into variable$. If the
  449. length of the value is too short, then it is
  450. padded on the right with spaces. If the
  451. length of the value is too long, then it is
  452. truncated on the right. This is only for use
  453. with variables assigned to a random access
  454. buffer with FIELD command.
  455. ------------------------------------------------------------
  456. SYNTAX: MAINTAINER
  457. DESCRIPTION: This command is reserved for use by the
  458. Bywater BASIC maintainer. It is not for the
  459. BASIC programmer.
  460. ------------------------------------------------------------
  461. SYNTAX: MAINTAINER CMDS
  462. DESCRIPTION: Syntax Error.
  463. ------------------------------------------------------------
  464. SYNTAX: MAINTAINER CMDS HTML
  465. DESCRIPTION: Dump COMMAND vs VERSION as HTML table
  466. ------------------------------------------------------------
  467. SYNTAX: MAINTAINER CMDS ID
  468. DESCRIPTION: Dump COMMAND #define.
  469. ------------------------------------------------------------
  470. SYNTAX: MAINTAINER CMDS MANUAL
  471. DESCRIPTION: Dump COMMAND manual.
  472. ------------------------------------------------------------
  473. SYNTAX: MAINTAINER CMDS_SWITCH
  474. DESCRIPTION: Dump COMMAND switch.
  475. ------------------------------------------------------------
  476. SYNTAX: MAINTAINER CMDS TABLE
  477. DESCRIPTION: Dump COMMAND table.
  478. ------------------------------------------------------------
  479. SYNTAX: MAINTAINER DEBUG
  480. DESCRIPTION: Syntax Error.
  481. ------------------------------------------------------------
  482. SYNTAX: MAINTAINER DEBUG OFF
  483. DESCRIPTION: Disable degug tracing.
  484. ------------------------------------------------------------
  485. SYNTAX: MAINTAINER DEBUG ON
  486. DESCRIPTION: Enable degug tracing.
  487. ------------------------------------------------------------
  488. SYNTAX: MAINTAINER FNCS
  489. DESCRIPTION: Syntax Error.
  490. ------------------------------------------------------------
  491. SYNTAX: MAINTAINER FNCS HTML
  492. DESCRIPTION: Dump FUNCTION vs VERSION as HTML table.
  493. ------------------------------------------------------------
  494. SYNTAX: MAINTAINER FNCS ID
  495. DESCRIPTION: Dump FUNCTION #define.
  496. ------------------------------------------------------------
  497. SYNTAX: MAINTAINER FNCS MANUAL
  498. DESCRIPTION: Dump FUNCTION manual.
  499. ------------------------------------------------------------
  500. SYNTAX: MAINTAINER FNCS SWITCH
  501. DESCRIPTION: Dump FUNCTION switch.
  502. ------------------------------------------------------------
  503. SYNTAX: MAINTAINER FNCS TABLE
  504. DESCRIPTION: Dump FUNCTION table.
  505. ------------------------------------------------------------
  506. SYNTAX: MAINTAINER MANUAL
  507. DESCRIPTION: Dump manual for the currently selected OPTION
  508. VERSION.
  509. ------------------------------------------------------------
  510. SYNTAX: MAINTAINER STACK
  511. DESCRIPTION: Dump the BASIC stack.
  512. ------------------------------------------------------------
  513. SYNTAX: MARGIN # filenumber, width
  514. DESCRIPTION: Sets the file margin for writing; filenumber
  515. <= 0 is ignored.
  516. ------------------------------------------------------------
  517. SYNTAX: MERGE filename$
  518. DESCRIPTION: Merges the BASIC program in filename$ into the
  519. current BASIC program. Lines in filename$
  520. replace any matching lines in the current
  521. program.
  522. ------------------------------------------------------------
  523. SYNTAX: MID$( variable$, start [, count ] ) = value
  524. DESCRIPTION: Replaces a subtring of variable$ with value.
  525. ------------------------------------------------------------
  526. SYNTAX: NAME old$ AS new$
  527. DESCRIPTION: Changes the name of an existing file.
  528. ------------------------------------------------------------
  529. SYNTAX: NEW
  530. DESCRIPTION: Deletes the program in memory and clears all
  531. variables.
  532. ------------------------------------------------------------
  533. SYNTAX: NEXT [variable]
  534. DESCRIPTION: The bottom line of a FOR - NEXT structure.
  535. ------------------------------------------------------------
  536. SYNTAX: OF
  537. DESCRIPTION: Syntax Error.
  538. ------------------------------------------------------------
  539. SYNTAX: ON value GOSUB line [, ...]
  540. DESCRIPTION: Calls based on the rounded value.
  541. ------------------------------------------------------------
  542. SYNTAX: ON value GOTO line [, ...]
  543. DESCRIPTION: Branches based on the rounded value.
  544. ------------------------------------------------------------
  545. SYNTAX: ON ERROR
  546. DESCRIPTION: Syntax Error.
  547. ------------------------------------------------------------
  548. SYNTAX: ON ERROR GOSUB errline
  549. DESCRIPTION: When a trappable error occurs, execute GOSUB
  550. errline. The error handler must terminate
  551. with a RETURN command. If the line number is
  552. 0 (zerp), then use the default error handler.
  553. Valid when OPTION ERROR GOSUB.
  554. ------------------------------------------------------------
  555. SYNTAX: ON ERROR GOTO errline
  556. DESCRIPTION: When a trappable error occurs, execute GOTO
  557. errline. The error handler must terminate
  558. with a RESUME command. If the line number is
  559. 0 (zerp), then use the default error handler.
  560. Valid when OPTION ERROR GOTO.
  561. ------------------------------------------------------------
  562. SYNTAX: ON ERROR RESUME
  563. DESCRIPTION: Syntax Error.
  564. ------------------------------------------------------------
  565. SYNTAX: ON ERROR RESUME NEXT
  566. DESCRIPTION: When a trappable error occurs, execution
  567. continues with the next line. Valid when
  568. OPTION ERROR GOTO.
  569. ------------------------------------------------------------
  570. SYNTAX: ON ERROR RETURN
  571. DESCRIPTION: Syntax Error.
  572. ------------------------------------------------------------
  573. SYNTAX: ON ERROR RETURN NEXT
  574. DESCRIPTION: When a trappable error occurs, execution
  575. continues with the next line. Valid when
  576. OPTION ERROR GOSUB.
  577. ------------------------------------------------------------
  578. SYNTAX: ON TIMER count GOSUB line
  579. DESCRIPTION: Specifies a line (or label) to gosub when
  580. count seconds have elaspsed after TIMER ON is
  581. executed. The interrupt routine should end
  582. with a RETURN command. Timer events only
  583. occur in running BASIC programs. The
  584. resolution of the clock is implementation
  585. defined.
  586. ------------------------------------------------------------
  587. SYNTAX: OPEN filename$
  588. FOR INPUT|OUTPUT|APPEND|BINARY|RANDOM|VIRTUAL
  589. AS [#] fileenumber
  590. [LEN [=] record-length]
  591. DESCRIPTION: Opens a file for use.
  592. RANDOM requires LEN.
  593. ------------------------------------------------------------
  594. SYNTAX: OPTION
  595. DESCRIPTION: Syntax Error.
  596. ------------------------------------------------------------
  597. SYNTAX: OPTION ANGLE
  598. DESCRIPTION: Syntax Error.
  599. ------------------------------------------------------------
  600. SYNTAX: OPTION ANGLE DEGREES
  601. DESCRIPTION: Configures these math functions to accept and
  602. return angles in degrees: ACOS, ACS, ANGLE,
  603. ARCSIN, ASIN, ASN, ARCTAN, ATN, ATAN, COS,
  604. COT, CSC, SEC, SIN and TAN.
  605. ------------------------------------------------------------
  606. SYNTAX: OPTION ANGLE GRADIANS
  607. DESCRIPTION: Configures these math functions to accept and
  608. return angles in gradians: ACOS, ANGLE,
  609. ASIN, ASN, ATN, ATAN, COS, COT, CSC, SEC, SIN
  610. and TAN.
  611. ------------------------------------------------------------
  612. SYNTAX: OPTION ANGLE RADIANS
  613. DESCRIPTION: Configures these math functions to accept and
  614. return angles in radians: ACOS, ANGLE, ASIN,
  615. ASN, ATN, ATAN, COS, COT, CSC, SEC, SIN and
  616. TAN.
  617. ------------------------------------------------------------
  618. SYNTAX: OPTION ARITHMETIC
  619. DESCRIPTION: Syntax Error.
  620. ------------------------------------------------------------
  621. SYNTAX: OPTION ARITHMETIC DECIMAL
  622. DESCRIPTION: Currently has no effect.
  623. ------------------------------------------------------------
  624. SYNTAX: OPTION ARITHMETIC FIXED
  625. DESCRIPTION: Currently has no effect.
  626. ------------------------------------------------------------
  627. SYNTAX: OPTION ARITHMETIC NATIVE
  628. DESCRIPTION: Currently has no effect.
  629. ------------------------------------------------------------
  630. SYNTAX: OPTION BASE integer
  631. DESCRIPTION: Sets the default lowest array subscript.
  632. ------------------------------------------------------------
  633. SYNTAX: OPTION BUGS
  634. DESCRIPTION: Syntax Error.
  635. ------------------------------------------------------------
  636. SYNTAX: OPTION BUGS BOOLEAN
  637. DESCRIPTION: Boolean results are 1 or 0 instead of bitwise.
  638. ------------------------------------------------------------
  639. SYNTAX: OPTION BUGS OFF
  640. DESCRIPTION: Disables bugs commonly found in many BASIC
  641. dialects.
  642. ------------------------------------------------------------
  643. SYNTAX: OPTION BUGS ON
  644. DESCRIPTION: Enables bugs commonly found in many BASIC
  645. dialects.
  646. ------------------------------------------------------------
  647. SYNTAX: OPTION COMPARE
  648. DESCRIPTION: Syntax Error.
  649. ------------------------------------------------------------
  650. SYNTAX: OPTION COMPARE BINARY
  651. DESCRIPTION: Causes string comparisons to be
  652. case-sensitive.
  653. ------------------------------------------------------------
  654. SYNTAX: OPTION COMPARE DATABASE
  655. DESCRIPTION: Causes string comparisons to be
  656. case-insensitive.
  657. ------------------------------------------------------------
  658. SYNTAX: OPTION COMPARE TEXT
  659. DESCRIPTION: Causes string comparisons to be
  660. case-insensitive.
  661. ------------------------------------------------------------
  662. SYNTAX: OPTION COVERAGE
  663. DESCRIPTION: Syntax Error.
  664. ------------------------------------------------------------
  665. SYNTAX: OPTION COVERAGE OFF
  666. DESCRIPTION: Disables BASIC code coverage recording,
  667. displayed using the LIST command.
  668. ------------------------------------------------------------
  669. SYNTAX: OPTION COVERAGE ON
  670. DESCRIPTION: Enables BASIC code coverage recording,
  671. displayed using the LIST command.
  672. ------------------------------------------------------------
  673. SYNTAX: OPTION DATE format$
  674. DESCRIPTION: Sets the date format string used by C
  675. strftime() for DATE$.
  676. ------------------------------------------------------------
  677. SYNTAX: OPTION DIGITS integer
  678. DESCRIPTION: Sets the number of significant digits for
  679. PRINT. Setting the value to zero restores
  680. the default.
  681. ------------------------------------------------------------
  682. SYNTAX: OPTION DISABLE
  683. DESCRIPTION: Syntax Error.
  684. ------------------------------------------------------------
  685. SYNTAX: OPTION DISABLE COMMAND name$
  686. DESCRIPTION: Disables the specified BASIC command.
  687. ------------------------------------------------------------
  688. SYNTAX: OPTION DISABLE FUNCTION name$
  689. DESCRIPTION: Disables the specified BASIC function.
  690. ------------------------------------------------------------
  691. SYNTAX: OPTION DISABLE OPERATOR name$
  692. DESCRIPTION: Disables the specified BASIC operator.
  693. ------------------------------------------------------------
  694. SYNTAX: OPTION EDIT string$
  695. DESCRIPTION: Sets the program name used by the EDIT
  696. command.
  697. ------------------------------------------------------------
  698. SYNTAX: OPTION ENABLE
  699. DESCRIPTION: Syntax Error.
  700. ------------------------------------------------------------
  701. SYNTAX: OPTION ENABLE COMMAND name$
  702. DESCRIPTION: Enables the specified BASIC command.
  703. ------------------------------------------------------------
  704. SYNTAX: OPTION ENABLE FUNCTION name$
  705. DESCRIPTION: Enables the specified BASIC function.
  706. ------------------------------------------------------------
  707. SYNTAX: OPTION ENABLE OPERATOR name$
  708. DESCRIPTION: Enables the specified BASIC operator.
  709. ------------------------------------------------------------
  710. SYNTAX: OPTION ERROR
  711. DESCRIPTION: Syntax Error.
  712. ------------------------------------------------------------
  713. SYNTAX: OPTION ERROR GOSUB
  714. DESCRIPTION: When an error occurs, GOSUB to the error
  715. handler. The error handler exits with
  716. RETURN.
  717. ------------------------------------------------------------
  718. SYNTAX: OPTION ERROR GOTO
  719. DESCRIPTION: When an error occurs, GOTO to the error
  720. handler. The error handler exits with
  721. RESUME.
  722. ------------------------------------------------------------
  723. SYNTAX: OPTION EXPLICIT
  724. DESCRIPTION: All variables must be declared using DIM.
  725. ------------------------------------------------------------
  726. SYNTAX: OPTION EXTENSION string$
  727. DESCRIPTION: Sets the BASIC filename extension, commonly
  728. ".bas".
  729. ------------------------------------------------------------
  730. SYNTAX: OPTION FILES string$
  731. DESCRIPTION: Sets the program name used by the FILES
  732. command.
  733. ------------------------------------------------------------
  734. SYNTAX: OPTION IMPLICIT
  735. DESCRIPTION: Variables need not be declared using DIM,
  736. provided arrays have no more that 10
  737. elements. This is the opposite of OPTION
  738. EXPLICIT, and is the default for all versions
  739. of BASIC.
  740. ------------------------------------------------------------
  741. SYNTAX: OPTION INDENT integer
  742. DESCRIPTION: Sets indention level for LIST. Zero means no
  743. indention. Default is 2.
  744. ------------------------------------------------------------
  745. SYNTAX: OPTION LABELS
  746. DESCRIPTION: Syntax Error.
  747. ------------------------------------------------------------
  748. SYNTAX: OPTION LABELS OFF
  749. DESCRIPTION: Disables text labels.
  750. ------------------------------------------------------------
  751. SYNTAX: OPTION LABELS ON
  752. DESCRIPTION: Enables text labels.
  753. ------------------------------------------------------------
  754. SYNTAX: OPTION PROMPT string$
  755. DESCRIPTION: Sets the BASIC prompt.
  756. ------------------------------------------------------------
  757. SYNTAX: OPTION PUNCT
  758. DESCRIPTION: Syntax Error.
  759. ------------------------------------------------------------
  760. SYNTAX: OPTION PUNCT AT char$
  761. DESCRIPTION: Sets the PRINT AT character, commonly "@".
  762. ------------------------------------------------------------
  763. SYNTAX: OPTION PUNCT BYTE char$
  764. DESCRIPTION: Sets the suffix character that indicates a
  765. variable is of type BYTE, commonly "~".
  766. ------------------------------------------------------------
  767. SYNTAX: OPTION PUNCT COMMENT char$
  768. DESCRIPTION: Sets the shortcut COMMENT character.
  769. ------------------------------------------------------------
  770. SYNTAX: OPTION PUNCT CURRENCY char$
  771. DESCRIPTION: Sets the suffix character that indicates a
  772. variable is of type CURRENCY, commonly "@".
  773. ------------------------------------------------------------
  774. SYNTAX: OPTION PUNCT DOUBLE char$
  775. DESCRIPTION: Sets the suffix character that indicates a
  776. variable is of type DOUBLE, commonly "#".
  777. ------------------------------------------------------------
  778. SYNTAX: OPTION PUNCT FILENUM char$
  779. DESCRIPTION: Sets the FILE NUMBER prefix character,
  780. commonly "#".
  781. ------------------------------------------------------------
  782. SYNTAX: OPTION PUNCT IMAGE char$
  783. DESCRIPTION: Sets the shortcut IMAGE character, commonly
  784. ":".
  785. ------------------------------------------------------------
  786. SYNTAX: OPTION PUNCT INPUT char$
  787. DESCRIPTION: Sets the shortcut INPUT character, commonly
  788. "!".
  789. ------------------------------------------------------------
  790. SYNTAX: OPTION PUNCT INTEGER char$
  791. DESCRIPTION: Sets the suffix character that indicates a
  792. variable is of type INTEGER, commonly "%".
  793. ------------------------------------------------------------
  794. SYNTAX: OPTION PUNCT LONG char$
  795. DESCRIPTION: Sets the suffix character that indicates a
  796. variable is of type LONG, commonly "&".
  797. ------------------------------------------------------------
  798. SYNTAX: OPTION PUNCT LPAREN char$
  799. DESCRIPTION: Sets the LEFT PARENTHESIS character, commonly
  800. "(".
  801. ------------------------------------------------------------
  802. SYNTAX: OPTION PUNCT_PRINT char$
  803. DESCRIPTION: Sets the shortcut PRINT character, commonly
  804. "?".
  805. ------------------------------------------------------------
  806. SYNTAX: OPTION PUNCT QUOTE char$
  807. DESCRIPTION: Sets the QUOTE character, commonly """
  808. ------------------------------------------------------------
  809. SYNTAX: OPTION PUNCT RPAREN char$
  810. DESCRIPTION: Sets the RIGHT PARENTHESIS character, commonly
  811. ")".
  812. ------------------------------------------------------------
  813. SYNTAX: OPTION PUNCT SINGLE char$
  814. DESCRIPTION: Sets the suffix character that indicates a
  815. variable is of type SINGLE, commonly "!".
  816. ------------------------------------------------------------
  817. SYNTAX: OPTION PUNCT STATEMENT char$
  818. DESCRIPTION: Sets the statement seperator character,
  819. commonly ":".
  820. ------------------------------------------------------------
  821. SYNTAX: OPTION PUNCT STRING char$
  822. DESCRIPTION: Sets the suffix character that indicates a
  823. variable is of type STRING, commonly "$".
  824. ------------------------------------------------------------
  825. SYNTAX: OPTION RECLEN integer
  826. DESCRIPTION: Sets the default RANDOM record length.
  827. ------------------------------------------------------------
  828. SYNTAX: OPTION RENUM string$
  829. DESCRIPTION: Sets the program name used by the RENUM
  830. command.
  831. ------------------------------------------------------------
  832. SYNTAX: OPTION ROUND
  833. DESCRIPTION: Syntax Error.
  834. ------------------------------------------------------------
  835. SYNTAX: OPTION ROUND BANK
  836. DESCRIPTION: Round using the Banker rule.
  837. ------------------------------------------------------------
  838. SYNTAX: OPTION ROUND MATH
  839. DESCRIPTION: Round using mathematical rules.
  840. ------------------------------------------------------------
  841. SYNTAX: OPTION ROUND TRUNCATE
  842. DESCRIPTION: Round using truncation.
  843. ------------------------------------------------------------
  844. SYNTAX: OPTION SCALE integer
  845. DESCRIPTION: Sets the number of digits to round after the
  846. decimal point for PRINT. Setting the value
  847. to zero disables rounding.
  848. ------------------------------------------------------------
  849. SYNTAX: OPTION SLEEP double
  850. DESCRIPTION: Sets multiplier for SLEEP and WAIT. Zero
  851. means no waiting. Default is 1.
  852. ------------------------------------------------------------
  853. SYNTAX: OPTION STDERR filename$
  854. DESCRIPTION: Sets the file used for STDERR, which is used
  855. by LPRINT commands.
  856. ------------------------------------------------------------
  857. SYNTAX: OPTION STDIN filename$
  858. DESCRIPTION: Sets the file used for STDIN, which is used by
  859. INPUT commands.
  860. ------------------------------------------------------------
  861. SYNTAX: OPTION STDOUT filename$
  862. DESCRIPTION: Sets the file used for STDOUT, which is used
  863. by PRINT commands.
  864. ------------------------------------------------------------
  865. SYNTAX: OPTION STRICT
  866. DESCRIPTION: Syntax Error.
  867. ------------------------------------------------------------
  868. SYNTAX: OPTION STRICT OFF
  869. DESCRIPTION: Disables checking for implicit array creation
  870. without using the DIM command.
  871. ------------------------------------------------------------
  872. SYNTAX: OPTION STRICT ON
  873. DESCRIPTION: Enables checking for implicit array creation
  874. without using the DIM command.
  875. ------------------------------------------------------------
  876. SYNTAX: OPTION TERMINAL
  877. DESCRIPTION: Syntax Error.
  878. ------------------------------------------------------------
  879. SYNTAX: OPTION TERMINAL ADM
  880. DESCRIPTION: Enables ADM-3A terminal control codes for CLS,
  881. COLOR, and LOCATE.
  882. ------------------------------------------------------------
  883. SYNTAX: OPTION TERMINAL ANSI
  884. DESCRIPTION: Enables ANSI terminal control codes for CLS,
  885. COLOR, and LOCATE.
  886. ------------------------------------------------------------
  887. SYNTAX: OPTION TERMINAL NONE
  888. DESCRIPTION: Disables terminal control codes for CLS,
  889. COLOR, and LOCATE.
  890. ------------------------------------------------------------
  891. SYNTAX: OPTION TIME format$
  892. DESCRIPTION: Sets the time format string used by C
  893. strftime() for TIME$.
  894. ------------------------------------------------------------
  895. SYNTAX: OPTION TRACE
  896. DESCRIPTION: Syntax Error.
  897. ------------------------------------------------------------
  898. SYNTAX: OPTION TRACE OFF
  899. DESCRIPTION: Disables displaying a stack trace when an
  900. ERROR occurs.
  901. ------------------------------------------------------------
  902. SYNTAX: OPTION TRACE ON
  903. DESCRIPTION: Enables displaying a stack trace when an ERROR
  904. occurs.
  905. ------------------------------------------------------------
  906. SYNTAX: OPTION USING
  907. DESCRIPTION: Syntax Error.
  908. ------------------------------------------------------------
  909. SYNTAX: OPTION USING ALL char$
  910. DESCRIPTION: Specifies the magic ALL character for the
  911. PRINT USING command. A common value is "&".
  912. ------------------------------------------------------------
  913. SYNTAX: OPTION USING COMMA char$
  914. DESCRIPTION: Specifies the magic COMMA character for the
  915. PRINT USING command. A common value is ",".
  916. ------------------------------------------------------------
  917. SYNTAX: OPTION USING DIGIT char$
  918. DESCRIPTION: Specifies the magic DIGIT character for the
  919. PRINT USING command. A common value is "#".
  920. ------------------------------------------------------------
  921. SYNTAX: OPTION USING DOLLAR char$
  922. DESCRIPTION: Specifies the magic DOLLAR character for the
  923. PRINT USING command. A common value is "$".
  924. ------------------------------------------------------------
  925. SYNTAX: OPTION USING EXRAD char$
  926. DESCRIPTION: Specifies the magic EXRAD character for the
  927. PRINT USING command. A common value is "^".
  928. ------------------------------------------------------------
  929. SYNTAX: OPTION USING FILLER char$
  930. DESCRIPTION: Specifies the magic FILLER character for the
  931. PRINT USING command. A common value is "*".
  932. ------------------------------------------------------------
  933. SYNTAX: OPTION USING FIRST char$
  934. DESCRIPTION: Specifies the magic FIRST character for the
  935. PRINT USING command. A common value is "!".
  936. ------------------------------------------------------------
  937. SYNTAX: OPTION USING LENGTH char$
  938. DESCRIPTION: Specifies the magic LENGTH character for the
  939. PRINT USING command. A common value is "\".
  940. ------------------------------------------------------------
  941. SYNTAX: OPTION USING LITERAL char$
  942. DESCRIPTION: Specifies the magic LITERAL character for the
  943. PRINT USING command. A common value is "_".
  944. ------------------------------------------------------------
  945. SYNTAX: OPTION USING MINUS char$
  946. DESCRIPTION: Specifies the magic MINUS character for the
  947. PRINT USING command. A common value is "-".
  948. ------------------------------------------------------------
  949. SYNTAX: OPTION USING PERIOD char$
  950. DESCRIPTION: Specifies the magic PERIOD character for the
  951. PRINT USING command. A common value is ".".
  952. ------------------------------------------------------------
  953. SYNTAX: OPTION USING PLUS char$
  954. DESCRIPTION: Specifies the magic PLUS character for the
  955. PRINT USING command. A common value is "+".
  956. ------------------------------------------------------------
  957. SYNTAX: OPTION VERSION version$
  958. DESCRIPTION: Selects a specific BASIC version, which is a
  959. combination of OPTION settings, commands,
  960. functions and operators. If no version is
  961. specified, displays a list of the available
  962. versions.
  963. ------------------------------------------------------------
  964. SYNTAX: OPTION ZONE integer
  965. DESCRIPTION: Sets the PRINT zone width. Setting the value
  966. to zero restores the default.
  967. ------------------------------------------------------------
  968. SYNTAX: POP
  969. DESCRIPTION: Pops one GOSUB from the return stack.
  970. ------------------------------------------------------------
  971. SYNTAX: PRINT # filenum , [USING format$;] value ...
  972. DESCRIPTION: Sends output to a file.
  973. ------------------------------------------------------------
  974. SYNTAX: PRINT [USING format$;] value ...
  975. DESCRIPTION: Sends output to the screen.
  976. ------------------------------------------------------------
  977. SYNTAX: QUIT
  978. DESCRIPTION: Exits to the operating system.
  979. ------------------------------------------------------------
  980. SYNTAX: READ variable [, ...]
  981. DESCRIPTION: Reads values from DATA statements.
  982. ------------------------------------------------------------
  983. SYNTAX: RECALL ArrayName
  984. DESCRIPTION: Loads a numeric array from a file saved using
  985. STORE.
  986. ------------------------------------------------------------
  987. SYNTAX: REM ...
  988. DESCRIPTION: Remark.
  989. ------------------------------------------------------------
  990. SYNTAX: RENUM
  991. DESCRIPTION: Implementation defined.
  992. ------------------------------------------------------------
  993. SYNTAX: REPEAT
  994. DESCRIPTION: Top of a REPEAT - UNTIL structure.
  995. ------------------------------------------------------------
  996. SYNTAX: RESTORE [line]
  997. DESCRIPTION: Resets the line used for the next READ
  998. statement. line may be either a number or a
  999. label.
  1000. ------------------------------------------------------------
  1001. SYNTAX: RESUME
  1002. DESCRIPTION: Used in an error handler to specify the next
  1003. line to execute. Branch to ERL.
  1004. ------------------------------------------------------------
  1005. SYNTAX: RESUME line
  1006. DESCRIPTION: Used in an error handler to specify the next
  1007. line to execute. Branch to the specified
  1008. line.
  1009. ------------------------------------------------------------
  1010. SYNTAX: RESUME NEXT
  1011. DESCRIPTION: Used in an error handler to specify the next
  1012. line to execute. Branch to the line after
  1013. ERL.
  1014. ------------------------------------------------------------
  1015. SYNTAX: RESUME 0
  1016. DESCRIPTION: Used in an error handler to specify the next
  1017. line to execute. Branch to ERL.
  1018. ------------------------------------------------------------
  1019. SYNTAX: RETURN
  1020. DESCRIPTION: Concludes a subroutine called by GOSUB.
  1021. ------------------------------------------------------------
  1022. SYNTAX: RSET variable$ = value
  1023. DESCRIPTION: Right-aligns the value into variable$. If the
  1024. length of the value is too short, then it is
  1025. padded on the left with spaces. If the
  1026. length of the value is too long, then it is
  1027. truncated on the right. This is only for use
  1028. with variables assigned to a random access
  1029. buffer with FIELD command.
  1030. ------------------------------------------------------------
  1031. SYNTAX: RUN filename$
  1032. DESCRIPTION: Loads a new BAASIC program and executes the
  1033. program from the start.
  1034. ------------------------------------------------------------
  1035. SYNTAX: RUN line
  1036. DESCRIPTION: Executes the program in memory beginning at
  1037. line.
  1038. ------------------------------------------------------------
  1039. SYNTAX: RUN
  1040. DESCRIPTION: Executes the program in memory from the start.
  1041. ------------------------------------------------------------
  1042. SYNTAX: RUNNH line
  1043. DESCRIPTION: Executes the program in memory beginning at
  1044. line.
  1045. ------------------------------------------------------------
  1046. SYNTAX: RUNNH filename$
  1047. DESCRIPTION: Loads a new BAASIC program and executes the
  1048. program from the start.
  1049. ------------------------------------------------------------
  1050. SYNTAX: RUNNH
  1051. DESCRIPTION: Executes the program in memory from the start.
  1052. ------------------------------------------------------------
  1053. SYNTAX: SAVE [filename$]
  1054. DESCRIPTION: Saves the current program into the file
  1055. filename$ in ASCII format.
  1056. ------------------------------------------------------------
  1057. SYNTAX: SELECT
  1058. DESCRIPTION: Syntax Error.
  1059. ------------------------------------------------------------
  1060. SYNTAX: SELECT CASE value
  1061. DESCRIPTION: Introduces a multi-line conditional selection
  1062. statement.
  1063. ------------------------------------------------------------
  1064. SYNTAX: STEP
  1065. DESCRIPTION: Syntax Error.
  1066. ------------------------------------------------------------
  1067. SYNTAX: STOP
  1068. DESCRIPTION: Interrupts program execution and displays the
  1069. line number of the STOP command. For use
  1070. when debugging BASIC programs. Whether STOP
  1071. issues a SIGINT signal is implementation
  1072. defined.
  1073. ------------------------------------------------------------
  1074. SYNTAX: STORE ArrayName
  1075. DESCRIPTION: Saves a numeric array into a file for later
  1076. loading by RECALL.
  1077. ------------------------------------------------------------
  1078. SYNTAX: SUB name [ ( parameter [,...] ) ]
  1079. DESCRIPTION: Top line of a multi-line SUB definition. The
  1080. variable names specified are local to the SUB
  1081. definition, and are initialized BYVAL when
  1082. the subroutine is invoked by another routine.
  1083. ------------------------------------------------------------
  1084. SYNTAX: SUBEND
  1085. DESCRIPTION: Specifies the last line of a multi-line SUB
  1086. definition. Same as END SUB.
  1087. ------------------------------------------------------------
  1088. SYNTAX: SWAP variable, variable
  1089. DESCRIPTION: Swaps the values of two variables. Both
  1090. variables must be of the same type.
  1091. ------------------------------------------------------------
  1092. SYNTAX: SYSTEM
  1093. DESCRIPTION: Exits to the operating system.
  1094. ------------------------------------------------------------
  1095. SYNTAX: THEN
  1096. DESCRIPTION: Syntax Error.
  1097. ------------------------------------------------------------
  1098. SYNTAX: TIMER
  1099. DESCRIPTION: Syntax Error.
  1100. ------------------------------------------------------------
  1101. SYNTAX: TIMER OFF
  1102. DESCRIPTION: TIMER OFF terminates the timer interrupt.
  1103. ------------------------------------------------------------
  1104. SYNTAX: TIMER ON
  1105. DESCRIPTION: TIMER ON enables the timer interrupt. When
  1106. the specified seconds have elapsed, TIMER
  1107. STOP is internaly executed before the
  1108. interrupt is taken. TIMER ON should be
  1109. executed just before the RETURN command if
  1110. you want the interrupt to occur again.
  1111. ------------------------------------------------------------
  1112. SYNTAX: TIMER STOP
  1113. DESCRIPTION: TIMER STOP disables the interrupt, but the
  1114. count continues.
  1115. ------------------------------------------------------------
  1116. SYNTAX: TLOAD [filename$]
  1117. DESCRIPTION: Loads an ASCII BASIC program into memory.
  1118. ------------------------------------------------------------
  1119. SYNTAX: TO
  1120. DESCRIPTION: Syntax Error.
  1121. ------------------------------------------------------------
  1122. SYNTAX: TSAVE [filename$]
  1123. DESCRIPTION: Saves the current program into the file
  1124. filename$ in ASCII format.
  1125. ------------------------------------------------------------
  1126. SYNTAX: UNTIL value
  1127. DESCRIPTION: Bottom of a REPEAT - UNTIL. If the value is
  1128. non-zero, then the loop is terminated.
  1129. ------------------------------------------------------------
  1130. SYNTAX: VARS
  1131. DESCRIPTION: Prints a list of all global variables.
  1132. ------------------------------------------------------------
  1133. SYNTAX: WEND
  1134. DESCRIPTION: Bottom of a WHILE - WEND structure.
  1135. ------------------------------------------------------------
  1136. SYNTAX: WHILE value
  1137. DESCRIPTION: Top of a WHILE - WEND structure. If the value
  1138. is non-zero, then the loop is terminated.
  1139. ------------------------------------------------------------
  1140. SYNTAX: WRITE # filenum, value [, .... ]
  1141. DESCRIPTION: Outputs value to a file. Strings are quoted
  1142. and each value is seperated by a omma.
  1143. ------------------------------------------------------------
  1144. SYNTAX: WRITE value [, .... ]
  1145. DESCRIPTION: Outputs value to the screen. Strings are
  1146. quoted and each value is seperated by a
  1147. comma.
  1148. ------------------------------------------------------------
  1149. ============================================================
  1150. FUNCTIONS
  1151. ============================================================
  1152. ------------------------------------------------------------
  1153. SYNTAX: N = ABS( X )
  1154. PARAMETER: X is a number
  1155. DESCRIPTION: The absolute value of X.
  1156. ------------------------------------------------------------
  1157. SYNTAX: N = ACOS( X )
  1158. PARAMETER: X is a number
  1159. DESCRIPTION: The arccosine of X in radians, where 0 <=
  1160. ACOS(X) <= PI. X shall be in the range -1 <=
  1161. X <= 1.
  1162. ------------------------------------------------------------
  1163. SYNTAX: N = ACS( X )
  1164. PARAMETER: X is a number
  1165. DESCRIPTION: The arccosine of X in radians, where 0 <=
  1166. ACS(X) <= PI. X shall be in the range -1 <=
  1167. X <= 1.
  1168. ------------------------------------------------------------
  1169. SYNTAX: N = ACSD( X )
  1170. PARAMETER: X is a number
  1171. DESCRIPTION: The arccosine of X in degrees, where 0 <=
  1172. ACSD(X) <= 180. X shall be in the range -1
  1173. <= X <= 1.
  1174. ------------------------------------------------------------
  1175. SYNTAX: N = ACSG( X )
  1176. PARAMETER: X is a number
  1177. DESCRIPTION: The arccosine of X in gradians, where 0 <=
  1178. ACS(X) <= 200. X shall be in the range -1 <=
  1179. X <= 1.
  1180. ------------------------------------------------------------
  1181. SYNTAX: N = ANGLE( X, Y )
  1182. PARAMETER: X is a number
  1183. PARAMETER: Y is a number
  1184. DESCRIPTION: The angle in radians between the positive
  1185. x-axis and the vector joining the origin to
  1186. the point with coordinates (X, Y), where -PI
  1187. < ANGLE(X,Y) <= PI. X and Y must not both be
  1188. 0. Note that the counterclockwise is
  1189. positive, e.g., ANGLE(1,1) = 45 degrees.
  1190. ------------------------------------------------------------
  1191. SYNTAX: N = ARCSIN( X )
  1192. PARAMETER: X is a number
  1193. DESCRIPTION: The arcsine of X in radians, where -PI/2 <=
  1194. ARCSIN(X) <= PI/2; X shall be in the range -1
  1195. <= X <= 1.
  1196. ------------------------------------------------------------
  1197. SYNTAX: N = ARCTAN( X )
  1198. PARAMETER: X is a number
  1199. DESCRIPTION: The arctangent of X in radians, i.e. the angle
  1200. whose tangent is X, where -PI/2 < ARCTAN(X) <
  1201. PI/2.
  1202. ------------------------------------------------------------
  1203. SYNTAX: N = ARGC
  1204. DESCRIPTION: The number of parameters passed to a FUNCTION
  1205. or SUB. If not in a FUNCTION or SUB, returns
  1206. -1.
  1207. ------------------------------------------------------------
  1208. SYNTAX: S$ = ARGT$( X )
  1209. PARAMETER: X is a number, [MININT,MAXINT]
  1210. DESCRIPTION: The type of the Xth parameter to a FUNCTION or
  1211. SUB. If the Xth parameter is a string, then
  1212. return value is "$". If the Xth parameter is
  1213. a number, then return value is not "$". X in
  1214. [1,ARGC].
  1215. ------------------------------------------------------------
  1216. SYNTAX: N = ARGV( X )
  1217. PARAMETER: X is a number, [MININT,MAXINT]
  1218. DESCRIPTION: The numeric value of the Xth parameter to a
  1219. FUNCTION or SUB. X in [1,ARGC] and ARGT$( X
  1220. ) <> "$".
  1221. ------------------------------------------------------------
  1222. SYNTAX: S$ = ARGV$( X )
  1223. PARAMETER: X is a number, [MININT,MAXINT]
  1224. DESCRIPTION: The string value of the Xth parameter to a
  1225. FUNCTION or SUB. X in [1,ARGC] and ARGT$( X
  1226. ) = "$".
  1227. ------------------------------------------------------------
  1228. SYNTAX: N = ASC( A$ )
  1229. PARAMETER: A$ is a string, LEN >= 1
  1230. DESCRIPTION: The numeric code for the first letter in A$.
  1231. For example, ASC("ABC") returns 65 on ASCII
  1232. systems.
  1233. ------------------------------------------------------------
  1234. SYNTAX: N = ASC( A$, X )
  1235. PARAMETER: A$ is a string, LEN >= 1
  1236. PARAMETER: X is a number, [1,MAXLEN]
  1237. DESCRIPTION: The numeric code of the Xth character in A$.
  1238. Same as ASC(MID$(A$,X)).
  1239. ------------------------------------------------------------
  1240. SYNTAX: N = ASCII( A$ )
  1241. PARAMETER: A$ is a string, LEN >= 1
  1242. DESCRIPTION: The numeric code for the first letter in A$.
  1243. For example, ASCII("ABC") returns 65 on ASCII
  1244. systems.
  1245. ------------------------------------------------------------
  1246. SYNTAX: N = ASIN( X )
  1247. PARAMETER: X is a number
  1248. DESCRIPTION: The arcsine of X in radians, where -PI/2 <=
  1249. ASIN(X) <= PI/2; X shall be in the range -1
  1250. <= X <= 1.
  1251. ------------------------------------------------------------
  1252. SYNTAX: N = ASN( X )
  1253. PARAMETER: X is a number
  1254. DESCRIPTION: The arcsine of X in radians, where -PI/2 <=
  1255. ASN(X) <= PI/2; X shall be in the range -1 <=
  1256. X <= 1.
  1257. ------------------------------------------------------------
  1258. SYNTAX: N = ASND( X )
  1259. PARAMETER: X is a number
  1260. DESCRIPTION: The arcsine of X in degrees, where -90 <=
  1261. ASN(X) <= 90; X shall be in the range -1 <= X
  1262. <= 1.
  1263. ------------------------------------------------------------
  1264. SYNTAX: N = ASNG( X )
  1265. PARAMETER: X is a number
  1266. DESCRIPTION: The arcsine of X in gradians, where -100 <=
  1267. ASNG(X) <= 100; X shall be in the range -1 <=
  1268. X <= 1.
  1269. ------------------------------------------------------------
  1270. SYNTAX: N = ATAN( X )
  1271. PARAMETER: X is a number
  1272. DESCRIPTION: The arctangent of X in radians, i.e. the angle
  1273. whose tangent is X, where -PI/2 < ATAN(X) <
  1274. PI/2.
  1275. ------------------------------------------------------------
  1276. SYNTAX: N = ATN( X )
  1277. PARAMETER: X is a number
  1278. DESCRIPTION: The arctangent of X in radians, i.e. the angle
  1279. whose tangent is X, where -PI/2 < ATN(X) <
  1280. PI/2.
  1281. ------------------------------------------------------------
  1282. SYNTAX: N = ATND( X )
  1283. PARAMETER: X is a number
  1284. DESCRIPTION: The arctangent of X in degrees, i.e. the angle
  1285. whose tangent is X, where -90 < ATND(X) < 90.
  1286. ------------------------------------------------------------
  1287. SYNTAX: N = ATNG( X )
  1288. PARAMETER: X is a number
  1289. DESCRIPTION: The arctangent of X in gradians, i.e. the
  1290. angle whose tangent is X, where -100 <
  1291. ATND(X) < 100.
  1292. ------------------------------------------------------------
  1293. SYNTAX: N = BASE
  1294. DESCRIPTION: The current OPTION BASE setting.
  1295. ------------------------------------------------------------
  1296. SYNTAX: N = CCUR( X )
  1297. PARAMETER: X is a number, [MINCUR,MAXCUR]
  1298. DESCRIPTION: The currency (64-bit) integer value of X.
  1299. ------------------------------------------------------------
  1300. SYNTAX: N = CDBL( X )
  1301. PARAMETER: X is a number, [MINDBL,MAXDBL]
  1302. DESCRIPTION: The double-precision value of X.
  1303. ------------------------------------------------------------
  1304. SYNTAX: N = CEIL( X )
  1305. PARAMETER: X is a number
  1306. DESCRIPTION: The smallest integer not less than X.
  1307. ------------------------------------------------------------
  1308. SYNTAX: S$ = CHAR( X, Y )
  1309. PARAMETER: X is a number, [0,255]
  1310. PARAMETER: Y is a number, [0,MAXLEN]
  1311. DESCRIPTION: The string Y bytes long consisting of CHR$(X).
  1312. Same as STRING$(Y,X).
  1313. ------------------------------------------------------------
  1314. SYNTAX: S$ = CHAR$( X )
  1315. PARAMETER: X is a number, [0,255]
  1316. DESCRIPTION: The one-character string with the character
  1317. corresponding to the numeric code X. On
  1318. ASCII systems, CHAR$(65) returns "A".
  1319. ------------------------------------------------------------
  1320. SYNTAX: N = CHDIR( A$ )
  1321. PARAMETER: A$ is a string, LEN >= 1
  1322. DESCRIPTION: Changes to the directory named to A$.
  1323. ------------------------------------------------------------
  1324. SYNTAX: S$ = CHR( X )
  1325. PARAMETER: X is a number
  1326. DESCRIPTION: The one-character string with the character
  1327. corresponding to the numeric code X. On
  1328. ASCII systems, CHR(65) returns "A".
  1329. ------------------------------------------------------------
  1330. SYNTAX: S$ = CHR$( X )
  1331. PARAMETER: X is a number, [0,255]
  1332. DESCRIPTION: The one-character string with the character
  1333. corresponding to the numeric code X. On
  1334. ASCII systems, CHR$(65) returns "A".
  1335. ------------------------------------------------------------
  1336. SYNTAX: N = CINT( X )
  1337. PARAMETER: X is a number, [MININT,MAXINT]
  1338. DESCRIPTION: The short (16-bit) integer value of X.
  1339. ------------------------------------------------------------
  1340. SYNTAX: N = CLG( X )
  1341. PARAMETER: X is a number, > 0
  1342. DESCRIPTION: The common logarithm of X; X shall be greater
  1343. than zero.
  1344. ------------------------------------------------------------
  1345. SYNTAX: S$ = CLK( X )
  1346. PARAMETER: X is a number
  1347. DESCRIPTION: The time of day in 24-hour notation according
  1348. to ISO 3307. For example, the value of CLK
  1349. at 11:15 AM is "11:15:00". If there is no
  1350. clock available, then the value of CLK shall
  1351. be "99:99:99". The value of TIME$ at
  1352. midnight is "00:00:00". The value of
  1353. parameter X is ignored.
  1354. ------------------------------------------------------------
  1355. SYNTAX: S$ = CLK$
  1356. DESCRIPTION: The time of day in 24-hour notation according
  1357. to ISO 3307. For example, the value of TIME$
  1358. at 11:15 AM is "11:15:00". If there is no
  1359. clock available, then the value of TIME$
  1360. shall be "99:99:99". The value of TIME$ at
  1361. midnight is "00:00:00".
  1362. ------------------------------------------------------------
  1363. SYNTAX: N = CLNG( X )
  1364. PARAMETER: X is a number, [MINLNG,MAXLNG]
  1365. DESCRIPTION: The long (32-bit) integer value of X.
  1366. ------------------------------------------------------------
  1367. SYNTAX: N = CLOG( X )
  1368. PARAMETER: X is a number, > 0
  1369. DESCRIPTION: The common logarithm of X; X shall be greater
  1370. than zero.
  1371. ------------------------------------------------------------
  1372. SYNTAX: N = CLOSE
  1373. DESCRIPTION: Close all open files.
  1374. ------------------------------------------------------------
  1375. SYNTAX: N = CLOSE( X )
  1376. PARAMETER: X is a number, [MININT,MAXINT]
  1377. DESCRIPTION: Close file number X.
  1378. ------------------------------------------------------------
  1379. SYNTAX: N = CLS
  1380. DESCRIPTION: Clears the screen. Cursor is positioned at row
  1381. 1, column 1.
  1382. ------------------------------------------------------------
  1383. SYNTAX: N = CODE( A$ )
  1384. PARAMETER: A$ is a string, LEN >= 1
  1385. DESCRIPTION: The numeric code for the first letter in A$.
  1386. For example, CODE("ABC") returns 65 on ASCII
  1387. systems.
  1388. ------------------------------------------------------------
  1389. SYNTAX: N = COLOR( X, Y )
  1390. PARAMETER: X is a number, [0,255]
  1391. PARAMETER: Y is a number, [0,255]
  1392. DESCRIPTION: Sets the foreground text color to X, and the
  1393. background text color to Y.
  1394. ------------------------------------------------------------
  1395. SYNTAX: S$ = COMMAND$( X )
  1396. PARAMETER: X is a number, [0,255]
  1397. DESCRIPTION: The command line parameters. COMMAND$(0) is
  1398. the BASIC program name. COMMAND$(1) is the
  1399. first parameter after the BASIC program name,
  1400. and so on. Support for parameters varies by
  1401. operating system, compiler, and so on. X in
  1402. [0..9]
  1403. ------------------------------------------------------------
  1404. SYNTAX: N = COS( X )
  1405. PARAMETER: X is a number
  1406. DESCRIPTION: The cosine of X, where X is in radians.
  1407. ------------------------------------------------------------
  1408. SYNTAX: N = COSD( X )
  1409. PARAMETER: X is a number
  1410. DESCRIPTION: The cosine of X, where X is in degrees.
  1411. ------------------------------------------------------------
  1412. SYNTAX: N = COSG( X )
  1413. PARAMETER: X is a number
  1414. DESCRIPTION: The cosine of X, where X is in gradians.
  1415. ------------------------------------------------------------
  1416. SYNTAX: N = COSH( X )
  1417. PARAMETER: X is a number
  1418. DESCRIPTION: The hyperbolic cosine of X.
  1419. ------------------------------------------------------------
  1420. SYNTAX: N = COT( X )
  1421. PARAMETER: X is a number
  1422. DESCRIPTION: The cotangent of X, where X is in radians.
  1423. ------------------------------------------------------------
  1424. SYNTAX: N = COUNT
  1425. DESCRIPTION: The current cursor position in the line.
  1426. ------------------------------------------------------------
  1427. SYNTAX: N = CSC( X )
  1428. PARAMETER: X is a number
  1429. DESCRIPTION: The cosecant of X, where X is in radians.
  1430. ------------------------------------------------------------
  1431. SYNTAX: N = CSH( X )
  1432. PARAMETER: X is a number
  1433. DESCRIPTION: The hyperbolic cosine of X.
  1434. ------------------------------------------------------------
  1435. SYNTAX: N = CSNG( X )
  1436. PARAMETER: X is a number, [MINFLT,MAXFLT]
  1437. DESCRIPTION: The single-precision value of X.
  1438. ------------------------------------------------------------
  1439. SYNTAX: S$ = CUR( X, Y )
  1440. PARAMETER: X is a number, [0,255]
  1441. PARAMETER: Y is a number, [0,255]
  1442. DESCRIPTION: Locates the cursor to row X, column Y.
  1443. ------------------------------------------------------------
  1444. SYNTAX: N = CVC( A$ )
  1445. PARAMETER: A$ is a string, LEN >= sizeof(CUR)
  1446. DESCRIPTION: The currency (64-bit) integer value in A$,
  1447. which was created by MKC$.
  1448. ------------------------------------------------------------
  1449. SYNTAX: N = CVD( A$ )
  1450. PARAMETER: A$ is a string, LEN >= sizeof(DBL)
  1451. DESCRIPTION: The double-precision value in A$, which was
  1452. created by MKD$.
  1453. ------------------------------------------------------------
  1454. SYNTAX: N = CVI( A$ )
  1455. PARAMETER: A$ is a string, LEN >= sizeof(INT)
  1456. DESCRIPTION: The short (16-bit) integer value in A$, which
  1457. was created by MKI$.
  1458. ------------------------------------------------------------
  1459. SYNTAX: N = CVL( A$ )
  1460. PARAMETER: A$ is a string, LEN >= sizeof(LNG)
  1461. DESCRIPTION: The long (32-bit) integer value in A$, which
  1462. was created by MKL$.
  1463. ------------------------------------------------------------
  1464. SYNTAX: N = CVS( A$ )
  1465. PARAMETER: A$ is a string, LEN >= sizeof(FLT)
  1466. DESCRIPTION: The single-precision value in A$, which was
  1467. created by MKS$.
  1468. ------------------------------------------------------------
  1469. SYNTAX: N = DATE
  1470. DESCRIPTION: The current date in decimal form YYYDDD, where
  1471. YYY are the number of years since 1900 and
  1472. DDD is the ordinal number of the current day
  1473. of the year; e.g., the value of DATE on May
  1474. 9, 1977 was 77129. If there is no calendar
  1475. available, then the value of DATE shall be
  1476. -1.
  1477. ------------------------------------------------------------
  1478. SYNTAX: S$ = DATE$
  1479. DESCRIPTION: The current date based on the internal clock
  1480. as a string in the format set by OPTION DATE.
  1481. ------------------------------------------------------------
  1482. SYNTAX: N = DEG
  1483. DESCRIPTION: Configures the math functions to accept and
  1484. return angles in degrees.
  1485. ------------------------------------------------------------
  1486. SYNTAX: N = DEG( X )
  1487. PARAMETER: X is a number
  1488. DESCRIPTION: The number of degrees in X radians.
  1489. ------------------------------------------------------------
  1490. SYNTAX: N = DEGREE
  1491. DESCRIPTION: Configures the math functions to accept and
  1492. return angles in degrees.
  1493. ------------------------------------------------------------
  1494. SYNTAX: N = DEGREE( X )
  1495. PARAMETER: X is a number
  1496. DESCRIPTION: The number of degrees in X radians.
  1497. ------------------------------------------------------------
  1498. SYNTAX: N = DET
  1499. DESCRIPTION: The determinant of the last MAT INV. Zero
  1500. means error.
  1501. ------------------------------------------------------------
  1502. SYNTAX: N = DIM( ... )
  1503. DESCRIPTION: DIM( arrayname ). The total number of
  1504. dimensions of the array.
  1505. ------------------------------------------------------------
  1506. SYNTAX: N = ENVIRON( A$ )
  1507. PARAMETER: A$ is a string, LEN >= 1
  1508. DESCRIPTION: Sends the environment variable expression
  1509. contained in A$ to the host operating system.
  1510. A$ must contain the "=" character.
  1511. ------------------------------------------------------------
  1512. SYNTAX: S$ = ENVIRON$( A$ )
  1513. PARAMETER: A$ is a string, LEN >= 1
  1514. DESCRIPTION: The value of the environment variable named
  1515. A$.
  1516. ------------------------------------------------------------
  1517. SYNTAX: N = EOF( X )
  1518. PARAMETER: X is a number, [MININT,MAXINT]
  1519. DESCRIPTION: If device number X is at the end-of-file, then
  1520. -1, otherwise 0.
  1521. ------------------------------------------------------------
  1522. SYNTAX: N = EPS( X )
  1523. PARAMETER: X is a number
  1524. DESCRIPTION: The maximum of (X-X1,X2-X, sigma) where X1 and
  1525. X2 are the predecessor and successor of X and
  1526. signma is the smallest positive value
  1527. representable. If X has no predecessor the
  1528. X1=X and if X has no successor the X2=X.
  1529. Note EPS(0) is the smallest positive number
  1530. representable by the implementation, and is
  1531. therefor implementation-defined. Note also
  1532. that EPS may produce different results for
  1533. different arithmetic options (see OPTION
  1534. ARITHMETIC).
  1535. ------------------------------------------------------------
  1536. SYNTAX: N = ERL
  1537. DESCRIPTION: The line number of the most recent error.
  1538. ------------------------------------------------------------
  1539. SYNTAX: N = ERR
  1540. DESCRIPTION: The error number of the most recent error.
  1541. ------------------------------------------------------------
  1542. SYNTAX: S$ = ERR$
  1543. DESCRIPTION: The last error message.
  1544. ------------------------------------------------------------
  1545. SYNTAX: N = ERRL
  1546. DESCRIPTION: The line number of the most recent error.
  1547. ------------------------------------------------------------
  1548. SYNTAX: N = ERRN
  1549. DESCRIPTION: The error number of the most recent error.
  1550. ------------------------------------------------------------
  1551. SYNTAX: N = ERROR( X )
  1552. PARAMETER: X is a number, [0,255]
  1553. DESCRIPTION: Simulate the error number in X.
  1554. ------------------------------------------------------------
  1555. SYNTAX: N = ERROR( X, A$ )
  1556. PARAMETER: X is a number, [0,255]
  1557. PARAMETER: A$ is a string, LEN >= 0
  1558. DESCRIPTION: Simulate the error number in X, with a custom
  1559. message in A$.
  1560. ------------------------------------------------------------
  1561. SYNTAX: S$ = ERROR$
  1562. DESCRIPTION: The last error message.
  1563. ------------------------------------------------------------
  1564. SYNTAX: N = EXP( X )
  1565. PARAMETER: X is a number
  1566. DESCRIPTION: The exponential value of X, i.e., the value of
  1567. the base of natural logarithms (e = 2.71828)
  1568. raised to the power of X; if EXP(X) is less
  1569. that machine infinitesimal, then its value
  1570. shall be replaced with zero.
  1571. ------------------------------------------------------------
  1572. SYNTAX: N = FILEATTR( X, Y )
  1573. PARAMETER: X is a number, [MININT,MAXINT]
  1574. PARAMETER: Y is a number, [MININT,MAXINT]
  1575. DESCRIPTION: For file X, if Y = 1 then returns open mode,
  1576. otherwise returns zero.
  1577. ------------------------------------------------------------
  1578. SYNTAX: N = FILES
  1579. DESCRIPTION: Displays all the file names.
  1580. ------------------------------------------------------------
  1581. SYNTAX: N = FILES( A$ )
  1582. PARAMETER: A$ is a string, LEN >= 1
  1583. DESCRIPTION: Displays all the file names matching A$.
  1584. ------------------------------------------------------------
  1585. SYNTAX: N = FIX( X )
  1586. PARAMETER: X is a number
  1587. DESCRIPTION: The truncated integer, part of X. FIX (X) is
  1588. equivalent to SGN(X)*INT(ABS(X)). The major
  1589. difference between FIX and INT is that FIX
  1590. does not return the next lower number for
  1591. negative X.
  1592. ------------------------------------------------------------
  1593. SYNTAX: N = FLOW
  1594. DESCRIPTION: Turn tracing ON
  1595. ------------------------------------------------------------
  1596. SYNTAX: N = FP( X )
  1597. PARAMETER: X is a number
  1598. DESCRIPTION: The fractional part of X, i.e. X - IP(X).
  1599. ------------------------------------------------------------
  1600. SYNTAX: N = FRAC( X )
  1601. PARAMETER: X is a number
  1602. DESCRIPTION: The fractional part of X, i.e. X - IP(X).
  1603. ------------------------------------------------------------
  1604. SYNTAX: N = FRE
  1605. DESCRIPTION: The number of bytes of available memory. This
  1606. function is provided for backward
  1607. compatibility only and it always returns a
  1608. fixed value of 32000.
  1609. ------------------------------------------------------------
  1610. SYNTAX: N = FRE( A$ )
  1611. PARAMETER: A$ is a string, LEN >= 0
  1612. DESCRIPTION: The number of bytes of available memory. This
  1613. function is provided for backward
  1614. compatibility only and it always returns a
  1615. fixed value of 32000.The value of A$ is
  1616. ignored.
  1617. ------------------------------------------------------------
  1618. SYNTAX: N = FRE( X )
  1619. PARAMETER: X is a number
  1620. DESCRIPTION: The number of bytes of available memory. This
  1621. function is provided for backward
  1622. compatibility only and it always returns a
  1623. fixed value of 32000. The value of X is
  1624. ignored.
  1625. ------------------------------------------------------------
  1626. SYNTAX: N = FREEFILE
  1627. DESCRIPTION: The next available file number.
  1628. ------------------------------------------------------------
  1629. SYNTAX: N = GET( X )
  1630. PARAMETER: X is a number, [MININT,MAXINT]
  1631. DESCRIPTION: For file X, gets the next available record.
  1632. ------------------------------------------------------------
  1633. SYNTAX: N = GET( X, Y )
  1634. PARAMETER: X is a number, [MININT,MAXINT]
  1635. PARAMETER: Y is a number, [MININT,MAXINT]
  1636. DESCRIPTION: For file X, gets record number Y. The first
  1637. record number is 1.
  1638. ------------------------------------------------------------
  1639. SYNTAX: N = GRAD
  1640. DESCRIPTION: Configures the math functions to accept and
  1641. return angles in gradians.
  1642. ------------------------------------------------------------
  1643. SYNTAX: N = GRADIAN
  1644. DESCRIPTION: Configures the math functions to accept and
  1645. return angles in gradians.
  1646. ------------------------------------------------------------
  1647. SYNTAX: S$ = HEX$( X )
  1648. PARAMETER: X is a number, [MININT,MAXINT]
  1649. DESCRIPTION: The the hexadecimal (base 16) representation
  1650. of X.
  1651. ------------------------------------------------------------
  1652. SYNTAX: N = HOME
  1653. DESCRIPTION: Clears the screen. Cursor is positioned at row
  1654. 1, column 1.
  1655. ------------------------------------------------------------
  1656. SYNTAX: N = INDEX( A$, B$ )
  1657. PARAMETER: A$ is a string, LEN >= 0
  1658. PARAMETER: B$ is a string, LEN >= 0
  1659. DESCRIPTION: The position at which B$ occurs in A$,
  1660. beginning at position 1.
  1661. ------------------------------------------------------------
  1662. SYNTAX: S$ = INKEY$
  1663. DESCRIPTION: The keypress, if available. If a keypress is
  1664. not available, then immediately returns an
  1665. empty string. If not supported by the
  1666. platform, then always returns an empty
  1667. string, so use INPUT$(1) instead.
  1668. ------------------------------------------------------------
  1669. SYNTAX: N = INP( X )
  1670. PARAMETER: X is a number, [0,255]
  1671. DESCRIPTION: The value read from machine port X. Causes
  1672. ERROR 73.
  1673. ------------------------------------------------------------
  1674. SYNTAX: S$ = INPUT$( X )
  1675. PARAMETER: X is a number, [0,MAXLEN]
  1676. DESCRIPTION: The string of X characters, read from the
  1677. terminal.
  1678. ------------------------------------------------------------
  1679. SYNTAX: S$ = INPUT$( X, Y )
  1680. PARAMETER: X is a number, [0,MAXLEN]
  1681. PARAMETER: Y is a number, [MININT,MAXINT]
  1682. DESCRIPTION: The string of X characters, read from file Y.
  1683. ------------------------------------------------------------
  1684. SYNTAX: N = INSTR( A$, B$ )
  1685. PARAMETER: A$ is a string, LEN >= 0
  1686. PARAMETER: B$ is a string, LEN >= 0
  1687. DESCRIPTION: The position at which B$ occurs in A$,
  1688. beginning at position 1.
  1689. ------------------------------------------------------------
  1690. SYNTAX: N = INSTR( X, A$, B$ )
  1691. PARAMETER: X is a number, [1,MAXLEN]
  1692. PARAMETER: A$ is a string, LEN >= 0
  1693. PARAMETER: B$ is a string, LEN >= 0
  1694. DESCRIPTION: The position at which B$ occurs in A$,
  1695. beginning at position X.
  1696. ------------------------------------------------------------
  1697. SYNTAX: N = INT( X )
  1698. PARAMETER: X is a number
  1699. DESCRIPTION: The largest integer not greater than X; e.g.
  1700. INT(1.3) = 1 and INT(-1.3) = 2.
  1701. ------------------------------------------------------------
  1702. SYNTAX: N = IP( X )
  1703. PARAMETER: X is a number
  1704. DESCRIPTION: The integer part of X, i.e.,
  1705. SGN(X)*INT(ABS(X)).
  1706. ------------------------------------------------------------
  1707. SYNTAX: S$ = KEY
  1708. DESCRIPTION: The keypress, if available. If a keypress is
  1709. not available, then immediately returns an
  1710. empty string. If not supported by the
  1711. platform, then always returns an empty
  1712. string, so use INPUT$(1) instead.
  1713. ------------------------------------------------------------
  1714. SYNTAX: S$ = KEY$
  1715. DESCRIPTION: The keypress, if available. If a keypress is
  1716. not available, then immediately returns an
  1717. empty string. If not supported by the
  1718. platform, then always returns an empty
  1719. string, so use INPUT$(1) instead.
  1720. ------------------------------------------------------------
  1721. SYNTAX: N = KILL( A$ )
  1722. PARAMETER: A$ is a string, LEN >= 1
  1723. DESCRIPTION: Removes the file named in A$.
  1724. ------------------------------------------------------------
  1725. SYNTAX: N = LBOUND( ... )
  1726. DESCRIPTION: LBOUND( arrayname [, dimension] ). The lower
  1727. bound of the array. The dimension defaults
  1728. to 1. dimension in [1,DIM(arrayname)]
  1729. ------------------------------------------------------------
  1730. SYNTAX: S$ = LCASE$( A$ )
  1731. PARAMETER: A$ is a string, LEN >= 0
  1732. DESCRIPTION: The string of characters from the value
  1733. associatedwith A$ by replacing each
  1734. upper-case-letter in the string by its
  1735. lower-case version.
  1736. ------------------------------------------------------------
  1737. SYNTAX: S$ = LEFT$( A$, X )
  1738. PARAMETER: A$ is a string, LEN >= 0
  1739. PARAMETER: X is a number, [0,MAXLEN]
  1740. DESCRIPTION: The X left-most characters of A$, beginning
  1741. from postion 1.
  1742. ------------------------------------------------------------
  1743. SYNTAX: N = LEN( A$ )
  1744. PARAMETER: A$ is a string, LEN >= 0
  1745. DESCRIPTION: The length of A$.
  1746. ------------------------------------------------------------
  1747. SYNTAX: N = LOC( X )
  1748. PARAMETER: X is a number, [MININT,MAXINT]
  1749. DESCRIPTION: The location of file X; the next record that
  1750. GET or PUT statements will use.
  1751. ------------------------------------------------------------
  1752. SYNTAX: N = LOCATE( X, Y )
  1753. PARAMETER: X is a number, [0,255]
  1754. PARAMETER: Y is a number, [0,255]
  1755. DESCRIPTION: Locates the cursor to row X, column Y.
  1756. ------------------------------------------------------------
  1757. SYNTAX: N = LOF( X )
  1758. PARAMETER: X is a number, [MININT,MAXINT]
  1759. DESCRIPTION: The length of file X.
  1760. ------------------------------------------------------------
  1761. SYNTAX: N = LOG( X )
  1762. PARAMETER: X is a number, > 0
  1763. DESCRIPTION: The natural logarithm of X; X shall be greater
  1764. than zero.
  1765. ------------------------------------------------------------
  1766. SYNTAX: N = LOG10( X )
  1767. PARAMETER: X is a number, > 0
  1768. DESCRIPTION: The common logarithm of X; X shall be greater
  1769. than zero.
  1770. ------------------------------------------------------------
  1771. SYNTAX: N = LOG2( X )
  1772. PARAMETER: X is a number, > 0
  1773. DESCRIPTION: The base 2 logarithm of X; X shall be greater
  1774. than zero.
  1775. ------------------------------------------------------------
  1776. SYNTAX: N = LPOS
  1777. DESCRIPTION: The current cursor position in the line for
  1778. the printer.
  1779. ------------------------------------------------------------
  1780. SYNTAX: S$ = LTRIM$( A$ )
  1781. PARAMETER: A$ is a string, LEN >= 0
  1782. DESCRIPTION: The string of characters resulting from the
  1783. value associated with A$ by deleting all
  1784. leading space characters.
  1785. ------------------------------------------------------------
  1786. SYNTAX: N = LWIDTH( X )
  1787. PARAMETER: X is a number, [0,255]
  1788. DESCRIPTION: For printer, sets the line width to X. Zero
  1789. means no wrapping will occur.
  1790. ------------------------------------------------------------
  1791. SYNTAX: S$ = MAX( A$, B$ )
  1792. PARAMETER: A$ is a string, LEN >= 0
  1793. PARAMETER: B$ is a string, LEN >= 0
  1794. DESCRIPTION: The larger of the parameters.
  1795. ------------------------------------------------------------
  1796. SYNTAX: N = MAX( X, Y )
  1797. PARAMETER: X is a number
  1798. PARAMETER: Y is a number
  1799. DESCRIPTION: The larger of the parameters.
  1800. ------------------------------------------------------------
  1801. SYNTAX: N = MAXBYT
  1802. DESCRIPTION: The largest finite positive number
  1803. representable as a BYTE;
  1804. implementation-defined.
  1805. ------------------------------------------------------------
  1806. SYNTAX: N = MAXCUR
  1807. DESCRIPTION: The largest finite positive number
  1808. representable as a CURRENCY;
  1809. implementation-defined.
  1810. ------------------------------------------------------------
  1811. SYNTAX: N = MAXDBL
  1812. DESCRIPTION: The largest finite positive number
  1813. representable as a DOUBLE;
  1814. implementation-defined.
  1815. ------------------------------------------------------------
  1816. SYNTAX: N = MAXDEV
  1817. DESCRIPTION: The largest finite positive number useable as
  1818. a FILE NUMBER; implementation-defined.
  1819. ------------------------------------------------------------
  1820. SYNTAX: N = MAXINT
  1821. DESCRIPTION: The largest finite positive number
  1822. representable as an INTEGER;
  1823. implementation-defined.
  1824. ------------------------------------------------------------
  1825. SYNTAX: N = MAXLEN
  1826. DESCRIPTION: The maximum string length.
  1827. ------------------------------------------------------------
  1828. SYNTAX: N = MAXLEN( A$ )
  1829. PARAMETER: A$ is a string, LEN >= 0
  1830. DESCRIPTION: The maximum length associated with the
  1831. simple-string-variable A$.
  1832. ------------------------------------------------------------
  1833. SYNTAX: N = MAXLNG
  1834. DESCRIPTION: The largest finite positive number
  1835. representable as a LONG;
  1836. implementation-defined.
  1837. ------------------------------------------------------------
  1838. SYNTAX: N = MAXLVL
  1839. DESCRIPTION: The maximum stack level;
  1840. implementation-defined.
  1841. ------------------------------------------------------------
  1842. SYNTAX: N = MAXNUM
  1843. DESCRIPTION: The largest finite positive number
  1844. representable and manipulable by the
  1845. implementation; implementation-defined.
  1846. MAXNUM may represent diffent number for
  1847. different arithmetic options (see OPTION
  1848. ARITHMETIC).
  1849. ------------------------------------------------------------
  1850. SYNTAX: N = MAXSNG
  1851. DESCRIPTION: The largest finite positive number
  1852. representable as a SINGLE;
  1853. implementation-defined.
  1854. ------------------------------------------------------------
  1855. SYNTAX: S$ = MID$( A$, X )
  1856. PARAMETER: A$ is a string, LEN >= 0
  1857. PARAMETER: X is a number, [1,MAXLEN]
  1858. DESCRIPTION: The characters of A$, starting from postion X.
  1859. ------------------------------------------------------------
  1860. SYNTAX: S$ = MID$( A$, X, Y )
  1861. PARAMETER: A$ is a string, LEN >= 0
  1862. PARAMETER: X is a number, [1,MAXLEN]
  1863. PARAMETER: Y is a number, [0,MAXLEN]
  1864. DESCRIPTION: The Y characters of A$, starting from postion
  1865. X.
  1866. ------------------------------------------------------------
  1867. SYNTAX: N = MIN( X, Y )
  1868. PARAMETER: X is a number
  1869. PARAMETER: Y is a number
  1870. DESCRIPTION: The smaller of the parameters.
  1871. ------------------------------------------------------------
  1872. SYNTAX: S$ = MIN( A$, B$ )
  1873. PARAMETER: A$ is a string, LEN >= 0
  1874. PARAMETER: B$ is a string, LEN >= 0
  1875. DESCRIPTION: The smaller of the parameters.
  1876. ------------------------------------------------------------
  1877. SYNTAX: N = MINBYT
  1878. DESCRIPTION: The largest finite negative number
  1879. representable as a BYTE;
  1880. implementation-defined.
  1881. ------------------------------------------------------------
  1882. SYNTAX: N = MINCUR
  1883. DESCRIPTION: The largest finite negative number
  1884. representable as a CURRENCY;
  1885. implementation-defined.
  1886. ------------------------------------------------------------
  1887. SYNTAX: N = MINDBL
  1888. DESCRIPTION: The largest finite negative number
  1889. representable as a DOUBLE;
  1890. implementation-defined.
  1891. ------------------------------------------------------------
  1892. SYNTAX: N = MINDEV
  1893. DESCRIPTION: The largest finite negative number useable as
  1894. a FILE NUMBER; implementation-defined.
  1895. ------------------------------------------------------------
  1896. SYNTAX: N = MININT
  1897. DESCRIPTION: The largest finite negative number
  1898. representable as an INTEGER;
  1899. implementation-defined.
  1900. ------------------------------------------------------------
  1901. SYNTAX: N = MINLNG
  1902. DESCRIPTION: The largest finite negative number
  1903. representable as a LONG;
  1904. implementation-defined.
  1905. ------------------------------------------------------------
  1906. SYNTAX: N = MINNUM
  1907. DESCRIPTION: The largest finite negative number
  1908. representable and manipulable by the
  1909. implementation; implementation-defined.
  1910. MINNUM may represent diffent number for
  1911. different arithmetic options (see OPTION
  1912. ARITHMETIC).
  1913. ------------------------------------------------------------
  1914. SYNTAX: N = MINSNG
  1915. DESCRIPTION: The largest finite negative number
  1916. representable as a SINGLE;
  1917. implementation-defined.
  1918. ------------------------------------------------------------
  1919. SYNTAX: S$ = MKC$( X )
  1920. PARAMETER: X is a number, [MINCUR,MAXCUR]
  1921. DESCRIPTION: The internal representation of the currency
  1922. (64-bit) integer X as a string.
  1923. ------------------------------------------------------------
  1924. SYNTAX: S$ = MKD$( X )
  1925. PARAMETER: X is a number, [MINDBL,MAXDBL]
  1926. DESCRIPTION: The internal representation of X as a string.
  1927. ------------------------------------------------------------
  1928. SYNTAX: N = MKDIR( A$ )
  1929. PARAMETER: A$ is a string, LEN >= 1
  1930. DESCRIPTION: Makes the directory named in A$.
  1931. ------------------------------------------------------------
  1932. SYNTAX: S$ = MKI$( X )
  1933. PARAMETER: X is a number, [MININT,MAXINT]
  1934. DESCRIPTION: The internal representation of the short
  1935. (16-bit) integer X as a string.
  1936. ------------------------------------------------------------
  1937. SYNTAX: S$ = MKL$( X )
  1938. PARAMETER: X is a number, [MINLNG,MAXLNG]
  1939. DESCRIPTION: The internal representation of the long
  1940. (32-bit) integer X as a string.
  1941. ------------------------------------------------------------
  1942. SYNTAX: S$ = MKS$( X )
  1943. PARAMETER: X is a number, [MINFLT,MAXFLT]
  1944. DESCRIPTION: The internal representation of X as a string.
  1945. ------------------------------------------------------------
  1946. SYNTAX: N = NAME( A$, B$ )
  1947. PARAMETER: A$ is a string, LEN >= 1
  1948. PARAMETER: B$ is a string, LEN >= 1
  1949. DESCRIPTION: Rename the file named A$ into B$.
  1950. ------------------------------------------------------------
  1951. SYNTAX: N = NOFLOW
  1952. DESCRIPTION: Turn tracing OFF
  1953. ------------------------------------------------------------
  1954. SYNTAX: N = NULL( X )
  1955. PARAMETER: X is a number, [0,255]
  1956. DESCRIPTION: Appends X null characters after each line
  1957. printed by LPRINT or LLIST.
  1958. ------------------------------------------------------------
  1959. SYNTAX: N = NUM
  1960. DESCRIPTION: The number of values processed by the last MAT
  1961. INPUT. Zero means error.
  1962. ------------------------------------------------------------
  1963. SYNTAX: N = NUM( A$ )
  1964. PARAMETER: A$ is a string, LEN >= 0
  1965. DESCRIPTION: The value of the numeric-constant associated
  1966. with A$, if the string associated with A$ is
  1967. a numeric-constant. Leading and trailing
  1968. spaces in the string are ignored. If the
  1969. evaluation of the numeric-constant would
  1970. result in a value which causes an underflow,
  1971. then the value returned shall be zero. For
  1972. example, NUM( " 123.5 " ) = 123.5, NUM(
  1973. "2.E-99" ) could be zero, and NUM( "MCMXVII"
  1974. ) causes an exception.
  1975. ------------------------------------------------------------
  1976. SYNTAX: S$ = NUM$( X )
  1977. PARAMETER: X is a number
  1978. DESCRIPTION: The string generated by the print-statement as
  1979. the numeric-representation of the value
  1980. associated with X.
  1981. ------------------------------------------------------------
  1982. SYNTAX: S$ = OCT$( X )
  1983. PARAMETER: X is a number, [MININT,MAXINT]
  1984. DESCRIPTION: The the octal (base 8) representation of X.
  1985. ------------------------------------------------------------
  1986. SYNTAX: N = OPEN( A$, X, B$ )
  1987. PARAMETER: A$ is a string, LEN >= 1
  1988. PARAMETER: X is a number, [MININT,MAXINT]
  1989. PARAMETER: B$ is a string, LEN >= 1
  1990. DESCRIPTION: Open file number X. A$ is the mode: "I", "O",
  1991. "A", "R". B$ is the file name. Default the
  1992. record length.
  1993. ------------------------------------------------------------
  1994. SYNTAX: N = OPEN( A$, X, B$, Y )
  1995. PARAMETER: A$ is a string, LEN >= 1
  1996. PARAMETER: X is a number, [MININT,MAXINT]
  1997. PARAMETER: B$ is a string, LEN >= 1
  1998. PARAMETER: Y is a number, [MININT,MAXINT]
  1999. DESCRIPTION: Open file number X. A$ is the mode: "I", "O",
  2000. "A", "R". B$ is the file name. Y is the
  2001. record length.
  2002. ------------------------------------------------------------
  2003. SYNTAX: N = ORD( A$ )
  2004. PARAMETER: A$ is a string, LEN >= 1
  2005. DESCRIPTION: The ordinal position of the character named by
  2006. the string associated with A$ in the
  2007. collating sequence of ASCII character set,
  2008. where the first member of the character set
  2009. is in position zero. The acceptable values
  2010. for the standard character set are shown in
  2011. Table 1.
  2012. ------------------------------------------------------------
  2013. SYNTAX: N = OUT( X, Y )
  2014. PARAMETER: X is a number, [MININT,MAXINT]
  2015. PARAMETER: Y is a number, [0,255]
  2016. DESCRIPTION: Sends Y to hardware port X. Causes ERROR 73.
  2017. ------------------------------------------------------------
  2018. SYNTAX: N = PAUSE( X )
  2019. PARAMETER: X is a number
  2020. DESCRIPTION: The program pauses for X times the value of
  2021. OPTION SLEEP seconds. If the result is zero,
  2022. negative, or more than INT_MAX then PAUSE
  2023. does nothing. The resolution is
  2024. implementation defined.
  2025. ------------------------------------------------------------
  2026. SYNTAX: N = PEEK( X )
  2027. PARAMETER: X is a number, [MINLNG,MAXLNG]
  2028. DESCRIPTION: The value read from hardware address X.
  2029. Causes ERROR 73.
  2030. ------------------------------------------------------------
  2031. SYNTAX: N = PI
  2032. DESCRIPTION: The constant 3.14159 which is the ratio of the
  2033. circumference of a circle to its diameter.
  2034. ------------------------------------------------------------
  2035. SYNTAX: N = PI( X )
  2036. PARAMETER: X is a number
  2037. DESCRIPTION: The constant 3.14159 which is the ratio of the
  2038. circumference of a circle to its diameter,
  2039. times X.
  2040. ------------------------------------------------------------
  2041. SYNTAX: N = POKE( X, Y )
  2042. PARAMETER: X is a number, [MINLNG,MAXLNG]
  2043. PARAMETER: Y is a number, [0,255]
  2044. DESCRIPTION: Sends Y to hardware address X. Causes ERROR
  2045. 73.
  2046. ------------------------------------------------------------
  2047. SYNTAX: N = POS
  2048. DESCRIPTION: The current cursor position in the line.
  2049. ------------------------------------------------------------
  2050. SYNTAX: N = POS( X )
  2051. PARAMETER: X is a number, [MININT,MAXINT]
  2052. DESCRIPTION: The current cursor position in the line for
  2053. file X.
  2054. ------------------------------------------------------------
  2055. SYNTAX: N = POS( A$, B$ )
  2056. PARAMETER: A$ is a string, LEN >= 0
  2057. PARAMETER: B$ is a string, LEN >= 0
  2058. DESCRIPTION: The character position, within the value
  2059. assocated with A$, of the first character of
  2060. the first occurence of the value associated
  2061. with B$, starting at the first character of
  2062. A$. If there is not such occurence, then the
  2063. value returned is zero.
  2064. ------------------------------------------------------------
  2065. SYNTAX: N = POS( A$, B$, X )
  2066. PARAMETER: A$ is a string, LEN >= 0
  2067. PARAMETER: B$ is a string, LEN >= 0
  2068. PARAMETER: X is a number, [1,MAXLEN]
  2069. DESCRIPTION: The character position, within the value
  2070. assocated with A$, of the first character of
  2071. the first occurence of the value associated
  2072. with B$, starting at the Xth character of A$.
  2073. If there is not such occurence, then the
  2074. value returned is zero.
  2075. ------------------------------------------------------------
  2076. SYNTAX: N = PUT( X )
  2077. PARAMETER: X is a number, [MININT,MAXINT]
  2078. DESCRIPTION: For file X, puts the next available record.
  2079. ------------------------------------------------------------
  2080. SYNTAX: N = PUT( X, Y )
  2081. PARAMETER: X is a number, [MININT,MAXINT]
  2082. PARAMETER: Y is a number, [MININT,MAXINT]
  2083. DESCRIPTION: For file X, puts record number Y. The first
  2084. record number is 1.
  2085. ------------------------------------------------------------
  2086. SYNTAX: N = RAD
  2087. DESCRIPTION: Configures the math functions to accept and
  2088. return angles in radians.
  2089. ------------------------------------------------------------
  2090. SYNTAX: N = RAD( X )
  2091. PARAMETER: X is a number
  2092. DESCRIPTION: The number of radians in X degrees.
  2093. ------------------------------------------------------------
  2094. SYNTAX: N = RADIAN
  2095. DESCRIPTION: Configures the math functions to accept and
  2096. return angles in radians.
  2097. ------------------------------------------------------------
  2098. SYNTAX: N = RANDOMIZE
  2099. DESCRIPTION: Seeds the pseudo-random number generator with
  2100. TIME.
  2101. ------------------------------------------------------------
  2102. SYNTAX: N = RANDOMIZE( X )
  2103. PARAMETER: X is a number
  2104. DESCRIPTION: Seeds the pseudo-random number generator with
  2105. X.
  2106. ------------------------------------------------------------
  2107. SYNTAX: N = REMAINDER( X, Y )
  2108. PARAMETER: X is a number
  2109. PARAMETER: Y is a number, <> 0
  2110. DESCRIPTION: The remainder function, i.e., X-Y*IP(X/Y). Y
  2111. shall not equal zero.
  2112. ------------------------------------------------------------
  2113. SYNTAX: S$ = REPEAT$( X, A$ )
  2114. PARAMETER: X is a number, [0,MAXLEN]
  2115. PARAMETER: A$ is a string, LEN >= 1
  2116. DESCRIPTION: The string consisting of X copies of
  2117. LEFT$(A$,1); X > 0.
  2118. ------------------------------------------------------------
  2119. SYNTAX: S$ = REPEAT$( X, Y )
  2120. PARAMETER: X is a number, [0,MAXLEN]
  2121. PARAMETER: Y is a number, [0,255]
  2122. DESCRIPTION: The string consisting of X copies of CHR$(Y);
  2123. X > 0.
  2124. ------------------------------------------------------------
  2125. SYNTAX: N = RESET
  2126. DESCRIPTION: Close all open files.
  2127. ------------------------------------------------------------
  2128. SYNTAX: S$ = RIGHT$( A$, X )
  2129. PARAMETER: A$ is a string, LEN >= 0
  2130. PARAMETER: X is a number, [0,MAXLEN]
  2131. DESCRIPTION: The right-most X characters of A$.
  2132. ------------------------------------------------------------
  2133. SYNTAX: N = RMDIR( A$ )
  2134. PARAMETER: A$ is a string, LEN >= 1
  2135. DESCRIPTION: Removes the directory named in A$.
  2136. ------------------------------------------------------------
  2137. SYNTAX: N = RND
  2138. DESCRIPTION: The next pseudo-random number in an
  2139. implementation-defined sequence of
  2140. pseudo-random numbers uniformly distributed
  2141. in the range 0 <= RND < 1.
  2142. ------------------------------------------------------------
  2143. SYNTAX: N = RND( X )
  2144. PARAMETER: X is a number
  2145. DESCRIPTION: Returns a pseudorandom number in the range
  2146. [0,1]. The value of X is ignored.
  2147. ------------------------------------------------------------
  2148. SYNTAX: N = ROUND( X, Y )
  2149. PARAMETER: X is a number
  2150. PARAMETER: Y is a number, [MININT,MAXINT]
  2151. DESCRIPTION: The value of X rounded to Y decimal digits to
  2152. the right of the decimal point (or -Y digits
  2153. to the left if Y < 0); i.e.,
  2154. INT(X*10^Y+.5)/10^Y. Y must be in [-32,32].
  2155. ------------------------------------------------------------
  2156. SYNTAX: S$ = RTRIM$( A$ )
  2157. PARAMETER: A$ is a string, LEN >= 0
  2158. DESCRIPTION: The string of characters resulting from the
  2159. value associated with A$ by deleting all
  2160. trailing space characters.
  2161. ------------------------------------------------------------
  2162. SYNTAX: N = SEC( X )
  2163. PARAMETER: X is a number
  2164. DESCRIPTION: The secant of X, where X is in radians.
  2165. ------------------------------------------------------------
  2166. SYNTAX: N = SEEK( X )
  2167. PARAMETER: X is a number, [MININT,MAXINT]
  2168. DESCRIPTION: The location of file X; the next record that
  2169. GET or PUT statements will use.
  2170. ------------------------------------------------------------
  2171. SYNTAX: N = SEEK( X, Y )
  2172. PARAMETER: X is a number, [MININT,MAXINT]
  2173. PARAMETER: Y is a number, [MININT,MAXINT]
  2174. DESCRIPTION: For file X, move to record number Y; the first
  2175. record number is 1.
  2176. ------------------------------------------------------------
  2177. SYNTAX: S$ = SEG( A$, X, Y )
  2178. PARAMETER: A$ is a string, LEN >= 0
  2179. PARAMETER: X is a number, [1,MAXLEN]
  2180. PARAMETER: Y is a number, [0,MAXLEN]
  2181. DESCRIPTION: The Y characters of A$, starting from postion
  2182. X.
  2183. ------------------------------------------------------------
  2184. SYNTAX: S$ = SEG$( A$, X, Y )
  2185. PARAMETER: A$ is a string, LEN >= 0
  2186. PARAMETER: X is a number, [1,MAXLEN]
  2187. PARAMETER: Y is a number, [0,MAXLEN]
  2188. DESCRIPTION: The Y characters of A$, starting from postion
  2189. X.
  2190. ------------------------------------------------------------
  2191. SYNTAX: N = SGN( X )
  2192. PARAMETER: X is a number
  2193. DESCRIPTION: The sign of X: -1 if X < 0, 0 if X = 0, and +1
  2194. if X > 0.
  2195. ------------------------------------------------------------
  2196. SYNTAX: N = SHELL( A$ )
  2197. PARAMETER: A$ is a string, LEN >= 1
  2198. DESCRIPTION: The exit code resulting from the execution of
  2199. an operating system command.
  2200. ------------------------------------------------------------
  2201. SYNTAX: N = SIN( X )
  2202. PARAMETER: X is a number
  2203. DESCRIPTION: The sine of X, where X is in radians.
  2204. ------------------------------------------------------------
  2205. SYNTAX: N = SIND( X )
  2206. PARAMETER: X is a number
  2207. DESCRIPTION: The sine of X, where X is in degrees.
  2208. ------------------------------------------------------------
  2209. SYNTAX: N = SING( X )
  2210. PARAMETER: X is a number
  2211. DESCRIPTION: The sine of X, where X is in gradians.
  2212. ------------------------------------------------------------
  2213. SYNTAX: N = SINH( X )
  2214. PARAMETER: X is a number
  2215. DESCRIPTION: The hyperbolic sine of X.
  2216. ------------------------------------------------------------
  2217. SYNTAX: N = SLEEP( X )
  2218. PARAMETER: X is a number
  2219. DESCRIPTION: The program pauses for X times the value of
  2220. OPTION SLEEP seconds. If the result is zero,
  2221. negative, or more than INT_MAX then SLEEP
  2222. does nothing. The resolution is
  2223. implementation defined.
  2224. ------------------------------------------------------------
  2225. SYNTAX: N = SNH( X )
  2226. PARAMETER: X is a number
  2227. DESCRIPTION: The hyperbolic sine of X.
  2228. ------------------------------------------------------------
  2229. SYNTAX: S$ = SPACE$( X )
  2230. PARAMETER: X is a number, [0,MAXLEN]
  2231. DESCRIPTION: The string of X blank spaces.
  2232. ------------------------------------------------------------
  2233. SYNTAX: S$ = SPC( X )
  2234. PARAMETER: X is a number
  2235. DESCRIPTION: The string of X spaces. Only for use within
  2236. the PRINT command.
  2237. ------------------------------------------------------------
  2238. SYNTAX: N = SQR( X )
  2239. PARAMETER: X is a number, >= 0
  2240. DESCRIPTION: The non-negative square root of X; X shall be
  2241. non-negative.
  2242. ------------------------------------------------------------
  2243. SYNTAX: S$ = STR( X, Y )
  2244. PARAMETER: X is a number, [0,MAXLEN]
  2245. PARAMETER: Y is a number, [0,255]
  2246. DESCRIPTION: The string X bytes long consisting of CHR$(Y).
  2247. ------------------------------------------------------------
  2248. SYNTAX: S$ = STR$( X )
  2249. PARAMETER: X is a number
  2250. DESCRIPTION: The string generated by the print-statement as
  2251. the numeric-representation of the value
  2252. associated with X.
  2253. ------------------------------------------------------------
  2254. SYNTAX: S$ = STRING( X, Y )
  2255. PARAMETER: X is a number, [0,MAXLEN]
  2256. PARAMETER: Y is a number, [0,255]
  2257. DESCRIPTION: The string X bytes long consisting of CHR$(Y).
  2258. ------------------------------------------------------------
  2259. SYNTAX: S$ = STRING$( X, A$ )
  2260. PARAMETER: X is a number, [0,MAXLEN]
  2261. PARAMETER: A$ is a string, LEN >= 1
  2262. DESCRIPTION: The string X bytes long consisting of the
  2263. first character of A$.
  2264. ------------------------------------------------------------
  2265. SYNTAX: S$ = STRING$( X, Y )
  2266. PARAMETER: X is a number, [0,MAXLEN]
  2267. PARAMETER: Y is a number, [0,255]
  2268. DESCRIPTION: The string X bytes long consisting of CHR$(Y).
  2269. ------------------------------------------------------------
  2270. SYNTAX: S$ = TAB( X )
  2271. PARAMETER: X is a number
  2272. DESCRIPTION: The string required to advance to column X.
  2273. Only for use within the PRINT command.
  2274. ------------------------------------------------------------
  2275. SYNTAX: N = TAN( X )
  2276. PARAMETER: X is a number
  2277. DESCRIPTION: The tangent of X, where X is in radians.
  2278. ------------------------------------------------------------
  2279. SYNTAX: N = TAND( X )
  2280. PARAMETER: X is a number
  2281. DESCRIPTION: The tangent of X, where X is in degrees.
  2282. ------------------------------------------------------------
  2283. SYNTAX: N = TANG( X )
  2284. PARAMETER: X is a number
  2285. DESCRIPTION: The tangent of X, where X is in gradians.
  2286. ------------------------------------------------------------
  2287. SYNTAX: N = TANH( X )
  2288. PARAMETER: X is a number
  2289. DESCRIPTION: The hyperbolic tangent of X.
  2290. ------------------------------------------------------------
  2291. SYNTAX: N = TIME
  2292. DESCRIPTION: The time elapsed since the previous midnight,
  2293. expressed in seconds; e.g., the value of TIME
  2294. at 11:15 AM is 40500. If there is no clock
  2295. available, then the value of TIME shall be
  2296. -1. The value of TIME at midnight shall be
  2297. zero (not 86400).
  2298. ------------------------------------------------------------
  2299. SYNTAX: S$ = TIME$
  2300. DESCRIPTION: The time of day in 24-hour notation according
  2301. to ISO 3307. For example, the value of TIME$
  2302. at 11:15 AM is "11:15:00". If there is no
  2303. clock available, then the value of TIME$
  2304. shall be "99:99:99". The value of TIME$ at
  2305. midnight is "00:00:00".
  2306. ------------------------------------------------------------
  2307. SYNTAX: S$ = TIME$( X )
  2308. PARAMETER: X is a number
  2309. DESCRIPTION: The time of day in 24-hour notation according
  2310. to ISO 3307. For example, the value of TIME$
  2311. at 11:15 AM is "11:15:00". If there is no
  2312. clock available, then the value of TIME$
  2313. shall be "99:99:99". The value of TIME$ at
  2314. midnight is "00:00:00". The value of X is
  2315. ignored.
  2316. ------------------------------------------------------------
  2317. SYNTAX: N = TIMER
  2318. DESCRIPTION: The time in the system clock in seconds
  2319. elapsed since midnight.
  2320. ------------------------------------------------------------
  2321. SYNTAX: S$ = TRIM$( A$ )
  2322. PARAMETER: A$ is a string, LEN >= 0
  2323. DESCRIPTION: The string resulting from removing both
  2324. leading and trailing spaces from A$.
  2325. ------------------------------------------------------------
  2326. SYNTAX: N = TROFF
  2327. DESCRIPTION: Turn tracing OFF
  2328. ------------------------------------------------------------
  2329. SYNTAX: N = TRON
  2330. DESCRIPTION: Turn tracing ON
  2331. ------------------------------------------------------------
  2332. SYNTAX: N = TRUNCATE( X, Y )
  2333. PARAMETER: X is a number
  2334. PARAMETER: Y is a number, [MININT,MAXINT]
  2335. DESCRIPTION: The value of X truncated to Y decimal digits
  2336. to the right of the decimal point (or -Y
  2337. digits to the left if Y < 0); i.e.,
  2338. IP(X*10^Y)/10^Y. Y in [-32,32].
  2339. ------------------------------------------------------------
  2340. SYNTAX: N = UBOUND( ... )
  2341. DESCRIPTION: UBOUND( arrayname [, dimension] ). The upper
  2342. bound of the array. The dimension defaults
  2343. to 1. dimension in [1,DIM(arrayname)]
  2344. ------------------------------------------------------------
  2345. SYNTAX: S$ = UCASE$( A$ )
  2346. PARAMETER: A$ is a string, LEN >= 0
  2347. DESCRIPTION: The string of characters resulting from the
  2348. value associated with A$ by replacing each
  2349. lower-case-letter in the string by its
  2350. upper-case version.
  2351. ------------------------------------------------------------
  2352. SYNTAX: N = VAL( A$ )
  2353. PARAMETER: A$ is a string, LEN >= 1
  2354. DESCRIPTION: The value of the numeric-constant associated
  2355. with A$, if the string associated with A$ is
  2356. a numeric-constant. Leading and trailing
  2357. spaces in the string are ignored. If the
  2358. evaluation of the numeric-constant would
  2359. result in a value which causes an underflow,
  2360. then the value returned shall be zero. For
  2361. example, VAL( " 123.5 " ) = 123.5, VAL(
  2362. "2.E-99" ) could be zero, and VAL( "MCMXVII"
  2363. ) causes an exception.
  2364. ------------------------------------------------------------
  2365. SYNTAX: N = WAIT( X )
  2366. PARAMETER: X is a number
  2367. DESCRIPTION: The program pauses for X times the value of
  2368. OPTION SLEEP seconds. If the result is zero,
  2369. negative, or more than INT_MAX then WAIT does
  2370. nothing. The resolution is implementation
  2371. defined.
  2372. ------------------------------------------------------------
  2373. SYNTAX: N = WAIT( X, Y )
  2374. PARAMETER: X is a number, [MININT,MAXINT]
  2375. PARAMETER: Y is a number, [0,255]
  2376. DESCRIPTION: Waits for the value of (INP(X) AND Y) to
  2377. become nonzero. Causes ERROR 73.
  2378. ------------------------------------------------------------
  2379. SYNTAX: N = WAIT( X, Y, Z )
  2380. PARAMETER: X is a number, [MININT,MAXINT]
  2381. PARAMETER: Y is a number, [0,255]
  2382. PARAMETER: Z is a number, [0,255]
  2383. DESCRIPTION: Waits for the value of ((INP(X) XOR Z) AND Y)
  2384. to become nonzero. Causes ERROR 73.
  2385. ------------------------------------------------------------
  2386. SYNTAX: N = WIDTH( X )
  2387. PARAMETER: X is a number, [0,255]
  2388. DESCRIPTION: For console, sets the line width to X. Zero
  2389. means no wrapping will occur.
  2390. ------------------------------------------------------------
  2391. SYNTAX: N = WIDTH( X, Y )
  2392. PARAMETER: X is a number, [MININT,MAXINT]
  2393. PARAMETER: Y is a number, [0,255]
  2394. DESCRIPTION: If X = 0, sets the console width to Y.
  2395. If X < 0, sets the printer width to Y.
  2396. If X is an open file number, sets the file
  2397. line width to Y.
  2398. Otherwise sets the console rows to X and the
  2399. line width to Y.
  2400. A value of zero for Y means no wrapping will
  2401. occur.
  2402. ------------------------------------------------------------
  2403. ============================================================
  2404. OPERATORS
  2405. ============================================================
  2406. ------------------------------------------------------------
  2407. SYNTAX: X ** Y
  2408. DESCRIPTION: Exponential
  2409. PRECEDENCE: 14
  2410. ------------------------------------------------------------
  2411. SYNTAX: X [ Y
  2412. DESCRIPTION: Exponential
  2413. PRECEDENCE: 14
  2414. ------------------------------------------------------------
  2415. SYNTAX: X ^ Y
  2416. DESCRIPTION: Exponential
  2417. PRECEDENCE: 14
  2418. ------------------------------------------------------------
  2419. SYNTAX: # X
  2420. DESCRIPTION: Posation
  2421. PRECEDENCE: 13
  2422. ------------------------------------------------------------
  2423. SYNTAX: + X
  2424. DESCRIPTION: Posation
  2425. PRECEDENCE: 13
  2426. ------------------------------------------------------------
  2427. SYNTAX: - X
  2428. DESCRIPTION: Negation
  2429. PRECEDENCE: 13
  2430. ------------------------------------------------------------
  2431. SYNTAX: X * Y
  2432. DESCRIPTION: Multiplication
  2433. PRECEDENCE: 12
  2434. ------------------------------------------------------------
  2435. SYNTAX: X / Y
  2436. DESCRIPTION: Division
  2437. PRECEDENCE: 12
  2438. ------------------------------------------------------------
  2439. SYNTAX: X \ Y
  2440. DESCRIPTION: Integer Division
  2441. PRECEDENCE: 11
  2442. ------------------------------------------------------------
  2443. SYNTAX: X MOD Y
  2444. DESCRIPTION: Integer Modulus
  2445. PRECEDENCE: 10
  2446. ------------------------------------------------------------
  2447. SYNTAX: X + Y
  2448. DESCRIPTION: Addition
  2449. PRECEDENCE: 9
  2450. ------------------------------------------------------------
  2451. SYNTAX: X - Y
  2452. DESCRIPTION: Subtraction
  2453. PRECEDENCE: 9
  2454. ------------------------------------------------------------
  2455. SYNTAX: X & Y
  2456. DESCRIPTION: Concatenation
  2457. PRECEDENCE: 8
  2458. ------------------------------------------------------------
  2459. SYNTAX: X < Y
  2460. DESCRIPTION: Less than
  2461. PRECEDENCE: 7
  2462. ------------------------------------------------------------
  2463. SYNTAX: X <= Y
  2464. DESCRIPTION: Less than or Equal
  2465. PRECEDENCE: 7
  2466. ------------------------------------------------------------
  2467. SYNTAX: X <> Y
  2468. DESCRIPTION: Not Equal
  2469. PRECEDENCE: 7
  2470. ------------------------------------------------------------
  2471. SYNTAX: X = Y
  2472. DESCRIPTION: Equal
  2473. PRECEDENCE: 7
  2474. ------------------------------------------------------------
  2475. SYNTAX: X =< Y
  2476. DESCRIPTION: Less than or Equal
  2477. PRECEDENCE: 7
  2478. ------------------------------------------------------------
  2479. SYNTAX: X => Y
  2480. DESCRIPTION: Greater than or Equal
  2481. PRECEDENCE: 7
  2482. ------------------------------------------------------------
  2483. SYNTAX: X > Y
  2484. DESCRIPTION: Greater than
  2485. PRECEDENCE: 7
  2486. ------------------------------------------------------------
  2487. SYNTAX: X >< Y
  2488. DESCRIPTION: Not Equal
  2489. PRECEDENCE: 7
  2490. ------------------------------------------------------------
  2491. SYNTAX: X >= Y
  2492. DESCRIPTION: Greater than or Equal
  2493. PRECEDENCE: 7
  2494. ------------------------------------------------------------
  2495. SYNTAX: A$ LIKE B$
  2496. DESCRIPTION: Compare A$ to the pattern in B$
  2497. PRECEDENCE: 7
  2498. ------------------------------------------------------------
  2499. SYNTAX: NOT X
  2500. DESCRIPTION: Bitwise NOT
  2501. PRECEDENCE: 6
  2502. ------------------------------------------------------------
  2503. SYNTAX: X AND Y
  2504. DESCRIPTION: Bitwise AND
  2505. PRECEDENCE: 5
  2506. ------------------------------------------------------------
  2507. SYNTAX: X OR Y
  2508. DESCRIPTION: Bitwise OR
  2509. PRECEDENCE: 4
  2510. ------------------------------------------------------------
  2511. SYNTAX: X XOR Y
  2512. DESCRIPTION: Bitwise Exclusive OR
  2513. PRECEDENCE: 3
  2514. ------------------------------------------------------------
  2515. SYNTAX: X EQV Y
  2516. DESCRIPTION: Bitwise EQV
  2517. PRECEDENCE: 2
  2518. ------------------------------------------------------------
  2519. SYNTAX: X IMP Y
  2520. DESCRIPTION: Bitwise IMP
  2521. PRECEDENCE: 1
  2522. ------------------------------------------------------------