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.
 
 
 
 
 
 

1741 lines
75 KiB

  1. ============================================================
  2. GENERAL
  3. ============================================================
  4. OPTION VERSION "RSTS-11"
  5. REM INTERNAL ID: D71
  6. REM DESCRIPTION: DEC RSTS-11 BASIC-PLUS
  7. REM REFERENCE: RSTS-11 User's Guide : BASIC-PLUS Programming Language
  8. REM by Digital Equipment Corporation
  9. REM (c) 1971, Digital Equipment Corporation
  10. REM http://bitsavers.trailing-edge.com/pdf/dec/pdp11/rsts/
  11. REM PL-11-71-01-01-A-D_RSTS-11UsersGuide_May71.pdf
  12. REM
  13. OPTION STRICT OFF
  14. OPTION ANGLE RADIANS
  15. OPTION BUGS ON
  16. OPTION LABELS OFF
  17. OPTION COMPARE BINARY
  18. OPTION COVERAGE OFF
  19. OPTION TRACE OFF
  20. OPTION ERROR GOTO
  21. OPTION IMPLICIT
  22. OPTION BASE 0
  23. OPTION RECLEN 512
  24. OPTION DATE "%d-%b-%y"
  25. OPTION TIME "%I:%M %p"
  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: AS
  60. DESCRIPTION: Syntax Error.
  61. ------------------------------------------------------------
  62. SYNTAX: AUTO [start [, increment]]
  63. DESCRIPTION: Automatic line numbering for manual program
  64. entry. If the line already exists, then an
  65. asterisk is displayed and pressing ENTER
  66. leaves the line as-is. If the line does not
  67. exist, then an asterisk is not displayed and
  68. pressing ENTER terminates AUTO mode.
  69. Regardless whether the line exists, entering
  70. the command MAN will terminate AUTO mode.
  71. AUTO mode is also terminated by any ERROR or
  72. by pressing control-C.
  73. ------------------------------------------------------------
  74. SYNTAX: BYE
  75. DESCRIPTION: Exits to the operating system.
  76. ------------------------------------------------------------
  77. SYNTAX: CHAIN filename$ [, linenumber]
  78. DESCRIPTION: Load and execute another BASIC program,
  79. without clearing common variables. For
  80. System/370, the syntax is CHAIN
  81. filename$,parameter$.
  82. ------------------------------------------------------------
  83. SYNTAX: CHANGE A$ TO X
  84. DESCRIPTION: Changes a string to a numeric array.
  85. ------------------------------------------------------------
  86. SYNTAX: CHANGE X TO A$
  87. DESCRIPTION: Changes a numeric array to a string.
  88. ------------------------------------------------------------
  89. SYNTAX: CLEAR
  90. DESCRIPTION: Sets all numeric variables to 0, and all
  91. string variables to empty strings.
  92. ------------------------------------------------------------
  93. SYNTAX: CLOAD [filename$]
  94. DESCRIPTION: Loads an ASCII BASIC program into memory.
  95. ------------------------------------------------------------
  96. SYNTAX: CLOAD* arrayname
  97. DESCRIPTION: Loads a numeric array from a file saved using
  98. CSAVE*.
  99. ------------------------------------------------------------
  100. SYNTAX: COMMON variable [, ...]
  101. DESCRIPTION: Designates variables to be passed to a CHAINed
  102. program.
  103. ------------------------------------------------------------
  104. SYNTAX: CONT
  105. DESCRIPTION: Continue a BASIC program after a STOP has been
  106. executed. Program resumes at the line after
  107. the STOP.
  108. ------------------------------------------------------------
  109. SYNTAX: CSAVE [filename$]
  110. DESCRIPTION: Saves the current program into the file
  111. filename$ in ASCII format.
  112. ------------------------------------------------------------
  113. SYNTAX: CSAVE* ArrayName
  114. DESCRIPTION: Saves a numeric array into a file for later
  115. loading by CLOAD*.
  116. ------------------------------------------------------------
  117. SYNTAX: DATA constant [, ...]
  118. DESCRIPTION: Stores numeric and string constants to be
  119. accessed by READ.
  120. ------------------------------------------------------------
  121. SYNTAX: DEF FNname[( arg [,...] )] = value
  122. DESCRIPTION: Defines a single-line function. Single-line
  123. functions require an equal sign.
  124. ------------------------------------------------------------
  125. SYNTAX: DEF FNname[( arg [,...] )]
  126. DESCRIPTION: Defines a multiline function. Multi-line DEF
  127. functions do not have an equal sign and must
  128. end with FNEND.
  129. ------------------------------------------------------------
  130. SYNTAX: DEFDBL letter[-letter] [, ...]
  131. DESCRIPTION: Declares variables with single-letter names as
  132. numeric variables.
  133. ------------------------------------------------------------
  134. SYNTAX: DEFINT letter[-letter] [, ...]
  135. DESCRIPTION: Declares variables with single-letter names as
  136. numeric variables.
  137. ------------------------------------------------------------
  138. SYNTAX: DEFSNG letter[-letter] [, ...]
  139. DESCRIPTION: Declares variables with single-letter names as
  140. numeric variables.
  141. ------------------------------------------------------------
  142. SYNTAX: DEFSTR letter[-letter] [, ...]
  143. DESCRIPTION: Declares variables with single-letter names as
  144. string variables.
  145. ------------------------------------------------------------
  146. SYNTAX: DELETE line [- line]
  147. DESCRIPTION: Deletes program lines indicated by the
  148. argument(s). All program lines have a
  149. number, which is visible with the LIST
  150. command. If line numbers are not provided,
  151. they are assigned beginning with 1. Deleting
  152. a non-existing line does not cause an error.
  153. ------------------------------------------------------------
  154. SYNTAX: DIM [# filenum,] variable([ lower TO ] upper)
  155. DESCRIPTION: Declares variables and specifies the
  156. dimensions of array variables. For array
  157. variables, if the lower bound is not
  158. provided, then the OPTION BASE value is used.
  159. If filenum is provided, then the variable is
  160. virtual.
  161. ------------------------------------------------------------
  162. SYNTAX: EDIT
  163. DESCRIPTION: implementation defined.
  164. ------------------------------------------------------------
  165. SYNTAX: ELSE
  166. DESCRIPTION: Introduces a default condition in a multi-line
  167. IF statement.
  168. ------------------------------------------------------------
  169. SYNTAX: ELSEIF
  170. DESCRIPTION: Introduces a secondary condition in a
  171. multi-line IF statement.
  172. ------------------------------------------------------------
  173. SYNTAX: END
  174. DESCRIPTION: Terminates program execution. If the BASIC
  175. program was executed from the operating
  176. system level, then control returns to the
  177. operating system, oterwise control reuturns
  178. to the BASIC prompt.
  179. ------------------------------------------------------------
  180. SYNTAX: END IF
  181. DESCRIPTION: Specifies the last line of a multi-line IF
  182. definition.
  183. ------------------------------------------------------------
  184. SYNTAX: ERASE variable [, ...]
  185. DESCRIPTION: Eliminates arrayed variables from a program.
  186. ------------------------------------------------------------
  187. SYNTAX: FIELD [#] filenum, number AS variable$ [, ...]
  188. DESCRIPTION: Assigns number bytes in the buffer of random
  189. file filenum to the variable variable$. GET
  190. will automatically update the variable, and
  191. PUT will automatically use the variable.
  192. ------------------------------------------------------------
  193. SYNTAX: FNEND
  194. DESCRIPTION: Specifies the last line of a multi-line DEF
  195. function.
  196. ------------------------------------------------------------
  197. SYNTAX: FOR variable = start TO finish [STEP
  198. increment]
  199. DESCRIPTION: Top of a FOR - NEXT structure. The loop will
  200. continue a fixed number of times, which is
  201. determined by the values of start, finish,
  202. and increment.
  203. ------------------------------------------------------------
  204. SYNTAX: GET # file_number [ , RECORD record_number ]
  205. DESCRIPTION: Gets one (or more) values from a file.
  206. ------------------------------------------------------------
  207. SYNTAX: GET # file_number [ , RECORD record_number ]
  208. DESCRIPTION: Gets one (or more) values from a file.
  209. ------------------------------------------------------------
  210. SYNTAX: GO
  211. DESCRIPTION: Syntax Error.
  212. ------------------------------------------------------------
  213. SYNTAX: GO SUB line
  214. DESCRIPTION: Initiates a subroutine call to the line
  215. specified. The subroutine must end with
  216. RETURN. The line may be a number or a label.
  217. ------------------------------------------------------------
  218. SYNTAX: GO TO line
  219. DESCRIPTION: Branches program execution to the specified
  220. line. The line may be a number or a label.
  221. ------------------------------------------------------------
  222. SYNTAX: GOODBYE
  223. DESCRIPTION: Exits to the operating system.
  224. ------------------------------------------------------------
  225. SYNTAX: GOSUB line
  226. DESCRIPTION: Initiates a subroutine call to the line
  227. specified. The subroutine must end with
  228. RETURN. The line may be a number or a label.
  229. ------------------------------------------------------------
  230. SYNTAX: GOTO line
  231. DESCRIPTION: Branches program execution to the specified
  232. line. The line may be a number or a label.
  233. ------------------------------------------------------------
  234. SYNTAX: IF value THEN line1 [ELSE line2]
  235. DESCRIPTION: Single line standard IF command. If the value
  236. is non-zero, then branh to line1. If the
  237. value is zero and ELSE is provided, then
  238. branch to line2. Otherwise continue to the
  239. next line. LABELS are not allowed.
  240. ------------------------------------------------------------
  241. SYNTAX: IF value THEN
  242. DESCRIPTION: Top of a multi-line IF - END IF structure. If
  243. the value is non-zero, then the program lines
  244. upto the next ELSE or ELSE IF command are
  245. executed, otherwise the program branches to
  246. the next ELSE or ELSE IF command.
  247. ------------------------------------------------------------
  248. SYNTAX: INPUT "prompt string" , variable [, ...]
  249. DESCRIPTION: Reads input from the terminal after displaying
  250. a prompt.
  251. ------------------------------------------------------------
  252. SYNTAX: INPUT # filenum , variable [, ...]s
  253. DESCRIPTION: Reads input from the file specified by
  254. filenum.
  255. ------------------------------------------------------------
  256. SYNTAX: INPUT variable [, ...]
  257. DESCRIPTION: Reads input from the terminal.
  258. ------------------------------------------------------------
  259. SYNTAX: INPUT LINE variable$
  260. DESCRIPTION: Reads entire line from the terminal into
  261. variable$.
  262. ------------------------------------------------------------
  263. SYNTAX: INPUT LINE # filenum , variable$
  264. DESCRIPTION: Reads entire line from a file into variable$.
  265. ------------------------------------------------------------
  266. SYNTAX: INPUT LINE "prompt string" , variable$
  267. DESCRIPTION: Reads entire line from the terminal into
  268. variable$ after displaying a prompt
  269. ------------------------------------------------------------
  270. SYNTAX: [LET] variable [, ...] = value
  271. DESCRIPTION: Assigns the value to the variable. The LET
  272. keyword is optional.
  273. ------------------------------------------------------------
  274. SYNTAX: LINE
  275. DESCRIPTION: Syntax Error.
  276. ------------------------------------------------------------
  277. SYNTAX: LINE INPUT [[#] filenum,]["prompt string";]
  278. variable$
  279. DESCRIPTION: Reads entire line from the keyboard or a file
  280. into variable$.
  281. ------------------------------------------------------------
  282. SYNTAX: LIST line1 [- line2]
  283. DESCRIPTION: Lists BASIC program lines from line1 to line2
  284. to the console on stdout.
  285. ------------------------------------------------------------
  286. SYNTAX: LISTNH line1 [- line2]
  287. DESCRIPTION: Lists BASIC program lines from line1 to line2
  288. to the console on stdout.
  289. ------------------------------------------------------------
  290. SYNTAX: LLIST line1 [- line2]
  291. DESCRIPTION: Lists BASIC program lines from line1 to line2
  292. to the printer on stderr.
  293. ------------------------------------------------------------
  294. SYNTAX: LOAD [filename$]
  295. DESCRIPTION: Loads an ASCII BASIC program into memory.
  296. ------------------------------------------------------------
  297. SYNTAX: LPRINT [USING format-string$;] value ...
  298. DESCRIPTION: Send output to the printer (stderr).
  299. ------------------------------------------------------------
  300. SYNTAX: LSET variable$ = value
  301. DESCRIPTION: Left-aligns the value into variable$. If the
  302. length of the value is too short, then it is
  303. padded on the right with spaces. If the
  304. length of the value is too long, then it is
  305. truncated on the right. This is only for use
  306. with variables assigned to a random access
  307. buffer with FIELD command.
  308. ------------------------------------------------------------
  309. SYNTAX: MAINTAINER
  310. DESCRIPTION: This command is reserved for use by the
  311. Bywater BASIC maintainer. It is not for the
  312. BASIC programmer.
  313. ------------------------------------------------------------
  314. SYNTAX: MAINTAINER CMDS
  315. DESCRIPTION: Syntax Error.
  316. ------------------------------------------------------------
  317. SYNTAX: MAINTAINER CMDS HTML
  318. DESCRIPTION: Dump COMMAND vs VERSION as HTML table
  319. ------------------------------------------------------------
  320. SYNTAX: MAINTAINER CMDS ID
  321. DESCRIPTION: Dump COMMAND #define.
  322. ------------------------------------------------------------
  323. SYNTAX: MAINTAINER CMDS MANUAL
  324. DESCRIPTION: Dump COMMAND manual.
  325. ------------------------------------------------------------
  326. SYNTAX: MAINTAINER CMDS_SWITCH
  327. DESCRIPTION: Dump COMMAND switch.
  328. ------------------------------------------------------------
  329. SYNTAX: MAINTAINER CMDS TABLE
  330. DESCRIPTION: Dump COMMAND table.
  331. ------------------------------------------------------------
  332. SYNTAX: MAINTAINER DEBUG
  333. DESCRIPTION: Syntax Error.
  334. ------------------------------------------------------------
  335. SYNTAX: MAINTAINER DEBUG OFF
  336. DESCRIPTION: Disable degug tracing.
  337. ------------------------------------------------------------
  338. SYNTAX: MAINTAINER DEBUG ON
  339. DESCRIPTION: Enable degug tracing.
  340. ------------------------------------------------------------
  341. SYNTAX: MAINTAINER FNCS
  342. DESCRIPTION: Syntax Error.
  343. ------------------------------------------------------------
  344. SYNTAX: MAINTAINER FNCS HTML
  345. DESCRIPTION: Dump FUNCTION vs VERSION as HTML table.
  346. ------------------------------------------------------------
  347. SYNTAX: MAINTAINER FNCS ID
  348. DESCRIPTION: Dump FUNCTION #define.
  349. ------------------------------------------------------------
  350. SYNTAX: MAINTAINER FNCS MANUAL
  351. DESCRIPTION: Dump FUNCTION manual.
  352. ------------------------------------------------------------
  353. SYNTAX: MAINTAINER FNCS SWITCH
  354. DESCRIPTION: Dump FUNCTION switch.
  355. ------------------------------------------------------------
  356. SYNTAX: MAINTAINER FNCS TABLE
  357. DESCRIPTION: Dump FUNCTION table.
  358. ------------------------------------------------------------
  359. SYNTAX: MAINTAINER MANUAL
  360. DESCRIPTION: Dump manual for the currently selected OPTION
  361. VERSION.
  362. ------------------------------------------------------------
  363. SYNTAX: MAINTAINER STACK
  364. DESCRIPTION: Dump the BASIC stack.
  365. ------------------------------------------------------------
  366. SYNTAX: MAT arrayname = value
  367. DESCRIPTION: Matrix operations:
  368. MAT A = CON
  369. MAT A = IDN
  370. MAT A = ZER
  371. MAT A = INV B
  372. MAT A = TRN B
  373. MAT A = (k) * B
  374. MAT A = B
  375. MAT A = B + C
  376. MAT A = B - C
  377. MAT A = B * C
  378. ------------------------------------------------------------
  379. SYNTAX: MAT INPUT arrayname
  380. DESCRIPTION: Matrix input.
  381. ------------------------------------------------------------
  382. SYNTAX: MAT PRINT arrayname
  383. DESCRIPTION: Matrix print.
  384. ------------------------------------------------------------
  385. SYNTAX: MAT READ arrayname
  386. DESCRIPTION: Matrix read.
  387. ------------------------------------------------------------
  388. SYNTAX: MERGE filename$
  389. DESCRIPTION: Merges the BASIC program in filename$ into the
  390. current BASIC program. Lines in filename$
  391. replace any matching lines in the current
  392. program.
  393. ------------------------------------------------------------
  394. SYNTAX: MID$( variable$, start [, count ] ) = value
  395. DESCRIPTION: Replaces a subtring of variable$ with value.
  396. ------------------------------------------------------------
  397. SYNTAX: NAME old$ AS new$
  398. DESCRIPTION: Changes the name of an existing file.
  399. ------------------------------------------------------------
  400. SYNTAX: NEW
  401. DESCRIPTION: Deletes the program in memory and clears all
  402. variables.
  403. ------------------------------------------------------------
  404. SYNTAX: NEXT [variable]
  405. DESCRIPTION: The bottom line of a FOR - NEXT structure.
  406. ------------------------------------------------------------
  407. SYNTAX: OF
  408. DESCRIPTION: Syntax Error.
  409. ------------------------------------------------------------
  410. SYNTAX: OLD [filename$]
  411. DESCRIPTION: Loads an ASCII BASIC program into memory.
  412. ------------------------------------------------------------
  413. SYNTAX: ON value GOSUB line [, ...]
  414. DESCRIPTION: Calls based on the rounded value.
  415. ------------------------------------------------------------
  416. SYNTAX: ON value GOTO line [, ...]
  417. DESCRIPTION: Branches based on the rounded value.
  418. ------------------------------------------------------------
  419. SYNTAX: ON ERROR
  420. DESCRIPTION: Syntax Error.
  421. ------------------------------------------------------------
  422. SYNTAX: ON ERROR GOTO errline
  423. DESCRIPTION: When a trappable error occurs, execute GOTO
  424. errline. The error handler must terminate
  425. with a RESUME command. If the line number is
  426. 0 (zerp), then use the default error handler.
  427. Valid when OPTION ERROR GOTO.
  428. ------------------------------------------------------------
  429. SYNTAX: ON ERROR RESUME
  430. DESCRIPTION: Syntax Error.
  431. ------------------------------------------------------------
  432. SYNTAX: ON ERROR RESUME NEXT
  433. DESCRIPTION: When a trappable error occurs, execution
  434. continues with the next line. Valid when
  435. OPTION ERROR GOTO.
  436. ------------------------------------------------------------
  437. SYNTAX: OPEN filename$
  438. FOR INPUT|OUTPUT|APPEND|BINARY|RANDOM|VIRTUAL
  439. AS FILE filenumber
  440. [ ,RECORDSIZE ignored ]
  441. [ ,CLUSTERSIZE ignored ]
  442. [ ,MODE ignored ]
  443. DESCRIPTION: Opens a file for use.
  444. ------------------------------------------------------------
  445. SYNTAX: OPTION
  446. DESCRIPTION: Syntax Error.
  447. ------------------------------------------------------------
  448. SYNTAX: OPTION ANGLE
  449. DESCRIPTION: Syntax Error.
  450. ------------------------------------------------------------
  451. SYNTAX: OPTION ANGLE DEGREES
  452. DESCRIPTION: Configures these math functions to accept and
  453. return angles in degrees: ACOS, ACS, ANGLE,
  454. ARCSIN, ASIN, ASN, ARCTAN, ATN, ATAN, COS,
  455. COT, CSC, SEC, SIN and TAN.
  456. ------------------------------------------------------------
  457. SYNTAX: OPTION ANGLE GRADIANS
  458. DESCRIPTION: Configures these math functions to accept and
  459. return angles in gradians: ACOS, ANGLE,
  460. ASIN, ASN, ATN, ATAN, COS, COT, CSC, SEC, SIN
  461. and TAN.
  462. ------------------------------------------------------------
  463. SYNTAX: OPTION ANGLE RADIANS
  464. DESCRIPTION: Configures these math functions to accept and
  465. return angles in radians: ACOS, ANGLE, ASIN,
  466. ASN, ATN, ATAN, COS, COT, CSC, SEC, SIN and
  467. TAN.
  468. ------------------------------------------------------------
  469. SYNTAX: OPTION ARITHMETIC
  470. DESCRIPTION: Syntax Error.
  471. ------------------------------------------------------------
  472. SYNTAX: OPTION ARITHMETIC DECIMAL
  473. DESCRIPTION: Currently has no effect.
  474. ------------------------------------------------------------
  475. SYNTAX: OPTION ARITHMETIC FIXED
  476. DESCRIPTION: Currently has no effect.
  477. ------------------------------------------------------------
  478. SYNTAX: OPTION ARITHMETIC NATIVE
  479. DESCRIPTION: Currently has no effect.
  480. ------------------------------------------------------------
  481. SYNTAX: OPTION BASE integer
  482. DESCRIPTION: Sets the default lowest array subscript.
  483. ------------------------------------------------------------
  484. SYNTAX: OPTION BUGS
  485. DESCRIPTION: Syntax Error.
  486. ------------------------------------------------------------
  487. SYNTAX: OPTION BUGS BOOLEAN
  488. DESCRIPTION: Boolean results are 1 or 0 instead of bitwise.
  489. ------------------------------------------------------------
  490. SYNTAX: OPTION BUGS OFF
  491. DESCRIPTION: Disables bugs commonly found in many BASIC
  492. dialects.
  493. ------------------------------------------------------------
  494. SYNTAX: OPTION BUGS ON
  495. DESCRIPTION: Enables bugs commonly found in many BASIC
  496. dialects.
  497. ------------------------------------------------------------
  498. SYNTAX: OPTION COMPARE
  499. DESCRIPTION: Syntax Error.
  500. ------------------------------------------------------------
  501. SYNTAX: OPTION COMPARE BINARY
  502. DESCRIPTION: Causes string comparisons to be
  503. case-sensitive.
  504. ------------------------------------------------------------
  505. SYNTAX: OPTION COMPARE DATABASE
  506. DESCRIPTION: Causes string comparisons to be
  507. case-insensitive.
  508. ------------------------------------------------------------
  509. SYNTAX: OPTION COMPARE TEXT
  510. DESCRIPTION: Causes string comparisons to be
  511. case-insensitive.
  512. ------------------------------------------------------------
  513. SYNTAX: OPTION COVERAGE
  514. DESCRIPTION: Syntax Error.
  515. ------------------------------------------------------------
  516. SYNTAX: OPTION COVERAGE OFF
  517. DESCRIPTION: Disables BASIC code coverage recording,
  518. displayed using the LIST command.
  519. ------------------------------------------------------------
  520. SYNTAX: OPTION COVERAGE ON
  521. DESCRIPTION: Enables BASIC code coverage recording,
  522. displayed using the LIST command.
  523. ------------------------------------------------------------
  524. SYNTAX: OPTION DATE format$
  525. DESCRIPTION: Sets the date format string used by C
  526. strftime() for DATE$.
  527. ------------------------------------------------------------
  528. SYNTAX: OPTION DIGITS integer
  529. DESCRIPTION: Sets the number of significant digits for
  530. PRINT. Setting the value to zero restores
  531. the default.
  532. ------------------------------------------------------------
  533. SYNTAX: OPTION DISABLE
  534. DESCRIPTION: Syntax Error.
  535. ------------------------------------------------------------
  536. SYNTAX: OPTION DISABLE COMMAND name$
  537. DESCRIPTION: Disables the specified BASIC command.
  538. ------------------------------------------------------------
  539. SYNTAX: OPTION DISABLE FUNCTION name$
  540. DESCRIPTION: Disables the specified BASIC function.
  541. ------------------------------------------------------------
  542. SYNTAX: OPTION DISABLE OPERATOR name$
  543. DESCRIPTION: Disables the specified BASIC operator.
  544. ------------------------------------------------------------
  545. SYNTAX: OPTION EDIT string$
  546. DESCRIPTION: Sets the program name used by the EDIT
  547. command.
  548. ------------------------------------------------------------
  549. SYNTAX: OPTION ENABLE
  550. DESCRIPTION: Syntax Error.
  551. ------------------------------------------------------------
  552. SYNTAX: OPTION ENABLE COMMAND name$
  553. DESCRIPTION: Enables the specified BASIC command.
  554. ------------------------------------------------------------
  555. SYNTAX: OPTION ENABLE FUNCTION name$
  556. DESCRIPTION: Enables the specified BASIC function.
  557. ------------------------------------------------------------
  558. SYNTAX: OPTION ENABLE OPERATOR name$
  559. DESCRIPTION: Enables the specified BASIC operator.
  560. ------------------------------------------------------------
  561. SYNTAX: OPTION ERROR
  562. DESCRIPTION: Syntax Error.
  563. ------------------------------------------------------------
  564. SYNTAX: OPTION ERROR GOSUB
  565. DESCRIPTION: When an error occurs, GOSUB to the error
  566. handler. The error handler exits with
  567. RETURN.
  568. ------------------------------------------------------------
  569. SYNTAX: OPTION ERROR GOTO
  570. DESCRIPTION: When an error occurs, GOTO to the error
  571. handler. The error handler exits with
  572. RESUME.
  573. ------------------------------------------------------------
  574. SYNTAX: OPTION EXPLICIT
  575. DESCRIPTION: All variables must be declared using DIM.
  576. ------------------------------------------------------------
  577. SYNTAX: OPTION EXTENSION string$
  578. DESCRIPTION: Sets the BASIC filename extension, commonly
  579. ".bas".
  580. ------------------------------------------------------------
  581. SYNTAX: OPTION FILES string$
  582. DESCRIPTION: Sets the program name used by the FILES
  583. command.
  584. ------------------------------------------------------------
  585. SYNTAX: OPTION IMPLICIT
  586. DESCRIPTION: Variables need not be declared using DIM,
  587. provided arrays have no more that 10
  588. elements. This is the opposite of OPTION
  589. EXPLICIT, and is the default for all versions
  590. of BASIC.
  591. ------------------------------------------------------------
  592. SYNTAX: OPTION INDENT integer
  593. DESCRIPTION: Sets indention level for LIST. Zero means no
  594. indention. Default is 2.
  595. ------------------------------------------------------------
  596. SYNTAX: OPTION LABELS
  597. DESCRIPTION: Syntax Error.
  598. ------------------------------------------------------------
  599. SYNTAX: OPTION LABELS OFF
  600. DESCRIPTION: Disables text labels.
  601. ------------------------------------------------------------
  602. SYNTAX: OPTION LABELS ON
  603. DESCRIPTION: Enables text labels.
  604. ------------------------------------------------------------
  605. SYNTAX: OPTION PROMPT string$
  606. DESCRIPTION: Sets the BASIC prompt.
  607. ------------------------------------------------------------
  608. SYNTAX: OPTION PUNCT
  609. DESCRIPTION: Syntax Error.
  610. ------------------------------------------------------------
  611. SYNTAX: OPTION PUNCT AT char$
  612. DESCRIPTION: Sets the PRINT AT character, commonly "@".
  613. ------------------------------------------------------------
  614. SYNTAX: OPTION PUNCT BYTE char$
  615. DESCRIPTION: Sets the suffix character that indicates a
  616. variable is of type BYTE, commonly "~".
  617. ------------------------------------------------------------
  618. SYNTAX: OPTION PUNCT COMMENT char$
  619. DESCRIPTION: Sets the shortcut COMMENT character.
  620. ------------------------------------------------------------
  621. SYNTAX: OPTION PUNCT CURRENCY char$
  622. DESCRIPTION: Sets the suffix character that indicates a
  623. variable is of type CURRENCY, commonly "@".
  624. ------------------------------------------------------------
  625. SYNTAX: OPTION PUNCT DOUBLE char$
  626. DESCRIPTION: Sets the suffix character that indicates a
  627. variable is of type DOUBLE, commonly "#".
  628. ------------------------------------------------------------
  629. SYNTAX: OPTION PUNCT FILENUM char$
  630. DESCRIPTION: Sets the FILE NUMBER prefix character,
  631. commonly "#".
  632. ------------------------------------------------------------
  633. SYNTAX: OPTION PUNCT IMAGE char$
  634. DESCRIPTION: Sets the shortcut IMAGE character, commonly
  635. ":".
  636. ------------------------------------------------------------
  637. SYNTAX: OPTION PUNCT INPUT char$
  638. DESCRIPTION: Sets the shortcut INPUT character, commonly
  639. "!".
  640. ------------------------------------------------------------
  641. SYNTAX: OPTION PUNCT INTEGER char$
  642. DESCRIPTION: Sets the suffix character that indicates a
  643. variable is of type INTEGER, commonly "%".
  644. ------------------------------------------------------------
  645. SYNTAX: OPTION PUNCT LONG char$
  646. DESCRIPTION: Sets the suffix character that indicates a
  647. variable is of type LONG, commonly "&".
  648. ------------------------------------------------------------
  649. SYNTAX: OPTION PUNCT LPAREN char$
  650. DESCRIPTION: Sets the LEFT PARENTHESIS character, commonly
  651. "(".
  652. ------------------------------------------------------------
  653. SYNTAX: OPTION PUNCT_PRINT char$
  654. DESCRIPTION: Sets the shortcut PRINT character, commonly
  655. "?".
  656. ------------------------------------------------------------
  657. SYNTAX: OPTION PUNCT QUOTE char$
  658. DESCRIPTION: Sets the QUOTE character, commonly """
  659. ------------------------------------------------------------
  660. SYNTAX: OPTION PUNCT RPAREN char$
  661. DESCRIPTION: Sets the RIGHT PARENTHESIS character, commonly
  662. ")".
  663. ------------------------------------------------------------
  664. SYNTAX: OPTION PUNCT SINGLE char$
  665. DESCRIPTION: Sets the suffix character that indicates a
  666. variable is of type SINGLE, commonly "!".
  667. ------------------------------------------------------------
  668. SYNTAX: OPTION PUNCT STATEMENT char$
  669. DESCRIPTION: Sets the statement seperator character,
  670. commonly ":".
  671. ------------------------------------------------------------
  672. SYNTAX: OPTION PUNCT STRING char$
  673. DESCRIPTION: Sets the suffix character that indicates a
  674. variable is of type STRING, commonly "$".
  675. ------------------------------------------------------------
  676. SYNTAX: OPTION RECLEN integer
  677. DESCRIPTION: Sets the default RANDOM record length.
  678. ------------------------------------------------------------
  679. SYNTAX: OPTION RENUM string$
  680. DESCRIPTION: Sets the program name used by the RENUM
  681. command.
  682. ------------------------------------------------------------
  683. SYNTAX: OPTION ROUND
  684. DESCRIPTION: Syntax Error.
  685. ------------------------------------------------------------
  686. SYNTAX: OPTION ROUND BANK
  687. DESCRIPTION: Round using the Banker rule.
  688. ------------------------------------------------------------
  689. SYNTAX: OPTION ROUND MATH
  690. DESCRIPTION: Round using mathematical rules.
  691. ------------------------------------------------------------
  692. SYNTAX: OPTION ROUND TRUNCATE
  693. DESCRIPTION: Round using truncation.
  694. ------------------------------------------------------------
  695. SYNTAX: OPTION SCALE integer
  696. DESCRIPTION: Sets the number of digits to round after the
  697. decimal point for PRINT. Setting the value
  698. to zero disables rounding.
  699. ------------------------------------------------------------
  700. SYNTAX: OPTION SLEEP double
  701. DESCRIPTION: Sets multiplier for SLEEP and WAIT. Zero
  702. means no waiting. Default is 1.
  703. ------------------------------------------------------------
  704. SYNTAX: OPTION STDERR filename$
  705. DESCRIPTION: Sets the file used for STDERR, which is used
  706. by LPRINT commands.
  707. ------------------------------------------------------------
  708. SYNTAX: OPTION STDIN filename$
  709. DESCRIPTION: Sets the file used for STDIN, which is used by
  710. INPUT commands.
  711. ------------------------------------------------------------
  712. SYNTAX: OPTION STDOUT filename$
  713. DESCRIPTION: Sets the file used for STDOUT, which is used
  714. by PRINT commands.
  715. ------------------------------------------------------------
  716. SYNTAX: OPTION STRICT
  717. DESCRIPTION: Syntax Error.
  718. ------------------------------------------------------------
  719. SYNTAX: OPTION STRICT OFF
  720. DESCRIPTION: Disables checking for implicit array creation
  721. without using the DIM command.
  722. ------------------------------------------------------------
  723. SYNTAX: OPTION STRICT ON
  724. DESCRIPTION: Enables checking for implicit array creation
  725. without using the DIM command.
  726. ------------------------------------------------------------
  727. SYNTAX: OPTION TERMINAL
  728. DESCRIPTION: Syntax Error.
  729. ------------------------------------------------------------
  730. SYNTAX: OPTION TERMINAL ADM
  731. DESCRIPTION: Enables ADM-3A terminal control codes for CLS,
  732. COLOR, and LOCATE.
  733. ------------------------------------------------------------
  734. SYNTAX: OPTION TERMINAL ANSI
  735. DESCRIPTION: Enables ANSI terminal control codes for CLS,
  736. COLOR, and LOCATE.
  737. ------------------------------------------------------------
  738. SYNTAX: OPTION TERMINAL NONE
  739. DESCRIPTION: Disables terminal control codes for CLS,
  740. COLOR, and LOCATE.
  741. ------------------------------------------------------------
  742. SYNTAX: OPTION TIME format$
  743. DESCRIPTION: Sets the time format string used by C
  744. strftime() for TIME$.
  745. ------------------------------------------------------------
  746. SYNTAX: OPTION TRACE
  747. DESCRIPTION: Syntax Error.
  748. ------------------------------------------------------------
  749. SYNTAX: OPTION TRACE OFF
  750. DESCRIPTION: Disables displaying a stack trace when an
  751. ERROR occurs.
  752. ------------------------------------------------------------
  753. SYNTAX: OPTION TRACE ON
  754. DESCRIPTION: Enables displaying a stack trace when an ERROR
  755. occurs.
  756. ------------------------------------------------------------
  757. SYNTAX: OPTION USING
  758. DESCRIPTION: Syntax Error.
  759. ------------------------------------------------------------
  760. SYNTAX: OPTION USING ALL char$
  761. DESCRIPTION: Specifies the magic ALL character for the
  762. PRINT USING command. A common value is "&".
  763. ------------------------------------------------------------
  764. SYNTAX: OPTION USING COMMA char$
  765. DESCRIPTION: Specifies the magic COMMA character for the
  766. PRINT USING command. A common value is ",".
  767. ------------------------------------------------------------
  768. SYNTAX: OPTION USING DIGIT char$
  769. DESCRIPTION: Specifies the magic DIGIT character for the
  770. PRINT USING command. A common value is "#".
  771. ------------------------------------------------------------
  772. SYNTAX: OPTION USING DOLLAR char$
  773. DESCRIPTION: Specifies the magic DOLLAR character for the
  774. PRINT USING command. A common value is "$".
  775. ------------------------------------------------------------
  776. SYNTAX: OPTION USING EXRAD char$
  777. DESCRIPTION: Specifies the magic EXRAD character for the
  778. PRINT USING command. A common value is "^".
  779. ------------------------------------------------------------
  780. SYNTAX: OPTION USING FILLER char$
  781. DESCRIPTION: Specifies the magic FILLER character for the
  782. PRINT USING command. A common value is "*".
  783. ------------------------------------------------------------
  784. SYNTAX: OPTION USING FIRST char$
  785. DESCRIPTION: Specifies the magic FIRST character for the
  786. PRINT USING command. A common value is "!".
  787. ------------------------------------------------------------
  788. SYNTAX: OPTION USING LENGTH char$
  789. DESCRIPTION: Specifies the magic LENGTH character for the
  790. PRINT USING command. A common value is "\".
  791. ------------------------------------------------------------
  792. SYNTAX: OPTION USING LITERAL char$
  793. DESCRIPTION: Specifies the magic LITERAL character for the
  794. PRINT USING command. A common value is "_".
  795. ------------------------------------------------------------
  796. SYNTAX: OPTION USING MINUS char$
  797. DESCRIPTION: Specifies the magic MINUS character for the
  798. PRINT USING command. A common value is "-".
  799. ------------------------------------------------------------
  800. SYNTAX: OPTION USING PERIOD char$
  801. DESCRIPTION: Specifies the magic PERIOD character for the
  802. PRINT USING command. A common value is ".".
  803. ------------------------------------------------------------
  804. SYNTAX: OPTION USING PLUS char$
  805. DESCRIPTION: Specifies the magic PLUS character for the
  806. PRINT USING command. A common value is "+".
  807. ------------------------------------------------------------
  808. SYNTAX: OPTION VERSION version$
  809. DESCRIPTION: Selects a specific BASIC version, which is a
  810. combination of OPTION settings, commands,
  811. functions and operators. If no version is
  812. specified, displays a list of the available
  813. versions.
  814. ------------------------------------------------------------
  815. SYNTAX: OPTION ZONE integer
  816. DESCRIPTION: Sets the PRINT zone width. Setting the value
  817. to zero restores the default.
  818. ------------------------------------------------------------
  819. SYNTAX: PRINT # filenum , [USING format$;] value ...
  820. DESCRIPTION: Sends output to a file.
  821. ------------------------------------------------------------
  822. SYNTAX: PRINT [USING format$;] value ...
  823. DESCRIPTION: Sends output to the screen.
  824. ------------------------------------------------------------
  825. SYNTAX: PUT # file_number [ , RECORD record_number ]
  826. DESCRIPTION: Puts one (or more) values into a file.
  827. ------------------------------------------------------------
  828. SYNTAX: QUIT
  829. DESCRIPTION: Exits to the operating system.
  830. ------------------------------------------------------------
  831. SYNTAX: READ variable [, ...]
  832. DESCRIPTION: Reads values from DATA statements.
  833. ------------------------------------------------------------
  834. SYNTAX: REM ...
  835. DESCRIPTION: Remark.
  836. ------------------------------------------------------------
  837. SYNTAX: RENAME [filename$]
  838. DESCRIPTION: Changes the file name which will be used by
  839. SAVE. Does not save the file.
  840. ------------------------------------------------------------
  841. SYNTAX: RENUM
  842. DESCRIPTION: Implementation defined.
  843. ------------------------------------------------------------
  844. SYNTAX: RESTORE [line]
  845. DESCRIPTION: Resets the line used for the next READ
  846. statement. line may be either a number or a
  847. label.
  848. ------------------------------------------------------------
  849. SYNTAX: RESUME
  850. DESCRIPTION: Used in an error handler to specify the next
  851. line to execute. Branch to ERL.
  852. ------------------------------------------------------------
  853. SYNTAX: RESUME line
  854. DESCRIPTION: Used in an error handler to specify the next
  855. line to execute. Branch to the specified
  856. line.
  857. ------------------------------------------------------------
  858. SYNTAX: RESUME NEXT
  859. DESCRIPTION: Used in an error handler to specify the next
  860. line to execute. Branch to the line after
  861. ERL.
  862. ------------------------------------------------------------
  863. SYNTAX: RESUME 0
  864. DESCRIPTION: Used in an error handler to specify the next
  865. line to execute. Branch to ERL.
  866. ------------------------------------------------------------
  867. SYNTAX: RETURN
  868. DESCRIPTION: Concludes a subroutine called by GOSUB.
  869. ------------------------------------------------------------
  870. SYNTAX: RSET variable$ = value
  871. DESCRIPTION: Right-aligns the value into variable$. If the
  872. length of the value is too short, then it is
  873. padded on the left with spaces. If the
  874. length of the value is too long, then it is
  875. truncated on the right. This is only for use
  876. with variables assigned to a random access
  877. buffer with FIELD command.
  878. ------------------------------------------------------------
  879. SYNTAX: RUN filename$
  880. DESCRIPTION: Loads a new BAASIC program and executes the
  881. program from the start.
  882. ------------------------------------------------------------
  883. SYNTAX: RUN line
  884. DESCRIPTION: Executes the program in memory beginning at
  885. line.
  886. ------------------------------------------------------------
  887. SYNTAX: RUN
  888. DESCRIPTION: Executes the program in memory from the start.
  889. ------------------------------------------------------------
  890. SYNTAX: RUNNH line
  891. DESCRIPTION: Executes the program in memory beginning at
  892. line.
  893. ------------------------------------------------------------
  894. SYNTAX: RUNNH filename$
  895. DESCRIPTION: Loads a new BAASIC program and executes the
  896. program from the start.
  897. ------------------------------------------------------------
  898. SYNTAX: RUNNH
  899. DESCRIPTION: Executes the program in memory from the start.
  900. ------------------------------------------------------------
  901. SYNTAX: SAVE [filename$]
  902. DESCRIPTION: Saves the current program into the file
  903. filename$ in ASCII format.
  904. ------------------------------------------------------------
  905. SYNTAX: STEP
  906. DESCRIPTION: Syntax Error.
  907. ------------------------------------------------------------
  908. SYNTAX: STOP
  909. DESCRIPTION: Interrupts program execution and displays the
  910. line number of the STOP command. For use
  911. when debugging BASIC programs. Whether STOP
  912. issues a SIGINT signal is implementation
  913. defined.
  914. ------------------------------------------------------------
  915. SYNTAX: SWAP variable, variable
  916. DESCRIPTION: Swaps the values of two variables. Both
  917. variables must be of the same type.
  918. ------------------------------------------------------------
  919. SYNTAX: SYSTEM
  920. DESCRIPTION: Exits to the operating system.
  921. ------------------------------------------------------------
  922. SYNTAX: THEN
  923. DESCRIPTION: Syntax Error.
  924. ------------------------------------------------------------
  925. SYNTAX: TO
  926. DESCRIPTION: Syntax Error.
  927. ------------------------------------------------------------
  928. SYNTAX: WEND
  929. DESCRIPTION: Bottom of a WHILE - WEND structure.
  930. ------------------------------------------------------------
  931. SYNTAX: WHILE value
  932. DESCRIPTION: Top of a WHILE - WEND structure. If the value
  933. is non-zero, then the loop is terminated.
  934. ------------------------------------------------------------
  935. SYNTAX: WRITE # filenum, value [, .... ]
  936. DESCRIPTION: Outputs value to a file. Strings are quoted
  937. and each value is seperated by a omma.
  938. ------------------------------------------------------------
  939. SYNTAX: WRITE value [, .... ]
  940. DESCRIPTION: Outputs value to the screen. Strings are
  941. quoted and each value is seperated by a
  942. comma.
  943. ------------------------------------------------------------
  944. ============================================================
  945. FUNCTIONS
  946. ============================================================
  947. ------------------------------------------------------------
  948. SYNTAX: N = ABS( X )
  949. PARAMETER: X is a number
  950. DESCRIPTION: The absolute value of X.
  951. ------------------------------------------------------------
  952. SYNTAX: N = ASCII( A$ )
  953. PARAMETER: A$ is a string, LEN >= 1
  954. DESCRIPTION: The numeric code for the first letter in A$.
  955. For example, ASCII("ABC") returns 65 on ASCII
  956. systems.
  957. ------------------------------------------------------------
  958. SYNTAX: N = ATN( X )
  959. PARAMETER: X is a number
  960. DESCRIPTION: The arctangent of X in radians, i.e. the angle
  961. whose tangent is X, where -PI/2 < ATN(X) <
  962. PI/2.
  963. ------------------------------------------------------------
  964. SYNTAX: N = CATALOG
  965. DESCRIPTION: Displays all the file names.
  966. ------------------------------------------------------------
  967. SYNTAX: N = CATALOG( A$ )
  968. PARAMETER: A$ is a string, LEN >= 1
  969. DESCRIPTION: Displays all the file names matching A$.
  970. ------------------------------------------------------------
  971. SYNTAX: N = CDBL( X )
  972. PARAMETER: X is a number, [MINDBL,MAXDBL]
  973. DESCRIPTION: The double-precision value of X.
  974. ------------------------------------------------------------
  975. SYNTAX: N = CHDIR( A$ )
  976. PARAMETER: A$ is a string, LEN >= 1
  977. DESCRIPTION: Changes to the directory named to A$.
  978. ------------------------------------------------------------
  979. SYNTAX: S$ = CHR$( X )
  980. PARAMETER: X is a number, [0,255]
  981. DESCRIPTION: The one-character string with the character
  982. corresponding to the numeric code X. On
  983. ASCII systems, CHR$(65) returns "A".
  984. ------------------------------------------------------------
  985. SYNTAX: N = CINT( X )
  986. PARAMETER: X is a number, [MININT,MAXINT]
  987. DESCRIPTION: The short (16-bit) integer value of X.
  988. ------------------------------------------------------------
  989. SYNTAX: N = CLNG( X )
  990. PARAMETER: X is a number, [MINLNG,MAXLNG]
  991. DESCRIPTION: The long (32-bit) integer value of X.
  992. ------------------------------------------------------------
  993. SYNTAX: N = CLOSE
  994. DESCRIPTION: Close all open files.
  995. ------------------------------------------------------------
  996. SYNTAX: N = CLOSE( X )
  997. PARAMETER: X is a number, [MININT,MAXINT]
  998. DESCRIPTION: Close file number X.
  999. ------------------------------------------------------------
  1000. SYNTAX: N = COS( X )
  1001. PARAMETER: X is a number
  1002. DESCRIPTION: The cosine of X, where X is in radians.
  1003. ------------------------------------------------------------
  1004. SYNTAX: N = CSNG( X )
  1005. PARAMETER: X is a number, [MINFLT,MAXFLT]
  1006. DESCRIPTION: The single-precision value of X.
  1007. ------------------------------------------------------------
  1008. SYNTAX: N = CVD( A$ )
  1009. PARAMETER: A$ is a string, LEN >= sizeof(DBL)
  1010. DESCRIPTION: The double-precision value in A$, which was
  1011. created by MKD$.
  1012. ------------------------------------------------------------
  1013. SYNTAX: N = CVI( A$ )
  1014. PARAMETER: A$ is a string, LEN >= sizeof(INT)
  1015. DESCRIPTION: The short (16-bit) integer value in A$, which
  1016. was created by MKI$.
  1017. ------------------------------------------------------------
  1018. SYNTAX: N = CVL( A$ )
  1019. PARAMETER: A$ is a string, LEN >= sizeof(LNG)
  1020. DESCRIPTION: The long (32-bit) integer value in A$, which
  1021. was created by MKL$.
  1022. ------------------------------------------------------------
  1023. SYNTAX: N = CVS( A$ )
  1024. PARAMETER: A$ is a string, LEN >= sizeof(FLT)
  1025. DESCRIPTION: The single-precision value in A$, which was
  1026. created by MKS$.
  1027. ------------------------------------------------------------
  1028. SYNTAX: S$ = DATE$
  1029. DESCRIPTION: The current date based on the internal clock
  1030. as a string in the format set by OPTION DATE.
  1031. ------------------------------------------------------------
  1032. SYNTAX: S$ = DATE$( X )
  1033. PARAMETER: X is a number
  1034. DESCRIPTION: The current date based on the internal clock
  1035. as a string in the format set by OPTION DATE.
  1036. The value of parameter X is ignored.
  1037. ------------------------------------------------------------
  1038. SYNTAX: N = DET
  1039. DESCRIPTION: The determinant of the last MAT INV. Zero
  1040. means error.
  1041. ------------------------------------------------------------
  1042. SYNTAX: N = ENVIRON( A$ )
  1043. PARAMETER: A$ is a string, LEN >= 1
  1044. DESCRIPTION: Sends the environment variable expression
  1045. contained in A$ to the host operating system.
  1046. A$ must contain the "=" character.
  1047. ------------------------------------------------------------
  1048. SYNTAX: S$ = ENVIRON$( A$ )
  1049. PARAMETER: A$ is a string, LEN >= 1
  1050. DESCRIPTION: The value of the environment variable named
  1051. A$.
  1052. ------------------------------------------------------------
  1053. SYNTAX: N = EOF( X )
  1054. PARAMETER: X is a number, [MININT,MAXINT]
  1055. DESCRIPTION: If device number X is at the end-of-file, then
  1056. -1, otherwise 0.
  1057. ------------------------------------------------------------
  1058. SYNTAX: N = ERL
  1059. DESCRIPTION: The line number of the most recent error.
  1060. ------------------------------------------------------------
  1061. SYNTAX: N = ERR
  1062. DESCRIPTION: The error number of the most recent error.
  1063. ------------------------------------------------------------
  1064. SYNTAX: S$ = ERR$
  1065. DESCRIPTION: The last error message.
  1066. ------------------------------------------------------------
  1067. SYNTAX: N = ERROR( X )
  1068. PARAMETER: X is a number, [0,255]
  1069. DESCRIPTION: Simulate the error number in X.
  1070. ------------------------------------------------------------
  1071. SYNTAX: S$ = ERROR$
  1072. DESCRIPTION: The last error message.
  1073. ------------------------------------------------------------
  1074. SYNTAX: N = EXP( X )
  1075. PARAMETER: X is a number
  1076. DESCRIPTION: The exponential value of X, i.e., the value of
  1077. the base of natural logarithms (e = 2.71828)
  1078. raised to the power of X; if EXP(X) is less
  1079. that machine infinitesimal, then its value
  1080. shall be replaced with zero.
  1081. ------------------------------------------------------------
  1082. SYNTAX: N = FILEATTR( X, Y )
  1083. PARAMETER: X is a number, [MININT,MAXINT]
  1084. PARAMETER: Y is a number, [MININT,MAXINT]
  1085. DESCRIPTION: For file X, if Y = 1 then returns open mode,
  1086. otherwise returns zero.
  1087. ------------------------------------------------------------
  1088. SYNTAX: N = FILES
  1089. DESCRIPTION: Displays all the file names.
  1090. ------------------------------------------------------------
  1091. SYNTAX: N = FILES( A$ )
  1092. PARAMETER: A$ is a string, LEN >= 1
  1093. DESCRIPTION: Displays all the file names matching A$.
  1094. ------------------------------------------------------------
  1095. SYNTAX: N = FIX( X )
  1096. PARAMETER: X is a number
  1097. DESCRIPTION: The truncated integer, part of X. FIX (X) is
  1098. equivalent to SGN(X)*INT(ABS(X)). The major
  1099. difference between FIX and INT is that FIX
  1100. does not return the next lower number for
  1101. negative X.
  1102. ------------------------------------------------------------
  1103. SYNTAX: N = FRE
  1104. DESCRIPTION: The number of bytes of available memory. This
  1105. function is provided for backward
  1106. compatibility only and it always returns a
  1107. fixed value of 32000.
  1108. ------------------------------------------------------------
  1109. SYNTAX: N = FRE( A$ )
  1110. PARAMETER: A$ is a string, LEN >= 0
  1111. DESCRIPTION: The number of bytes of available memory. This
  1112. function is provided for backward
  1113. compatibility only and it always returns a
  1114. fixed value of 32000.The value of A$ is
  1115. ignored.
  1116. ------------------------------------------------------------
  1117. SYNTAX: N = FRE( X )
  1118. PARAMETER: X is a number
  1119. DESCRIPTION: The number of bytes of available memory. This
  1120. function is provided for backward
  1121. compatibility only and it always returns a
  1122. fixed value of 32000. The value of X is
  1123. ignored.
  1124. ------------------------------------------------------------
  1125. SYNTAX: N = GET( X )
  1126. PARAMETER: X is a number, [MININT,MAXINT]
  1127. DESCRIPTION: For file X, gets the next available record.
  1128. ------------------------------------------------------------
  1129. SYNTAX: N = GET( X, Y )
  1130. PARAMETER: X is a number, [MININT,MAXINT]
  1131. PARAMETER: Y is a number, [MININT,MAXINT]
  1132. DESCRIPTION: For file X, gets record number Y. The first
  1133. record number is 1.
  1134. ------------------------------------------------------------
  1135. SYNTAX: S$ = HEX$( X )
  1136. PARAMETER: X is a number, [MININT,MAXINT]
  1137. DESCRIPTION: The the hexadecimal (base 16) representation
  1138. of X.
  1139. ------------------------------------------------------------
  1140. SYNTAX: S$ = INKEY$
  1141. DESCRIPTION: The keypress, if available. If a keypress is
  1142. not available, then immediately returns an
  1143. empty string. If not supported by the
  1144. platform, then always returns an empty
  1145. string, so use INPUT$(1) instead.
  1146. ------------------------------------------------------------
  1147. SYNTAX: N = INP( X )
  1148. PARAMETER: X is a number, [0,255]
  1149. DESCRIPTION: The value read from machine port X. Causes
  1150. ERROR 73.
  1151. ------------------------------------------------------------
  1152. SYNTAX: S$ = INPUT$( X )
  1153. PARAMETER: X is a number, [0,MAXLEN]
  1154. DESCRIPTION: The string of X characters, read from the
  1155. terminal.
  1156. ------------------------------------------------------------
  1157. SYNTAX: S$ = INPUT$( X, Y )
  1158. PARAMETER: X is a number, [0,MAXLEN]
  1159. PARAMETER: Y is a number, [MININT,MAXINT]
  1160. DESCRIPTION: The string of X characters, read from file Y.
  1161. ------------------------------------------------------------
  1162. SYNTAX: N = INSTR( A$, B$ )
  1163. PARAMETER: A$ is a string, LEN >= 0
  1164. PARAMETER: B$ is a string, LEN >= 0
  1165. DESCRIPTION: The position at which B$ occurs in A$,
  1166. beginning at position 1.
  1167. ------------------------------------------------------------
  1168. SYNTAX: N = INSTR( X, A$, B$ )
  1169. PARAMETER: X is a number, [1,MAXLEN]
  1170. PARAMETER: A$ is a string, LEN >= 0
  1171. PARAMETER: B$ is a string, LEN >= 0
  1172. DESCRIPTION: The position at which B$ occurs in A$,
  1173. beginning at position X.
  1174. ------------------------------------------------------------
  1175. SYNTAX: N = INT( X )
  1176. PARAMETER: X is a number
  1177. DESCRIPTION: The largest integer not greater than X; e.g.
  1178. INT(1.3) = 1 and INT(-1.3) = 2.
  1179. ------------------------------------------------------------
  1180. SYNTAX: N = KILL( A$ )
  1181. PARAMETER: A$ is a string, LEN >= 1
  1182. DESCRIPTION: Removes the file named in A$.
  1183. ------------------------------------------------------------
  1184. SYNTAX: S$ = LCASE$( A$ )
  1185. PARAMETER: A$ is a string, LEN >= 0
  1186. DESCRIPTION: The string of characters from the value
  1187. associatedwith A$ by replacing each
  1188. upper-case-letter in the string by its
  1189. lower-case version.
  1190. ------------------------------------------------------------
  1191. SYNTAX: S$ = LEFT( A$, X )
  1192. PARAMETER: A$ is a string, LEN >= 0
  1193. PARAMETER: X is a number, [0,MAXLEN]
  1194. DESCRIPTION: The X left-most characters of A$, beginning
  1195. from postion 1.
  1196. ------------------------------------------------------------
  1197. SYNTAX: S$ = LEFT$( A$, X )
  1198. PARAMETER: A$ is a string, LEN >= 0
  1199. PARAMETER: X is a number, [0,MAXLEN]
  1200. DESCRIPTION: The X left-most characters of A$, beginning
  1201. from postion 1.
  1202. ------------------------------------------------------------
  1203. SYNTAX: N = LEN( A$ )
  1204. PARAMETER: A$ is a string, LEN >= 0
  1205. DESCRIPTION: The length of A$.
  1206. ------------------------------------------------------------
  1207. SYNTAX: N = LOC( X )
  1208. PARAMETER: X is a number, [MININT,MAXINT]
  1209. DESCRIPTION: The location of file X; the next record that
  1210. GET or PUT statements will use.
  1211. ------------------------------------------------------------
  1212. SYNTAX: N = LOCATE( X, Y )
  1213. PARAMETER: X is a number, [0,255]
  1214. PARAMETER: Y is a number, [0,255]
  1215. DESCRIPTION: Locates the cursor to row X, column Y.
  1216. ------------------------------------------------------------
  1217. SYNTAX: N = LOF( X )
  1218. PARAMETER: X is a number, [MININT,MAXINT]
  1219. DESCRIPTION: The length of file X.
  1220. ------------------------------------------------------------
  1221. SYNTAX: N = LOG( X )
  1222. PARAMETER: X is a number, > 0
  1223. DESCRIPTION: The natural logarithm of X; X shall be greater
  1224. than zero.
  1225. ------------------------------------------------------------
  1226. SYNTAX: N = LOG10( X )
  1227. PARAMETER: X is a number, > 0
  1228. DESCRIPTION: The common logarithm of X; X shall be greater
  1229. than zero.
  1230. ------------------------------------------------------------
  1231. SYNTAX: N = LPOS
  1232. DESCRIPTION: The current cursor position in the line for
  1233. the printer.
  1234. ------------------------------------------------------------
  1235. SYNTAX: S$ = LTRIM$( A$ )
  1236. PARAMETER: A$ is a string, LEN >= 0
  1237. DESCRIPTION: The string of characters resulting from the
  1238. value associated with A$ by deleting all
  1239. leading space characters.
  1240. ------------------------------------------------------------
  1241. SYNTAX: N = LWIDTH( X )
  1242. PARAMETER: X is a number, [0,255]
  1243. DESCRIPTION: For printer, sets the line width to X. Zero
  1244. means no wrapping will occur.
  1245. ------------------------------------------------------------
  1246. SYNTAX: S$ = MID( A$, X )
  1247. PARAMETER: A$ is a string, LEN >= 0
  1248. PARAMETER: X is a number, [1,MAXLEN]
  1249. DESCRIPTION: The characters of A$, starting from postion X.
  1250. ------------------------------------------------------------
  1251. SYNTAX: S$ = MID( A$, X, Y )
  1252. PARAMETER: A$ is a string, LEN >= 0
  1253. PARAMETER: X is a number, [1,MAXLEN]
  1254. PARAMETER: Y is a number, [0,MAXLEN]
  1255. DESCRIPTION: The Y characters of A$, starting from postion
  1256. X.
  1257. ------------------------------------------------------------
  1258. SYNTAX: S$ = MID$( A$, X )
  1259. PARAMETER: A$ is a string, LEN >= 0
  1260. PARAMETER: X is a number, [1,MAXLEN]
  1261. DESCRIPTION: The characters of A$, starting from postion X.
  1262. ------------------------------------------------------------
  1263. SYNTAX: S$ = MID$( A$, X, Y )
  1264. PARAMETER: A$ is a string, LEN >= 0
  1265. PARAMETER: X is a number, [1,MAXLEN]
  1266. PARAMETER: Y is a number, [0,MAXLEN]
  1267. DESCRIPTION: The Y characters of A$, starting from postion
  1268. X.
  1269. ------------------------------------------------------------
  1270. SYNTAX: S$ = MKD$( X )
  1271. PARAMETER: X is a number, [MINDBL,MAXDBL]
  1272. DESCRIPTION: The internal representation of X as a string.
  1273. ------------------------------------------------------------
  1274. SYNTAX: N = MKDIR( A$ )
  1275. PARAMETER: A$ is a string, LEN >= 1
  1276. DESCRIPTION: Makes the directory named in A$.
  1277. ------------------------------------------------------------
  1278. SYNTAX: S$ = MKI$( X )
  1279. PARAMETER: X is a number, [MININT,MAXINT]
  1280. DESCRIPTION: The internal representation of the short
  1281. (16-bit) integer X as a string.
  1282. ------------------------------------------------------------
  1283. SYNTAX: S$ = MKL$( X )
  1284. PARAMETER: X is a number, [MINLNG,MAXLNG]
  1285. DESCRIPTION: The internal representation of the long
  1286. (32-bit) integer X as a string.
  1287. ------------------------------------------------------------
  1288. SYNTAX: S$ = MKS$( X )
  1289. PARAMETER: X is a number, [MINFLT,MAXFLT]
  1290. DESCRIPTION: The internal representation of X as a string.
  1291. ------------------------------------------------------------
  1292. SYNTAX: N = NAME( A$, B$ )
  1293. PARAMETER: A$ is a string, LEN >= 1
  1294. PARAMETER: B$ is a string, LEN >= 1
  1295. DESCRIPTION: Rename the file named A$ into B$.
  1296. ------------------------------------------------------------
  1297. SYNTAX: N = NULL( X )
  1298. PARAMETER: X is a number, [0,255]
  1299. DESCRIPTION: Appends X null characters after each line
  1300. printed by LPRINT or LLIST.
  1301. ------------------------------------------------------------
  1302. SYNTAX: S$ = NUM$( X )
  1303. PARAMETER: X is a number
  1304. DESCRIPTION: The string generated by the print-statement as
  1305. the numeric-representation of the value
  1306. associated with X.
  1307. ------------------------------------------------------------
  1308. SYNTAX: S$ = OCT$( X )
  1309. PARAMETER: X is a number, [MININT,MAXINT]
  1310. DESCRIPTION: The the octal (base 8) representation of X.
  1311. ------------------------------------------------------------
  1312. SYNTAX: N = OPEN( A$, X, B$ )
  1313. PARAMETER: A$ is a string, LEN >= 1
  1314. PARAMETER: X is a number, [MININT,MAXINT]
  1315. PARAMETER: B$ is a string, LEN >= 1
  1316. DESCRIPTION: Open file number X. A$ is the mode: "I", "O",
  1317. "A", "R". B$ is the file name. Default the
  1318. record length.
  1319. ------------------------------------------------------------
  1320. SYNTAX: N = OPEN( A$, X, B$, Y )
  1321. PARAMETER: A$ is a string, LEN >= 1
  1322. PARAMETER: X is a number, [MININT,MAXINT]
  1323. PARAMETER: B$ is a string, LEN >= 1
  1324. PARAMETER: Y is a number, [MININT,MAXINT]
  1325. DESCRIPTION: Open file number X. A$ is the mode: "I", "O",
  1326. "A", "R". B$ is the file name. Y is the
  1327. record length.
  1328. ------------------------------------------------------------
  1329. SYNTAX: N = OUT( X, Y )
  1330. PARAMETER: X is a number, [MININT,MAXINT]
  1331. PARAMETER: Y is a number, [0,255]
  1332. DESCRIPTION: Sends Y to hardware port X. Causes ERROR 73.
  1333. ------------------------------------------------------------
  1334. SYNTAX: N = PEEK( X )
  1335. PARAMETER: X is a number, [MINLNG,MAXLNG]
  1336. DESCRIPTION: The value read from hardware address X.
  1337. Causes ERROR 73.
  1338. ------------------------------------------------------------
  1339. SYNTAX: N = PI
  1340. DESCRIPTION: The constant 3.14159 which is the ratio of the
  1341. circumference of a circle to its diameter.
  1342. ------------------------------------------------------------
  1343. SYNTAX: N = POKE( X, Y )
  1344. PARAMETER: X is a number, [MINLNG,MAXLNG]
  1345. PARAMETER: Y is a number, [0,255]
  1346. DESCRIPTION: Sends Y to hardware address X. Causes ERROR
  1347. 73.
  1348. ------------------------------------------------------------
  1349. SYNTAX: N = POS
  1350. DESCRIPTION: The current cursor position in the line.
  1351. ------------------------------------------------------------
  1352. SYNTAX: N = POS( X )
  1353. PARAMETER: X is a number, [MININT,MAXINT]
  1354. DESCRIPTION: The current cursor position in the line for
  1355. file X.
  1356. ------------------------------------------------------------
  1357. SYNTAX: N = PUT( X )
  1358. PARAMETER: X is a number, [MININT,MAXINT]
  1359. DESCRIPTION: For file X, puts the next available record.
  1360. ------------------------------------------------------------
  1361. SYNTAX: N = PUT( X, Y )
  1362. PARAMETER: X is a number, [MININT,MAXINT]
  1363. PARAMETER: Y is a number, [MININT,MAXINT]
  1364. DESCRIPTION: For file X, puts record number Y. The first
  1365. record number is 1.
  1366. ------------------------------------------------------------
  1367. SYNTAX: N = RANDOM( X )
  1368. PARAMETER: X is a number
  1369. DESCRIPTION: Seeds the pseudo-random number generator with
  1370. X.
  1371. ------------------------------------------------------------
  1372. SYNTAX: N = RANDOMIZE
  1373. DESCRIPTION: Seeds the pseudo-random number generator with
  1374. TIME.
  1375. ------------------------------------------------------------
  1376. SYNTAX: N = RANDOMIZE( X )
  1377. PARAMETER: X is a number
  1378. DESCRIPTION: Seeds the pseudo-random number generator with
  1379. X.
  1380. ------------------------------------------------------------
  1381. SYNTAX: S$ = REPEAT$( X, A$ )
  1382. PARAMETER: X is a number, [0,MAXLEN]
  1383. PARAMETER: A$ is a string, LEN >= 1
  1384. DESCRIPTION: The string consisting of X copies of
  1385. LEFT$(A$,1); X > 0.
  1386. ------------------------------------------------------------
  1387. SYNTAX: S$ = REPEAT$( X, Y )
  1388. PARAMETER: X is a number, [0,MAXLEN]
  1389. PARAMETER: Y is a number, [0,255]
  1390. DESCRIPTION: The string consisting of X copies of CHR$(Y);
  1391. X > 0.
  1392. ------------------------------------------------------------
  1393. SYNTAX: N = RESET
  1394. DESCRIPTION: Close all open files.
  1395. ------------------------------------------------------------
  1396. SYNTAX: S$ = RIGHT( A$, X )
  1397. PARAMETER: A$ is a string, LEN >= 0
  1398. PARAMETER: X is a number, [0,MAXLEN]
  1399. DESCRIPTION: The right-most X characters of A$.
  1400. ------------------------------------------------------------
  1401. SYNTAX: S$ = RIGHT$( A$, X )
  1402. PARAMETER: A$ is a string, LEN >= 0
  1403. PARAMETER: X is a number, [0,MAXLEN]
  1404. DESCRIPTION: The right-most X characters of A$.
  1405. ------------------------------------------------------------
  1406. SYNTAX: N = RMDIR( A$ )
  1407. PARAMETER: A$ is a string, LEN >= 1
  1408. DESCRIPTION: Removes the directory named in A$.
  1409. ------------------------------------------------------------
  1410. SYNTAX: N = RND
  1411. DESCRIPTION: The next pseudo-random number in an
  1412. implementation-defined sequence of
  1413. pseudo-random numbers uniformly distributed
  1414. in the range 0 <= RND < 1.
  1415. ------------------------------------------------------------
  1416. SYNTAX: N = RND( X )
  1417. PARAMETER: X is a number
  1418. DESCRIPTION: Returns a pseudorandom number in the range
  1419. [0,1]. The value of X is ignored.
  1420. ------------------------------------------------------------
  1421. SYNTAX: S$ = RTRIM$( A$ )
  1422. PARAMETER: A$ is a string, LEN >= 0
  1423. DESCRIPTION: The string of characters resulting from the
  1424. value associated with A$ by deleting all
  1425. trailing space characters.
  1426. ------------------------------------------------------------
  1427. SYNTAX: N = SEEK( X )
  1428. PARAMETER: X is a number, [MININT,MAXINT]
  1429. DESCRIPTION: The location of file X; the next record that
  1430. GET or PUT statements will use.
  1431. ------------------------------------------------------------
  1432. SYNTAX: N = SEEK( X, Y )
  1433. PARAMETER: X is a number, [MININT,MAXINT]
  1434. PARAMETER: Y is a number, [MININT,MAXINT]
  1435. DESCRIPTION: For file X, move to record number Y; the first
  1436. record number is 1.
  1437. ------------------------------------------------------------
  1438. SYNTAX: N = SGN( X )
  1439. PARAMETER: X is a number
  1440. DESCRIPTION: The sign of X: -1 if X < 0, 0 if X = 0, and +1
  1441. if X > 0.
  1442. ------------------------------------------------------------
  1443. SYNTAX: N = SHELL( A$ )
  1444. PARAMETER: A$ is a string, LEN >= 1
  1445. DESCRIPTION: The exit code resulting from the execution of
  1446. an operating system command.
  1447. ------------------------------------------------------------
  1448. SYNTAX: N = SIN( X )
  1449. PARAMETER: X is a number
  1450. DESCRIPTION: The sine of X, where X is in radians.
  1451. ------------------------------------------------------------
  1452. SYNTAX: N = SLEEP( X )
  1453. PARAMETER: X is a number
  1454. DESCRIPTION: The program pauses for X times the value of
  1455. OPTION SLEEP seconds. If the result is zero,
  1456. negative, or more than INT_MAX then SLEEP
  1457. does nothing. The resolution is
  1458. implementation defined.
  1459. ------------------------------------------------------------
  1460. SYNTAX: S$ = SPACE( X )
  1461. PARAMETER: X is a number, [0,MAXLEN]
  1462. DESCRIPTION: The string of X blank spaces.
  1463. ------------------------------------------------------------
  1464. SYNTAX: S$ = SPACE$( X )
  1465. PARAMETER: X is a number, [0,MAXLEN]
  1466. DESCRIPTION: The string of X blank spaces.
  1467. ------------------------------------------------------------
  1468. SYNTAX: S$ = SPC( X )
  1469. PARAMETER: X is a number
  1470. DESCRIPTION: The string of X spaces. Only for use within
  1471. the PRINT command.
  1472. ------------------------------------------------------------
  1473. SYNTAX: N = SQR( X )
  1474. PARAMETER: X is a number, >= 0
  1475. DESCRIPTION: The non-negative square root of X; X shall be
  1476. non-negative.
  1477. ------------------------------------------------------------
  1478. SYNTAX: S$ = STR$( X )
  1479. PARAMETER: X is a number
  1480. DESCRIPTION: The string generated by the print-statement as
  1481. the numeric-representation of the value
  1482. associated with X.
  1483. ------------------------------------------------------------
  1484. SYNTAX: S$ = STRING$( X, A$ )
  1485. PARAMETER: X is a number, [0,MAXLEN]
  1486. PARAMETER: A$ is a string, LEN >= 1
  1487. DESCRIPTION: The string X bytes long consisting of the
  1488. first character of A$.
  1489. ------------------------------------------------------------
  1490. SYNTAX: S$ = STRING$( X, Y )
  1491. PARAMETER: X is a number, [0,MAXLEN]
  1492. PARAMETER: Y is a number, [0,255]
  1493. DESCRIPTION: The string X bytes long consisting of CHR$(Y).
  1494. ------------------------------------------------------------
  1495. SYNTAX: S$ = TAB( X )
  1496. PARAMETER: X is a number
  1497. DESCRIPTION: The string required to advance to column X.
  1498. Only for use within the PRINT command.
  1499. ------------------------------------------------------------
  1500. SYNTAX: N = TAN( X )
  1501. PARAMETER: X is a number
  1502. DESCRIPTION: The tangent of X, where X is in radians.
  1503. ------------------------------------------------------------
  1504. SYNTAX: N = TIME
  1505. DESCRIPTION: The time elapsed since the previous midnight,
  1506. expressed in seconds; e.g., the value of TIME
  1507. at 11:15 AM is 40500. If there is no clock
  1508. available, then the value of TIME shall be
  1509. -1. The value of TIME at midnight shall be
  1510. zero (not 86400).
  1511. ------------------------------------------------------------
  1512. SYNTAX: N = TIME( X )
  1513. PARAMETER: X is a number
  1514. DESCRIPTION: The time elapsed since the previous midnight,
  1515. expressed in seconds; e.g., the value of TIME
  1516. at 11:15 AM is 40500. If there is no clock
  1517. available, then the value of TIME shall be
  1518. -1. The value of TIME at midnight shall be
  1519. zero (not 86400). The value of the parameter
  1520. X is ignored.
  1521. ------------------------------------------------------------
  1522. SYNTAX: S$ = TIME$
  1523. DESCRIPTION: The time of day in 24-hour notation according
  1524. to ISO 3307. For example, the value of TIME$
  1525. at 11:15 AM is "11:15:00". If there is no
  1526. clock available, then the value of TIME$
  1527. shall be "99:99:99". The value of TIME$ at
  1528. midnight is "00:00:00".
  1529. ------------------------------------------------------------
  1530. SYNTAX: S$ = TIME$( X )
  1531. PARAMETER: X is a number
  1532. DESCRIPTION: The time of day in 24-hour notation according
  1533. to ISO 3307. For example, the value of TIME$
  1534. at 11:15 AM is "11:15:00". If there is no
  1535. clock available, then the value of TIME$
  1536. shall be "99:99:99". The value of TIME$ at
  1537. midnight is "00:00:00". The value of X is
  1538. ignored.
  1539. ------------------------------------------------------------
  1540. SYNTAX: N = TIMER
  1541. DESCRIPTION: The time in the system clock in seconds
  1542. elapsed since midnight.
  1543. ------------------------------------------------------------
  1544. SYNTAX: S$ = TRIM$( A$ )
  1545. PARAMETER: A$ is a string, LEN >= 0
  1546. DESCRIPTION: The string resulting from removing both
  1547. leading and trailing spaces from A$.
  1548. ------------------------------------------------------------
  1549. SYNTAX: N = TROFF
  1550. DESCRIPTION: Turn tracing OFF
  1551. ------------------------------------------------------------
  1552. SYNTAX: N = TRON
  1553. DESCRIPTION: Turn tracing ON
  1554. ------------------------------------------------------------
  1555. SYNTAX: S$ = UCASE$( A$ )
  1556. PARAMETER: A$ is a string, LEN >= 0
  1557. DESCRIPTION: The string of characters resulting from the
  1558. value associated with A$ by replacing each
  1559. lower-case-letter in the string by its
  1560. upper-case version.
  1561. ------------------------------------------------------------
  1562. SYNTAX: N = UNSAVE( A$ )
  1563. PARAMETER: A$ is a string, LEN >= 1
  1564. DESCRIPTION: Removes the file named in A$.
  1565. ------------------------------------------------------------
  1566. SYNTAX: N = VAL( A$ )
  1567. PARAMETER: A$ is a string, LEN >= 1
  1568. DESCRIPTION: The value of the numeric-constant associated
  1569. with A$, if the string associated with A$ is
  1570. a numeric-constant. Leading and trailing
  1571. spaces in the string are ignored. If the
  1572. evaluation of the numeric-constant would
  1573. result in a value which causes an underflow,
  1574. then the value returned shall be zero. For
  1575. example, VAL( " 123.5 " ) = 123.5, VAL(
  1576. "2.E-99" ) could be zero, and VAL( "MCMXVII"
  1577. ) causes an exception.
  1578. ------------------------------------------------------------
  1579. SYNTAX: N = WAIT( X )
  1580. PARAMETER: X is a number
  1581. DESCRIPTION: The program pauses for X times the value of
  1582. OPTION SLEEP seconds. If the result is zero,
  1583. negative, or more than INT_MAX then WAIT does
  1584. nothing. The resolution is implementation
  1585. defined.
  1586. ------------------------------------------------------------
  1587. SYNTAX: N = WAIT( X, Y )
  1588. PARAMETER: X is a number, [MININT,MAXINT]
  1589. PARAMETER: Y is a number, [0,255]
  1590. DESCRIPTION: Waits for the value of (INP(X) AND Y) to
  1591. become nonzero. Causes ERROR 73.
  1592. ------------------------------------------------------------
  1593. SYNTAX: N = WAIT( X, Y, Z )
  1594. PARAMETER: X is a number, [MININT,MAXINT]
  1595. PARAMETER: Y is a number, [0,255]
  1596. PARAMETER: Z is a number, [0,255]
  1597. DESCRIPTION: Waits for the value of ((INP(X) XOR Z) AND Y)
  1598. to become nonzero. Causes ERROR 73.
  1599. ------------------------------------------------------------
  1600. SYNTAX: N = WIDTH( X )
  1601. PARAMETER: X is a number, [0,255]
  1602. DESCRIPTION: For console, sets the line width to X. Zero
  1603. means no wrapping will occur.
  1604. ------------------------------------------------------------
  1605. SYNTAX: N = WIDTH( X, Y )
  1606. PARAMETER: X is a number, [MININT,MAXINT]
  1607. PARAMETER: Y is a number, [0,255]
  1608. DESCRIPTION: If X = 0, sets the console width to Y.
  1609. If X < 0, sets the printer width to Y.
  1610. If X is an open file number, sets the file
  1611. line width to Y.
  1612. Otherwise sets the console rows to X and the
  1613. line width to Y.
  1614. A value of zero for Y means no wrapping will
  1615. occur.
  1616. ------------------------------------------------------------
  1617. ============================================================
  1618. OPERATORS
  1619. ============================================================
  1620. ------------------------------------------------------------
  1621. SYNTAX: X ** Y
  1622. DESCRIPTION: Exponential
  1623. PRECEDENCE: 14
  1624. ------------------------------------------------------------
  1625. SYNTAX: X ^ Y
  1626. DESCRIPTION: Exponential
  1627. PRECEDENCE: 14
  1628. ------------------------------------------------------------
  1629. SYNTAX: # X
  1630. DESCRIPTION: Posation
  1631. PRECEDENCE: 13
  1632. ------------------------------------------------------------
  1633. SYNTAX: + X
  1634. DESCRIPTION: Posation
  1635. PRECEDENCE: 13
  1636. ------------------------------------------------------------
  1637. SYNTAX: - X
  1638. DESCRIPTION: Negation
  1639. PRECEDENCE: 13
  1640. ------------------------------------------------------------
  1641. SYNTAX: X * Y
  1642. DESCRIPTION: Multiplication
  1643. PRECEDENCE: 12
  1644. ------------------------------------------------------------
  1645. SYNTAX: X / Y
  1646. DESCRIPTION: Division
  1647. PRECEDENCE: 12
  1648. ------------------------------------------------------------
  1649. SYNTAX: X \ Y
  1650. DESCRIPTION: Integer Division
  1651. PRECEDENCE: 11
  1652. ------------------------------------------------------------
  1653. SYNTAX: X MOD Y
  1654. DESCRIPTION: Integer Modulus
  1655. PRECEDENCE: 10
  1656. ------------------------------------------------------------
  1657. SYNTAX: X + Y
  1658. DESCRIPTION: Addition
  1659. PRECEDENCE: 9
  1660. ------------------------------------------------------------
  1661. SYNTAX: X - Y
  1662. DESCRIPTION: Subtraction
  1663. PRECEDENCE: 9
  1664. ------------------------------------------------------------
  1665. SYNTAX: X < Y
  1666. DESCRIPTION: Less than
  1667. PRECEDENCE: 7
  1668. ------------------------------------------------------------
  1669. SYNTAX: X <= Y
  1670. DESCRIPTION: Less than or Equal
  1671. PRECEDENCE: 7
  1672. ------------------------------------------------------------
  1673. SYNTAX: X <> Y
  1674. DESCRIPTION: Not Equal
  1675. PRECEDENCE: 7
  1676. ------------------------------------------------------------
  1677. SYNTAX: X = Y
  1678. DESCRIPTION: Equal
  1679. PRECEDENCE: 7
  1680. ------------------------------------------------------------
  1681. SYNTAX: X =< Y
  1682. DESCRIPTION: Less than or Equal
  1683. PRECEDENCE: 7
  1684. ------------------------------------------------------------
  1685. SYNTAX: X => Y
  1686. DESCRIPTION: Greater than or Equal
  1687. PRECEDENCE: 7
  1688. ------------------------------------------------------------
  1689. SYNTAX: X > Y
  1690. DESCRIPTION: Greater than
  1691. PRECEDENCE: 7
  1692. ------------------------------------------------------------
  1693. SYNTAX: X >< Y
  1694. DESCRIPTION: Not Equal
  1695. PRECEDENCE: 7
  1696. ------------------------------------------------------------
  1697. SYNTAX: X >= Y
  1698. DESCRIPTION: Greater than or Equal
  1699. PRECEDENCE: 7
  1700. ------------------------------------------------------------
  1701. SYNTAX: NOT X
  1702. DESCRIPTION: Bitwise NOT
  1703. PRECEDENCE: 6
  1704. ------------------------------------------------------------
  1705. SYNTAX: X AND Y
  1706. DESCRIPTION: Bitwise AND
  1707. PRECEDENCE: 5
  1708. ------------------------------------------------------------
  1709. SYNTAX: X OR Y
  1710. DESCRIPTION: Bitwise OR
  1711. PRECEDENCE: 4
  1712. ------------------------------------------------------------
  1713. SYNTAX: X XOR Y
  1714. DESCRIPTION: Bitwise Exclusive OR
  1715. PRECEDENCE: 3
  1716. ------------------------------------------------------------
  1717. SYNTAX: X EQV Y
  1718. DESCRIPTION: Bitwise EQV
  1719. PRECEDENCE: 2
  1720. ------------------------------------------------------------
  1721. SYNTAX: X IMP Y
  1722. DESCRIPTION: Bitwise IMP
  1723. PRECEDENCE: 1
  1724. ------------------------------------------------------------