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.
 
 
 
 
 
 

2005 lines
86 KiB

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