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.
 
 
 
 
 
 

1246 lines
53 KiB

  1. ============================================================
  2. GENERAL
  3. ============================================================
  4. OPTION VERSION "XBASIC"
  5. REM INTERNAL ID: T79
  6. REM DESCRIPTION: TSC XBASIC for 6800 FLEX
  7. REM REFERENCE: Extended BASIC User's Manual
  8. REM by Technical Systems Consultants
  9. REM (c) 1979, Technical Systems Consultants
  10. REM http://www.swtpc.com/mholley/Setton/
  11. REM xbasic.pdf
  12. REM
  13. OPTION STRICT OFF
  14. OPTION ANGLE RADIANS
  15. OPTION BUGS ON
  16. OPTION LABELS OFF
  17. OPTION COMPARE BINARY
  18. OPTION COVERAGE OFF
  19. OPTION TRACE OFF
  20. OPTION ERROR GOTO
  21. OPTION IMPLICIT
  22. OPTION BASE 0
  23. OPTION RECLEN 0
  24. OPTION DATE "%d-%b-%y"
  25. OPTION TIME "%H:%M:%S"
  26. OPTION PUNCT STRING "$"
  27. OPTION PUNCT DOUBLE "#"
  28. OPTION PUNCT SINGLE "!"
  29. OPTION PUNCT CURRENCY " "
  30. OPTION PUNCT LONG "&"
  31. OPTION PUNCT INTEGER "%"
  32. OPTION PUNCT BYTE " "
  33. OPTION PUNCT QUOTE """
  34. OPTION PUNCT COMMENT " "
  35. OPTION PUNCT STATEMENT ":"
  36. OPTION PUNCT PRINT "?"
  37. OPTION PUNCT INPUT " "
  38. OPTION PUNCT IMAGE " "
  39. OPTION PUNCT LPAREN "("
  40. OPTION PUNCT RPAREN ")"
  41. OPTION PUNCT FILENUM "#"
  42. OPTION PUNCT AT " "
  43. OPTION USING DIGIT "#"
  44. OPTION USING COMMA ","
  45. OPTION USING PERIOD "."
  46. OPTION USING PLUS "+"
  47. OPTION USING MINUS "-"
  48. OPTION USING EXRAD "^"
  49. OPTION USING DOLLAR "$"
  50. OPTION USING FILLER "*"
  51. OPTION USING LITERAL "_"
  52. OPTION USING FIRST "!"
  53. OPTION USING ALL "&"
  54. OPTION USING LENGTH "\"
  55. ============================================================
  56. COMMANDS
  57. ============================================================
  58. ------------------------------------------------------------
  59. SYNTAX: APPEND filename$
  60. DESCRIPTION: Merges the BASIC program in filename$ into the
  61. current BASIC program; lines in filename$
  62. replace any matching lines in the current
  63. program.
  64. ------------------------------------------------------------
  65. SYNTAX: AS
  66. DESCRIPTION: Syntax Error.
  67. ------------------------------------------------------------
  68. SYNTAX: CHAIN filename$ [, linenumber]
  69. DESCRIPTION: Load and execute another BASIC program,
  70. without clearing common variables. For
  71. System/370, the syntax is CHAIN
  72. filename$,parameter$.
  73. ------------------------------------------------------------
  74. SYNTAX: CLEAR
  75. DESCRIPTION: Sets all numeric variables to 0, and all
  76. string variables to empty strings.
  77. ------------------------------------------------------------
  78. SYNTAX: CONT
  79. DESCRIPTION: Continue a BASIC program after a STOP has been
  80. executed. Program resumes at the line after
  81. the STOP.
  82. ------------------------------------------------------------
  83. SYNTAX: DATA constant [, ...]
  84. DESCRIPTION: Stores numeric and string constants to be
  85. accessed by READ.
  86. ------------------------------------------------------------
  87. SYNTAX: DEF FNname[( arg [,...] )] = value
  88. DESCRIPTION: Defines a single-line function. Single-line
  89. functions require an equal sign.
  90. ------------------------------------------------------------
  91. SYNTAX: DIM [# filenum,] variable([ lower TO ] upper)
  92. DESCRIPTION: Declares variables and specifies the
  93. dimensions of array variables. For array
  94. variables, if the lower bound is not
  95. provided, then the OPTION BASE value is used.
  96. If filenum is provided, then the variable is
  97. virtual.
  98. ------------------------------------------------------------
  99. SYNTAX: EDIT
  100. DESCRIPTION: implementation defined.
  101. ------------------------------------------------------------
  102. SYNTAX: ELSE
  103. DESCRIPTION: Introduces a default condition in a multi-line
  104. IF statement.
  105. ------------------------------------------------------------
  106. SYNTAX: ELSEIF
  107. DESCRIPTION: Introduces a secondary condition in a
  108. multi-line IF statement.
  109. ------------------------------------------------------------
  110. SYNTAX: END
  111. DESCRIPTION: Terminates program execution. If the BASIC
  112. program was executed from the operating
  113. system level, then control returns to the
  114. operating system, oterwise control reuturns
  115. to the BASIC prompt.
  116. ------------------------------------------------------------
  117. SYNTAX: END IF
  118. DESCRIPTION: Specifies the last line of a multi-line IF
  119. definition.
  120. ------------------------------------------------------------
  121. SYNTAX: FIELD [#] filenum, number AS variable$ [, ...]
  122. DESCRIPTION: Assigns number bytes in the buffer of random
  123. file filenum to the variable variable$. GET
  124. will automatically update the variable, and
  125. PUT will automatically use the variable.
  126. ------------------------------------------------------------
  127. SYNTAX: FLEX
  128. DESCRIPTION: Exits to the operating system.
  129. ------------------------------------------------------------
  130. SYNTAX: FOR variable = start TO finish [STEP
  131. increment]
  132. DESCRIPTION: Top of a FOR - NEXT structure. The loop will
  133. continue a fixed number of times, which is
  134. determined by the values of start, finish,
  135. and increment.
  136. ------------------------------------------------------------
  137. SYNTAX: GET # file_number [ , RECORD record_number ]
  138. DESCRIPTION: Gets one (or more) values from a file.
  139. ------------------------------------------------------------
  140. SYNTAX: GET # file_number [ , RECORD record_number ]
  141. DESCRIPTION: Gets one (or more) values from a file.
  142. ------------------------------------------------------------
  143. SYNTAX: GO
  144. DESCRIPTION: Syntax Error.
  145. ------------------------------------------------------------
  146. SYNTAX: GO SUB line
  147. DESCRIPTION: Initiates a subroutine call to the line
  148. specified. The subroutine must end with
  149. RETURN. The line may be a number or a label.
  150. ------------------------------------------------------------
  151. SYNTAX: GO TO line
  152. DESCRIPTION: Branches program execution to the specified
  153. line. The line may be a number or a label.
  154. ------------------------------------------------------------
  155. SYNTAX: GOSUB line
  156. DESCRIPTION: Initiates a subroutine call to the line
  157. specified. The subroutine must end with
  158. RETURN. The line may be a number or a label.
  159. ------------------------------------------------------------
  160. SYNTAX: GOTO line
  161. DESCRIPTION: Branches program execution to the specified
  162. line. The line may be a number or a label.
  163. ------------------------------------------------------------
  164. SYNTAX: IF value THEN line1 [ELSE line2]
  165. DESCRIPTION: Single line standard IF command. If the value
  166. is non-zero, then branh to line1. If the
  167. value is zero and ELSE is provided, then
  168. branch to line2. Otherwise continue to the
  169. next line. LABELS are not allowed.
  170. ------------------------------------------------------------
  171. SYNTAX: IF value THEN
  172. DESCRIPTION: Top of a multi-line IF - END IF structure. If
  173. the value is non-zero, then the program lines
  174. upto the next ELSE or ELSE IF command are
  175. executed, otherwise the program branches to
  176. the next ELSE or ELSE IF command.
  177. ------------------------------------------------------------
  178. SYNTAX: INPUT "prompt string" , variable [, ...]
  179. DESCRIPTION: Reads input from the terminal after displaying
  180. a prompt.
  181. ------------------------------------------------------------
  182. SYNTAX: INPUT # filenum , variable [, ...]s
  183. DESCRIPTION: Reads input from the file specified by
  184. filenum.
  185. ------------------------------------------------------------
  186. SYNTAX: INPUT variable [, ...]
  187. DESCRIPTION: Reads input from the terminal.
  188. ------------------------------------------------------------
  189. SYNTAX: INPUT LINE variable$
  190. DESCRIPTION: Reads entire line from the terminal into
  191. variable$.
  192. ------------------------------------------------------------
  193. SYNTAX: INPUT LINE # filenum , variable$
  194. DESCRIPTION: Reads entire line from a file into variable$.
  195. ------------------------------------------------------------
  196. SYNTAX: INPUT LINE "prompt string" , variable$
  197. DESCRIPTION: Reads entire line from the terminal into
  198. variable$ after displaying a prompt
  199. ------------------------------------------------------------
  200. SYNTAX: [LET] variable [, ...] = value
  201. DESCRIPTION: Assigns the value to the variable. The LET
  202. keyword is optional.
  203. ------------------------------------------------------------
  204. SYNTAX: LINE
  205. DESCRIPTION: Syntax Error.
  206. ------------------------------------------------------------
  207. SYNTAX: LINE INPUT [[#] filenum,]["prompt string";]
  208. variable$
  209. DESCRIPTION: Reads entire line from the keyboard or a file
  210. into variable$.
  211. ------------------------------------------------------------
  212. SYNTAX: LIST line1 [- line2]
  213. DESCRIPTION: Lists BASIC program lines from line1 to line2
  214. to the console on stdout.
  215. ------------------------------------------------------------
  216. SYNTAX: LOAD [filename$]
  217. DESCRIPTION: Loads an ASCII BASIC program into memory.
  218. ------------------------------------------------------------
  219. SYNTAX: LSET variable$ = value
  220. DESCRIPTION: Left-aligns the value into variable$. If the
  221. length of the value is too short, then it is
  222. padded on the right with spaces. If the
  223. length of the value is too long, then it is
  224. truncated on the right. This is only for use
  225. with variables assigned to a random access
  226. buffer with FIELD command.
  227. ------------------------------------------------------------
  228. SYNTAX: MAINTAINER
  229. DESCRIPTION: This command is reserved for use by the
  230. Bywater BASIC maintainer. It is not for the
  231. BASIC programmer.
  232. ------------------------------------------------------------
  233. SYNTAX: MAINTAINER CMDS
  234. DESCRIPTION: Syntax Error.
  235. ------------------------------------------------------------
  236. SYNTAX: MAINTAINER CMDS HTML
  237. DESCRIPTION: Dump COMMAND vs VERSION as HTML table
  238. ------------------------------------------------------------
  239. SYNTAX: MAINTAINER CMDS ID
  240. DESCRIPTION: Dump COMMAND #define.
  241. ------------------------------------------------------------
  242. SYNTAX: MAINTAINER CMDS MANUAL
  243. DESCRIPTION: Dump COMMAND manual.
  244. ------------------------------------------------------------
  245. SYNTAX: MAINTAINER CMDS_SWITCH
  246. DESCRIPTION: Dump COMMAND switch.
  247. ------------------------------------------------------------
  248. SYNTAX: MAINTAINER CMDS TABLE
  249. DESCRIPTION: Dump COMMAND table.
  250. ------------------------------------------------------------
  251. SYNTAX: MAINTAINER DEBUG
  252. DESCRIPTION: Syntax Error.
  253. ------------------------------------------------------------
  254. SYNTAX: MAINTAINER DEBUG OFF
  255. DESCRIPTION: Disable degug tracing.
  256. ------------------------------------------------------------
  257. SYNTAX: MAINTAINER DEBUG ON
  258. DESCRIPTION: Enable degug tracing.
  259. ------------------------------------------------------------
  260. SYNTAX: MAINTAINER FNCS
  261. DESCRIPTION: Syntax Error.
  262. ------------------------------------------------------------
  263. SYNTAX: MAINTAINER FNCS HTML
  264. DESCRIPTION: Dump FUNCTION vs VERSION as HTML table.
  265. ------------------------------------------------------------
  266. SYNTAX: MAINTAINER FNCS ID
  267. DESCRIPTION: Dump FUNCTION #define.
  268. ------------------------------------------------------------
  269. SYNTAX: MAINTAINER FNCS MANUAL
  270. DESCRIPTION: Dump FUNCTION manual.
  271. ------------------------------------------------------------
  272. SYNTAX: MAINTAINER FNCS SWITCH
  273. DESCRIPTION: Dump FUNCTION switch.
  274. ------------------------------------------------------------
  275. SYNTAX: MAINTAINER FNCS TABLE
  276. DESCRIPTION: Dump FUNCTION table.
  277. ------------------------------------------------------------
  278. SYNTAX: MAINTAINER MANUAL
  279. DESCRIPTION: Dump manual for the currently selected OPTION
  280. VERSION.
  281. ------------------------------------------------------------
  282. SYNTAX: MAINTAINER STACK
  283. DESCRIPTION: Dump the BASIC stack.
  284. ------------------------------------------------------------
  285. SYNTAX: NEW
  286. DESCRIPTION: Deletes the program in memory and clears all
  287. variables.
  288. ------------------------------------------------------------
  289. SYNTAX: NEXT [variable]
  290. DESCRIPTION: The bottom line of a FOR - NEXT structure.
  291. ------------------------------------------------------------
  292. SYNTAX: OF
  293. DESCRIPTION: Syntax Error.
  294. ------------------------------------------------------------
  295. SYNTAX: ON value GOSUB line [, ...]
  296. DESCRIPTION: Calls based on the rounded value.
  297. ------------------------------------------------------------
  298. SYNTAX: ON value GOTO line [, ...]
  299. DESCRIPTION: Branches based on the rounded value.
  300. ------------------------------------------------------------
  301. SYNTAX: ON ERROR
  302. DESCRIPTION: Syntax Error.
  303. ------------------------------------------------------------
  304. SYNTAX: ON ERROR GOTO errline
  305. DESCRIPTION: When a trappable error occurs, execute GOTO
  306. errline. The error handler must terminate
  307. with a RESUME command. If the line number is
  308. 0 (zerp), then use the default error handler.
  309. Valid when OPTION ERROR GOTO.
  310. ------------------------------------------------------------
  311. SYNTAX: ON ERROR RESUME
  312. DESCRIPTION: Syntax Error.
  313. ------------------------------------------------------------
  314. SYNTAX: ON ERROR RESUME NEXT
  315. DESCRIPTION: When a trappable error occurs, execution
  316. continues with the next line. Valid when
  317. OPTION ERROR GOTO.
  318. ------------------------------------------------------------
  319. SYNTAX: OPEN NEW|OLD|VIRTUAL filename$
  320. AS filenumber
  321. DESCRIPTION: Opens a file for use.
  322. ------------------------------------------------------------
  323. SYNTAX: OPTION
  324. DESCRIPTION: Syntax Error.
  325. ------------------------------------------------------------
  326. SYNTAX: OPTION ANGLE
  327. DESCRIPTION: Syntax Error.
  328. ------------------------------------------------------------
  329. SYNTAX: OPTION ANGLE DEGREES
  330. DESCRIPTION: Configures these math functions to accept and
  331. return angles in degrees: ACOS, ACS, ANGLE,
  332. ARCSIN, ASIN, ASN, ARCTAN, ATN, ATAN, COS,
  333. COT, CSC, SEC, SIN and TAN.
  334. ------------------------------------------------------------
  335. SYNTAX: OPTION ANGLE GRADIANS
  336. DESCRIPTION: Configures these math functions to accept and
  337. return angles in gradians: ACOS, ANGLE,
  338. ASIN, ASN, ATN, ATAN, COS, COT, CSC, SEC, SIN
  339. and TAN.
  340. ------------------------------------------------------------
  341. SYNTAX: OPTION ANGLE RADIANS
  342. DESCRIPTION: Configures these math functions to accept and
  343. return angles in radians: ACOS, ANGLE, ASIN,
  344. ASN, ATN, ATAN, COS, COT, CSC, SEC, SIN and
  345. TAN.
  346. ------------------------------------------------------------
  347. SYNTAX: OPTION ARITHMETIC
  348. DESCRIPTION: Syntax Error.
  349. ------------------------------------------------------------
  350. SYNTAX: OPTION ARITHMETIC DECIMAL
  351. DESCRIPTION: Currently has no effect.
  352. ------------------------------------------------------------
  353. SYNTAX: OPTION ARITHMETIC FIXED
  354. DESCRIPTION: Currently has no effect.
  355. ------------------------------------------------------------
  356. SYNTAX: OPTION ARITHMETIC NATIVE
  357. DESCRIPTION: Currently has no effect.
  358. ------------------------------------------------------------
  359. SYNTAX: OPTION BASE integer
  360. DESCRIPTION: Sets the default lowest array subscript.
  361. ------------------------------------------------------------
  362. SYNTAX: OPTION BUGS
  363. DESCRIPTION: Syntax Error.
  364. ------------------------------------------------------------
  365. SYNTAX: OPTION BUGS BOOLEAN
  366. DESCRIPTION: Boolean results are 1 or 0 instead of bitwise.
  367. ------------------------------------------------------------
  368. SYNTAX: OPTION BUGS OFF
  369. DESCRIPTION: Disables bugs commonly found in many BASIC
  370. dialects.
  371. ------------------------------------------------------------
  372. SYNTAX: OPTION BUGS ON
  373. DESCRIPTION: Enables bugs commonly found in many BASIC
  374. dialects.
  375. ------------------------------------------------------------
  376. SYNTAX: OPTION COMPARE
  377. DESCRIPTION: Syntax Error.
  378. ------------------------------------------------------------
  379. SYNTAX: OPTION COMPARE BINARY
  380. DESCRIPTION: Causes string comparisons to be
  381. case-sensitive.
  382. ------------------------------------------------------------
  383. SYNTAX: OPTION COMPARE DATABASE
  384. DESCRIPTION: Causes string comparisons to be
  385. case-insensitive.
  386. ------------------------------------------------------------
  387. SYNTAX: OPTION COMPARE TEXT
  388. DESCRIPTION: Causes string comparisons to be
  389. case-insensitive.
  390. ------------------------------------------------------------
  391. SYNTAX: OPTION COVERAGE
  392. DESCRIPTION: Syntax Error.
  393. ------------------------------------------------------------
  394. SYNTAX: OPTION COVERAGE OFF
  395. DESCRIPTION: Disables BASIC code coverage recording,
  396. displayed using the LIST command.
  397. ------------------------------------------------------------
  398. SYNTAX: OPTION COVERAGE ON
  399. DESCRIPTION: Enables BASIC code coverage recording,
  400. displayed using the LIST command.
  401. ------------------------------------------------------------
  402. SYNTAX: OPTION DATE format$
  403. DESCRIPTION: Sets the date format string used by C
  404. strftime() for DATE$.
  405. ------------------------------------------------------------
  406. SYNTAX: OPTION DIGITS integer
  407. DESCRIPTION: Sets the number of significant digits for
  408. PRINT. Setting the value to zero restores
  409. the default.
  410. ------------------------------------------------------------
  411. SYNTAX: OPTION DISABLE
  412. DESCRIPTION: Syntax Error.
  413. ------------------------------------------------------------
  414. SYNTAX: OPTION DISABLE COMMAND name$
  415. DESCRIPTION: Disables the specified BASIC command.
  416. ------------------------------------------------------------
  417. SYNTAX: OPTION DISABLE FUNCTION name$
  418. DESCRIPTION: Disables the specified BASIC function.
  419. ------------------------------------------------------------
  420. SYNTAX: OPTION DISABLE OPERATOR name$
  421. DESCRIPTION: Disables the specified BASIC operator.
  422. ------------------------------------------------------------
  423. SYNTAX: OPTION EDIT string$
  424. DESCRIPTION: Sets the program name used by the EDIT
  425. command.
  426. ------------------------------------------------------------
  427. SYNTAX: OPTION ENABLE
  428. DESCRIPTION: Syntax Error.
  429. ------------------------------------------------------------
  430. SYNTAX: OPTION ENABLE COMMAND name$
  431. DESCRIPTION: Enables the specified BASIC command.
  432. ------------------------------------------------------------
  433. SYNTAX: OPTION ENABLE FUNCTION name$
  434. DESCRIPTION: Enables the specified BASIC function.
  435. ------------------------------------------------------------
  436. SYNTAX: OPTION ENABLE OPERATOR name$
  437. DESCRIPTION: Enables the specified BASIC operator.
  438. ------------------------------------------------------------
  439. SYNTAX: OPTION ERROR
  440. DESCRIPTION: Syntax Error.
  441. ------------------------------------------------------------
  442. SYNTAX: OPTION ERROR GOSUB
  443. DESCRIPTION: When an error occurs, GOSUB to the error
  444. handler. The error handler exits with
  445. RETURN.
  446. ------------------------------------------------------------
  447. SYNTAX: OPTION ERROR GOTO
  448. DESCRIPTION: When an error occurs, GOTO to the error
  449. handler. The error handler exits with
  450. RESUME.
  451. ------------------------------------------------------------
  452. SYNTAX: OPTION EXPLICIT
  453. DESCRIPTION: All variables must be declared using DIM.
  454. ------------------------------------------------------------
  455. SYNTAX: OPTION EXTENSION string$
  456. DESCRIPTION: Sets the BASIC filename extension, commonly
  457. ".bas".
  458. ------------------------------------------------------------
  459. SYNTAX: OPTION FILES string$
  460. DESCRIPTION: Sets the program name used by the FILES
  461. command.
  462. ------------------------------------------------------------
  463. SYNTAX: OPTION IMPLICIT
  464. DESCRIPTION: Variables need not be declared using DIM,
  465. provided arrays have no more that 10
  466. elements. This is the opposite of OPTION
  467. EXPLICIT, and is the default for all versions
  468. of BASIC.
  469. ------------------------------------------------------------
  470. SYNTAX: OPTION INDENT integer
  471. DESCRIPTION: Sets indention level for LIST. Zero means no
  472. indention. Default is 2.
  473. ------------------------------------------------------------
  474. SYNTAX: OPTION LABELS
  475. DESCRIPTION: Syntax Error.
  476. ------------------------------------------------------------
  477. SYNTAX: OPTION LABELS OFF
  478. DESCRIPTION: Disables text labels.
  479. ------------------------------------------------------------
  480. SYNTAX: OPTION LABELS ON
  481. DESCRIPTION: Enables text labels.
  482. ------------------------------------------------------------
  483. SYNTAX: OPTION PROMPT string$
  484. DESCRIPTION: Sets the BASIC prompt.
  485. ------------------------------------------------------------
  486. SYNTAX: OPTION PUNCT
  487. DESCRIPTION: Syntax Error.
  488. ------------------------------------------------------------
  489. SYNTAX: OPTION PUNCT AT char$
  490. DESCRIPTION: Sets the PRINT AT character, commonly "@".
  491. ------------------------------------------------------------
  492. SYNTAX: OPTION PUNCT BYTE char$
  493. DESCRIPTION: Sets the suffix character that indicates a
  494. variable is of type BYTE, commonly "~".
  495. ------------------------------------------------------------
  496. SYNTAX: OPTION PUNCT COMMENT char$
  497. DESCRIPTION: Sets the shortcut COMMENT character.
  498. ------------------------------------------------------------
  499. SYNTAX: OPTION PUNCT CURRENCY char$
  500. DESCRIPTION: Sets the suffix character that indicates a
  501. variable is of type CURRENCY, commonly "@".
  502. ------------------------------------------------------------
  503. SYNTAX: OPTION PUNCT DOUBLE char$
  504. DESCRIPTION: Sets the suffix character that indicates a
  505. variable is of type DOUBLE, commonly "#".
  506. ------------------------------------------------------------
  507. SYNTAX: OPTION PUNCT FILENUM char$
  508. DESCRIPTION: Sets the FILE NUMBER prefix character,
  509. commonly "#".
  510. ------------------------------------------------------------
  511. SYNTAX: OPTION PUNCT IMAGE char$
  512. DESCRIPTION: Sets the shortcut IMAGE character, commonly
  513. ":".
  514. ------------------------------------------------------------
  515. SYNTAX: OPTION PUNCT INPUT char$
  516. DESCRIPTION: Sets the shortcut INPUT character, commonly
  517. "!".
  518. ------------------------------------------------------------
  519. SYNTAX: OPTION PUNCT INTEGER char$
  520. DESCRIPTION: Sets the suffix character that indicates a
  521. variable is of type INTEGER, commonly "%".
  522. ------------------------------------------------------------
  523. SYNTAX: OPTION PUNCT LONG char$
  524. DESCRIPTION: Sets the suffix character that indicates a
  525. variable is of type LONG, commonly "&".
  526. ------------------------------------------------------------
  527. SYNTAX: OPTION PUNCT LPAREN char$
  528. DESCRIPTION: Sets the LEFT PARENTHESIS character, commonly
  529. "(".
  530. ------------------------------------------------------------
  531. SYNTAX: OPTION PUNCT_PRINT char$
  532. DESCRIPTION: Sets the shortcut PRINT character, commonly
  533. "?".
  534. ------------------------------------------------------------
  535. SYNTAX: OPTION PUNCT QUOTE char$
  536. DESCRIPTION: Sets the QUOTE character, commonly """
  537. ------------------------------------------------------------
  538. SYNTAX: OPTION PUNCT RPAREN char$
  539. DESCRIPTION: Sets the RIGHT PARENTHESIS character, commonly
  540. ")".
  541. ------------------------------------------------------------
  542. SYNTAX: OPTION PUNCT SINGLE char$
  543. DESCRIPTION: Sets the suffix character that indicates a
  544. variable is of type SINGLE, commonly "!".
  545. ------------------------------------------------------------
  546. SYNTAX: OPTION PUNCT STATEMENT char$
  547. DESCRIPTION: Sets the statement seperator character,
  548. commonly ":".
  549. ------------------------------------------------------------
  550. SYNTAX: OPTION PUNCT STRING char$
  551. DESCRIPTION: Sets the suffix character that indicates a
  552. variable is of type STRING, commonly "$".
  553. ------------------------------------------------------------
  554. SYNTAX: OPTION RECLEN integer
  555. DESCRIPTION: Sets the default RANDOM record length.
  556. ------------------------------------------------------------
  557. SYNTAX: OPTION RENUM string$
  558. DESCRIPTION: Sets the program name used by the RENUM
  559. command.
  560. ------------------------------------------------------------
  561. SYNTAX: OPTION ROUND
  562. DESCRIPTION: Syntax Error.
  563. ------------------------------------------------------------
  564. SYNTAX: OPTION ROUND BANK
  565. DESCRIPTION: Round using the Banker rule.
  566. ------------------------------------------------------------
  567. SYNTAX: OPTION ROUND MATH
  568. DESCRIPTION: Round using mathematical rules.
  569. ------------------------------------------------------------
  570. SYNTAX: OPTION ROUND TRUNCATE
  571. DESCRIPTION: Round using truncation.
  572. ------------------------------------------------------------
  573. SYNTAX: OPTION SCALE integer
  574. DESCRIPTION: Sets the number of digits to round after the
  575. decimal point for PRINT. Setting the value
  576. to zero disables rounding.
  577. ------------------------------------------------------------
  578. SYNTAX: OPTION SLEEP double
  579. DESCRIPTION: Sets multiplier for SLEEP and WAIT. Zero
  580. means no waiting. Default is 1.
  581. ------------------------------------------------------------
  582. SYNTAX: OPTION STDERR filename$
  583. DESCRIPTION: Sets the file used for STDERR, which is used
  584. by LPRINT commands.
  585. ------------------------------------------------------------
  586. SYNTAX: OPTION STDIN filename$
  587. DESCRIPTION: Sets the file used for STDIN, which is used by
  588. INPUT commands.
  589. ------------------------------------------------------------
  590. SYNTAX: OPTION STDOUT filename$
  591. DESCRIPTION: Sets the file used for STDOUT, which is used
  592. by PRINT commands.
  593. ------------------------------------------------------------
  594. SYNTAX: OPTION STRICT
  595. DESCRIPTION: Syntax Error.
  596. ------------------------------------------------------------
  597. SYNTAX: OPTION STRICT OFF
  598. DESCRIPTION: Disables checking for implicit array creation
  599. without using the DIM command.
  600. ------------------------------------------------------------
  601. SYNTAX: OPTION STRICT ON
  602. DESCRIPTION: Enables checking for implicit array creation
  603. without using the DIM command.
  604. ------------------------------------------------------------
  605. SYNTAX: OPTION TERMINAL
  606. DESCRIPTION: Syntax Error.
  607. ------------------------------------------------------------
  608. SYNTAX: OPTION TERMINAL ADM
  609. DESCRIPTION: Enables ADM-3A terminal control codes for CLS,
  610. COLOR, and LOCATE.
  611. ------------------------------------------------------------
  612. SYNTAX: OPTION TERMINAL ANSI
  613. DESCRIPTION: Enables ANSI terminal control codes for CLS,
  614. COLOR, and LOCATE.
  615. ------------------------------------------------------------
  616. SYNTAX: OPTION TERMINAL NONE
  617. DESCRIPTION: Disables terminal control codes for CLS,
  618. COLOR, and LOCATE.
  619. ------------------------------------------------------------
  620. SYNTAX: OPTION TIME format$
  621. DESCRIPTION: Sets the time format string used by C
  622. strftime() for TIME$.
  623. ------------------------------------------------------------
  624. SYNTAX: OPTION TRACE
  625. DESCRIPTION: Syntax Error.
  626. ------------------------------------------------------------
  627. SYNTAX: OPTION TRACE OFF
  628. DESCRIPTION: Disables displaying a stack trace when an
  629. ERROR occurs.
  630. ------------------------------------------------------------
  631. SYNTAX: OPTION TRACE ON
  632. DESCRIPTION: Enables displaying a stack trace when an ERROR
  633. occurs.
  634. ------------------------------------------------------------
  635. SYNTAX: OPTION USING
  636. DESCRIPTION: Syntax Error.
  637. ------------------------------------------------------------
  638. SYNTAX: OPTION USING ALL char$
  639. DESCRIPTION: Specifies the magic ALL character for the
  640. PRINT USING command. A common value is "&".
  641. ------------------------------------------------------------
  642. SYNTAX: OPTION USING COMMA char$
  643. DESCRIPTION: Specifies the magic COMMA character for the
  644. PRINT USING command. A common value is ",".
  645. ------------------------------------------------------------
  646. SYNTAX: OPTION USING DIGIT char$
  647. DESCRIPTION: Specifies the magic DIGIT character for the
  648. PRINT USING command. A common value is "#".
  649. ------------------------------------------------------------
  650. SYNTAX: OPTION USING DOLLAR char$
  651. DESCRIPTION: Specifies the magic DOLLAR character for the
  652. PRINT USING command. A common value is "$".
  653. ------------------------------------------------------------
  654. SYNTAX: OPTION USING EXRAD char$
  655. DESCRIPTION: Specifies the magic EXRAD character for the
  656. PRINT USING command. A common value is "^".
  657. ------------------------------------------------------------
  658. SYNTAX: OPTION USING FILLER char$
  659. DESCRIPTION: Specifies the magic FILLER character for the
  660. PRINT USING command. A common value is "*".
  661. ------------------------------------------------------------
  662. SYNTAX: OPTION USING FIRST char$
  663. DESCRIPTION: Specifies the magic FIRST character for the
  664. PRINT USING command. A common value is "!".
  665. ------------------------------------------------------------
  666. SYNTAX: OPTION USING LENGTH char$
  667. DESCRIPTION: Specifies the magic LENGTH character for the
  668. PRINT USING command. A common value is "\".
  669. ------------------------------------------------------------
  670. SYNTAX: OPTION USING LITERAL char$
  671. DESCRIPTION: Specifies the magic LITERAL character for the
  672. PRINT USING command. A common value is "_".
  673. ------------------------------------------------------------
  674. SYNTAX: OPTION USING MINUS char$
  675. DESCRIPTION: Specifies the magic MINUS character for the
  676. PRINT USING command. A common value is "-".
  677. ------------------------------------------------------------
  678. SYNTAX: OPTION USING PERIOD char$
  679. DESCRIPTION: Specifies the magic PERIOD character for the
  680. PRINT USING command. A common value is ".".
  681. ------------------------------------------------------------
  682. SYNTAX: OPTION USING PLUS char$
  683. DESCRIPTION: Specifies the magic PLUS character for the
  684. PRINT USING command. A common value is "+".
  685. ------------------------------------------------------------
  686. SYNTAX: OPTION VERSION version$
  687. DESCRIPTION: Selects a specific BASIC version, which is a
  688. combination of OPTION settings, commands,
  689. functions and operators. If no version is
  690. specified, displays a list of the available
  691. versions.
  692. ------------------------------------------------------------
  693. SYNTAX: OPTION ZONE integer
  694. DESCRIPTION: Sets the PRINT zone width. Setting the value
  695. to zero restores the default.
  696. ------------------------------------------------------------
  697. SYNTAX: PDEL line [- line]
  698. DESCRIPTION: Deletes program lines indicated by the
  699. argument(s). All program lines have a
  700. number, which is visible with the LIST
  701. command. If line numbers are not provided,
  702. they are assigned beginning with 1. Deleting
  703. a non-existing line does not cause an error.
  704. ------------------------------------------------------------
  705. SYNTAX: PRINT # filenum , [USING format$;] value ...
  706. DESCRIPTION: Sends output to a file.
  707. ------------------------------------------------------------
  708. SYNTAX: PRINT [USING format$;] value ...
  709. DESCRIPTION: Sends output to the screen.
  710. ------------------------------------------------------------
  711. SYNTAX: PUT # file_number [ , RECORD record_number ]
  712. DESCRIPTION: Puts one (or more) values into a file.
  713. ------------------------------------------------------------
  714. SYNTAX: READ variable [, ...]
  715. DESCRIPTION: Reads values from DATA statements.
  716. ------------------------------------------------------------
  717. SYNTAX: REM ...
  718. DESCRIPTION: Remark.
  719. ------------------------------------------------------------
  720. SYNTAX: RENUM
  721. DESCRIPTION: Implementation defined.
  722. ------------------------------------------------------------
  723. SYNTAX: RESTORE [line]
  724. DESCRIPTION: Resets the line used for the next READ
  725. statement. line may be either a number or a
  726. label.
  727. ------------------------------------------------------------
  728. SYNTAX: RESUME
  729. DESCRIPTION: Used in an error handler to specify the next
  730. line to execute. Branch to ERL.
  731. ------------------------------------------------------------
  732. SYNTAX: RESUME line
  733. DESCRIPTION: Used in an error handler to specify the next
  734. line to execute. Branch to the specified
  735. line.
  736. ------------------------------------------------------------
  737. SYNTAX: RESUME NEXT
  738. DESCRIPTION: Used in an error handler to specify the next
  739. line to execute. Branch to the line after
  740. ERL.
  741. ------------------------------------------------------------
  742. SYNTAX: RESUME 0
  743. DESCRIPTION: Used in an error handler to specify the next
  744. line to execute. Branch to ERL.
  745. ------------------------------------------------------------
  746. SYNTAX: RETURN
  747. DESCRIPTION: Concludes a subroutine called by GOSUB.
  748. ------------------------------------------------------------
  749. SYNTAX: RSET variable$ = value
  750. DESCRIPTION: Right-aligns the value into variable$. If the
  751. length of the value is too short, then it is
  752. padded on the left with spaces. If the
  753. length of the value is too long, then it is
  754. truncated on the right. This is only for use
  755. with variables assigned to a random access
  756. buffer with FIELD command.
  757. ------------------------------------------------------------
  758. SYNTAX: RUN filename$
  759. DESCRIPTION: Loads a new BAASIC program and executes the
  760. program from the start.
  761. ------------------------------------------------------------
  762. SYNTAX: RUN line
  763. DESCRIPTION: Executes the program in memory beginning at
  764. line.
  765. ------------------------------------------------------------
  766. SYNTAX: RUN
  767. DESCRIPTION: Executes the program in memory from the start.
  768. ------------------------------------------------------------
  769. SYNTAX: SAVE [filename$]
  770. DESCRIPTION: Saves the current program into the file
  771. filename$ in ASCII format.
  772. ------------------------------------------------------------
  773. SYNTAX: STEP
  774. DESCRIPTION: Syntax Error.
  775. ------------------------------------------------------------
  776. SYNTAX: STOP
  777. DESCRIPTION: Interrupts program execution and displays the
  778. line number of the STOP command. For use
  779. when debugging BASIC programs. Whether STOP
  780. issues a SIGINT signal is implementation
  781. defined.
  782. ------------------------------------------------------------
  783. SYNTAX: SWAP variable, variable
  784. DESCRIPTION: Swaps the values of two variables. Both
  785. variables must be of the same type.
  786. ------------------------------------------------------------
  787. SYNTAX: THEN
  788. DESCRIPTION: Syntax Error.
  789. ------------------------------------------------------------
  790. SYNTAX: TO
  791. DESCRIPTION: Syntax Error.
  792. ------------------------------------------------------------
  793. ============================================================
  794. FUNCTIONS
  795. ============================================================
  796. ------------------------------------------------------------
  797. SYNTAX: N = ABS( X )
  798. PARAMETER: X is a number
  799. DESCRIPTION: The absolute value of X.
  800. ------------------------------------------------------------
  801. SYNTAX: N = ARCCOS( X )
  802. PARAMETER: X is a number
  803. DESCRIPTION: The arccosine of X in radians, where 0 <=
  804. ARCCOS(X) <= PI. X shall be in the range -1
  805. <= X <= 1.
  806. ------------------------------------------------------------
  807. SYNTAX: N = ARCSIN( X )
  808. PARAMETER: X is a number
  809. DESCRIPTION: The arcsine of X in radians, where -PI/2 <=
  810. ARCSIN(X) <= PI/2; X shall be in the range -1
  811. <= X <= 1.
  812. ------------------------------------------------------------
  813. SYNTAX: N = ARCTAN( X )
  814. PARAMETER: X is a number
  815. DESCRIPTION: The arctangent of X in radians, i.e. the angle
  816. whose tangent is X, where -PI/2 < ARCTAN(X) <
  817. PI/2.
  818. ------------------------------------------------------------
  819. SYNTAX: N = ASC( A$ )
  820. PARAMETER: A$ is a string, LEN >= 1
  821. DESCRIPTION: The numeric code for the first letter in A$.
  822. For example, ASC("ABC") returns 65 on ASCII
  823. systems.
  824. ------------------------------------------------------------
  825. SYNTAX: N = ATN( X )
  826. PARAMETER: X is a number
  827. DESCRIPTION: The arctangent of X in radians, i.e. the angle
  828. whose tangent is X, where -PI/2 < ATN(X) <
  829. PI/2.
  830. ------------------------------------------------------------
  831. SYNTAX: S$ = CHR$( X )
  832. PARAMETER: X is a number, [0,255]
  833. DESCRIPTION: The one-character string with the character
  834. corresponding to the numeric code X. On
  835. ASCII systems, CHR$(65) returns "A".
  836. ------------------------------------------------------------
  837. SYNTAX: N = CLOSE( X )
  838. PARAMETER: X is a number, [MININT,MAXINT]
  839. DESCRIPTION: Close file number X.
  840. ------------------------------------------------------------
  841. SYNTAX: N = COS( X )
  842. PARAMETER: X is a number
  843. DESCRIPTION: The cosine of X, where X is in radians.
  844. ------------------------------------------------------------
  845. SYNTAX: N = CVD( A$ )
  846. PARAMETER: A$ is a string, LEN >= sizeof(DBL)
  847. DESCRIPTION: The double-precision value in A$, which was
  848. created by MKD$.
  849. ------------------------------------------------------------
  850. SYNTAX: N = CVI( A$ )
  851. PARAMETER: A$ is a string, LEN >= sizeof(INT)
  852. DESCRIPTION: The short (16-bit) integer value in A$, which
  853. was created by MKI$.
  854. ------------------------------------------------------------
  855. SYNTAX: N = CVL( A$ )
  856. PARAMETER: A$ is a string, LEN >= sizeof(LNG)
  857. DESCRIPTION: The long (32-bit) integer value in A$, which
  858. was created by MKL$.
  859. ------------------------------------------------------------
  860. SYNTAX: N = CVS( A$ )
  861. PARAMETER: A$ is a string, LEN >= sizeof(FLT)
  862. DESCRIPTION: The single-precision value in A$, which was
  863. created by MKS$.
  864. ------------------------------------------------------------
  865. SYNTAX: S$ = DATE$
  866. DESCRIPTION: The current date based on the internal clock
  867. as a string in the format set by OPTION DATE.
  868. ------------------------------------------------------------
  869. SYNTAX: N = DIGITS( X )
  870. PARAMETER: X is a number, [0,255]
  871. DESCRIPTION: X is the number of significiant digits to
  872. print for numbers (0..17). If X = 0 then
  873. disabled.
  874. ------------------------------------------------------------
  875. SYNTAX: N = DIGITS( X, Y )
  876. PARAMETER: X is a number, [0,255]
  877. PARAMETER: Y is a number, [0,255]
  878. DESCRIPTION: X is the number of significiant digits to
  879. print for numbers (0..17). If X = 0 then
  880. disabled. Y is the number of decimal places
  881. to round (0..17). If Y = 0 then disabled.
  882. ------------------------------------------------------------
  883. SYNTAX: N = DPEEK( X )
  884. PARAMETER: X is a number, [MINLNG,MAXLNG]
  885. DESCRIPTION: The value read from hardware address X. Causes
  886. ERROR 73.
  887. ------------------------------------------------------------
  888. SYNTAX: N = DPOKE( X, Y )
  889. PARAMETER: X is a number, [MINLNG,MAXLNG]
  890. PARAMETER: Y is a number, [MININT,MAXINT]
  891. DESCRIPTION: Sends Y to hardware address X. Causes ERROR
  892. 73.
  893. ------------------------------------------------------------
  894. SYNTAX: N = ERL
  895. DESCRIPTION: The line number of the most recent error.
  896. ------------------------------------------------------------
  897. SYNTAX: N = ERR
  898. DESCRIPTION: The error number of the most recent error.
  899. ------------------------------------------------------------
  900. SYNTAX: N = EXEC( A$ )
  901. PARAMETER: A$ is a string, LEN >= 1
  902. DESCRIPTION: The exit code resulting from the execution of
  903. an operating system command.
  904. ------------------------------------------------------------
  905. SYNTAX: N = EXP( X )
  906. PARAMETER: X is a number
  907. DESCRIPTION: The exponential value of X, i.e., the value of
  908. the base of natural logarithms (e = 2.71828)
  909. raised to the power of X; if EXP(X) is less
  910. that machine infinitesimal, then its value
  911. shall be replaced with zero.
  912. ------------------------------------------------------------
  913. SYNTAX: N = FRE
  914. DESCRIPTION: The number of bytes of available memory. This
  915. function is provided for backward
  916. compatibility only and it always returns a
  917. fixed value of 32000.
  918. ------------------------------------------------------------
  919. SYNTAX: N = FRE( A$ )
  920. PARAMETER: A$ is a string, LEN >= 0
  921. DESCRIPTION: The number of bytes of available memory. This
  922. function is provided for backward
  923. compatibility only and it always returns a
  924. fixed value of 32000.The value of A$ is
  925. ignored.
  926. ------------------------------------------------------------
  927. SYNTAX: N = FRE( X )
  928. PARAMETER: X is a number
  929. DESCRIPTION: The number of bytes of available memory. This
  930. function is provided for backward
  931. compatibility only and it always returns a
  932. fixed value of 32000. The value of X is
  933. ignored.
  934. ------------------------------------------------------------
  935. SYNTAX: N = HEX( A$ )
  936. PARAMETER: A$ is a string, LEN >= 1
  937. DESCRIPTION: The numeric value of the hexadecimal string in
  938. A$. For example, HEX("FFFF") returns 65535.
  939. ------------------------------------------------------------
  940. SYNTAX: S$ = INCH$
  941. DESCRIPTION: The keypress, if available. If a keypress is
  942. not available, then immediately returns an
  943. empty string. If not supported by the
  944. platform, then always returns an empty
  945. string, so use INPUT$(1) instead.
  946. ------------------------------------------------------------
  947. SYNTAX: N = INSTR( X, A$, B$ )
  948. PARAMETER: X is a number, [1,MAXLEN]
  949. PARAMETER: A$ is a string, LEN >= 0
  950. PARAMETER: B$ is a string, LEN >= 0
  951. DESCRIPTION: The position at which B$ occurs in A$,
  952. beginning at position X.
  953. ------------------------------------------------------------
  954. SYNTAX: N = INT( X )
  955. PARAMETER: X is a number
  956. DESCRIPTION: The largest integer not greater than X; e.g.
  957. INT(1.3) = 1 and INT(-1.3) = 2.
  958. ------------------------------------------------------------
  959. SYNTAX: N = KILL( A$ )
  960. PARAMETER: A$ is a string, LEN >= 1
  961. DESCRIPTION: Removes the file named in A$.
  962. ------------------------------------------------------------
  963. SYNTAX: N = LEN( A$ )
  964. PARAMETER: A$ is a string, LEN >= 0
  965. DESCRIPTION: The length of A$.
  966. ------------------------------------------------------------
  967. SYNTAX: N = LOG( X )
  968. PARAMETER: X is a number, > 0
  969. DESCRIPTION: The natural logarithm of X; X shall be greater
  970. than zero.
  971. ------------------------------------------------------------
  972. SYNTAX: S$ = MID$( A$, X )
  973. PARAMETER: A$ is a string, LEN >= 0
  974. PARAMETER: X is a number, [1,MAXLEN]
  975. DESCRIPTION: The characters of A$, starting from postion X.
  976. ------------------------------------------------------------
  977. SYNTAX: S$ = MID$( A$, X, Y )
  978. PARAMETER: A$ is a string, LEN >= 0
  979. PARAMETER: X is a number, [1,MAXLEN]
  980. PARAMETER: Y is a number, [0,MAXLEN]
  981. DESCRIPTION: The Y characters of A$, starting from postion
  982. X.
  983. ------------------------------------------------------------
  984. SYNTAX: S$ = MKD$( X )
  985. PARAMETER: X is a number, [MINDBL,MAXDBL]
  986. DESCRIPTION: The internal representation of X as a string.
  987. ------------------------------------------------------------
  988. SYNTAX: S$ = MKI$( X )
  989. PARAMETER: X is a number, [MININT,MAXINT]
  990. DESCRIPTION: The internal representation of the short
  991. (16-bit) integer X as a string.
  992. ------------------------------------------------------------
  993. SYNTAX: S$ = MKL$( X )
  994. PARAMETER: X is a number, [MINLNG,MAXLNG]
  995. DESCRIPTION: The internal representation of the long
  996. (32-bit) integer X as a string.
  997. ------------------------------------------------------------
  998. SYNTAX: S$ = MKS$( X )
  999. PARAMETER: X is a number, [MINFLT,MAXFLT]
  1000. DESCRIPTION: The internal representation of X as a string.
  1001. ------------------------------------------------------------
  1002. SYNTAX: N = NAME( ... )
  1003. DESCRIPTION: Returns hardware address of variable. Causes
  1004. ERROR 73.
  1005. ------------------------------------------------------------
  1006. SYNTAX: N = PEEK( X )
  1007. PARAMETER: X is a number, [MINLNG,MAXLNG]
  1008. DESCRIPTION: The value read from hardware address X.
  1009. Causes ERROR 73.
  1010. ------------------------------------------------------------
  1011. SYNTAX: N = POKE( X, Y )
  1012. PARAMETER: X is a number, [MINLNG,MAXLNG]
  1013. PARAMETER: Y is a number, [0,255]
  1014. DESCRIPTION: Sends Y to hardware address X. Causes ERROR
  1015. 73.
  1016. ------------------------------------------------------------
  1017. SYNTAX: N = POS
  1018. DESCRIPTION: The current cursor position in the line.
  1019. ------------------------------------------------------------
  1020. SYNTAX: N = POS( X )
  1021. PARAMETER: X is a number, [MININT,MAXINT]
  1022. DESCRIPTION: The current cursor position in the line for
  1023. file X.
  1024. ------------------------------------------------------------
  1025. SYNTAX: N = PTR( ... )
  1026. DESCRIPTION: Returns hardware address of variable. Causes
  1027. ERROR 73.
  1028. ------------------------------------------------------------
  1029. SYNTAX: N = RENAME( A$, B$ )
  1030. PARAMETER: A$ is a string, LEN >= 1
  1031. PARAMETER: B$ is a string, LEN >= 1
  1032. DESCRIPTION: Rename file A$ to B$. If successful, the
  1033. returns -1 else returns 0.
  1034. ------------------------------------------------------------
  1035. SYNTAX: S$ = RIGHT$( A$, X )
  1036. PARAMETER: A$ is a string, LEN >= 0
  1037. PARAMETER: X is a number, [0,MAXLEN]
  1038. DESCRIPTION: The right-most X characters of A$.
  1039. ------------------------------------------------------------
  1040. SYNTAX: N = RND
  1041. DESCRIPTION: The next pseudo-random number in an
  1042. implementation-defined sequence of
  1043. pseudo-random numbers uniformly distributed
  1044. in the range 0 <= RND < 1.
  1045. ------------------------------------------------------------
  1046. SYNTAX: N = RND( X )
  1047. PARAMETER: X is a number
  1048. DESCRIPTION: Returns a pseudorandom number in the range
  1049. [0,1]. The value of X is ignored.
  1050. ------------------------------------------------------------
  1051. SYNTAX: N = SCALE( X )
  1052. PARAMETER: X is a number, [0,255]
  1053. DESCRIPTION: X is the number of decimal places to round
  1054. (0..17). If X = 0 then disabled.
  1055. ------------------------------------------------------------
  1056. SYNTAX: N = SGN( X )
  1057. PARAMETER: X is a number
  1058. DESCRIPTION: The sign of X: -1 if X < 0, 0 if X = 0, and +1
  1059. if X > 0.
  1060. ------------------------------------------------------------
  1061. SYNTAX: N = SIN( X )
  1062. PARAMETER: X is a number
  1063. DESCRIPTION: The sine of X, where X is in radians.
  1064. ------------------------------------------------------------
  1065. SYNTAX: S$ = SPC( X )
  1066. PARAMETER: X is a number
  1067. DESCRIPTION: The string of X spaces. Only for use within
  1068. the PRINT command.
  1069. ------------------------------------------------------------
  1070. SYNTAX: N = SQR( X )
  1071. PARAMETER: X is a number, >= 0
  1072. DESCRIPTION: The non-negative square root of X; X shall be
  1073. non-negative.
  1074. ------------------------------------------------------------
  1075. SYNTAX: S$ = STR$( X )
  1076. PARAMETER: X is a number
  1077. DESCRIPTION: The string generated by the print-statement as
  1078. the numeric-representation of the value
  1079. associated with X.
  1080. ------------------------------------------------------------
  1081. SYNTAX: S$ = TAB( X )
  1082. PARAMETER: X is a number
  1083. DESCRIPTION: The string required to advance to column X.
  1084. Only for use within the PRINT command.
  1085. ------------------------------------------------------------
  1086. SYNTAX: N = TAN( X )
  1087. PARAMETER: X is a number
  1088. DESCRIPTION: The tangent of X, where X is in radians.
  1089. ------------------------------------------------------------
  1090. SYNTAX: N = TROFF
  1091. DESCRIPTION: Turn tracing OFF
  1092. ------------------------------------------------------------
  1093. SYNTAX: N = TRON
  1094. DESCRIPTION: Turn tracing ON
  1095. ------------------------------------------------------------
  1096. SYNTAX: N = USR( ... )
  1097. DESCRIPTION: Execute hardware program. Causes ERROR 73.
  1098. ------------------------------------------------------------
  1099. SYNTAX: N = USR0( ... )
  1100. DESCRIPTION: Execute hardware program. Causes ERROR 73.
  1101. ------------------------------------------------------------
  1102. SYNTAX: N = USR1( ... )
  1103. DESCRIPTION: Execute hardware program. Causes ERROR 73.
  1104. ------------------------------------------------------------
  1105. SYNTAX: N = USR2( ... )
  1106. DESCRIPTION: Execute hardware program. Causes ERROR 73.
  1107. ------------------------------------------------------------
  1108. SYNTAX: N = USR3( ... )
  1109. DESCRIPTION: Execute hardware program. Causes ERROR 73.
  1110. ------------------------------------------------------------
  1111. SYNTAX: N = USR4( ... )
  1112. DESCRIPTION: Execute hardware program. Causes ERROR 73.
  1113. ------------------------------------------------------------
  1114. SYNTAX: N = USR5( ... )
  1115. DESCRIPTION: Execute hardware program. Causes ERROR 73.
  1116. ------------------------------------------------------------
  1117. SYNTAX: N = USR6( ... )
  1118. DESCRIPTION: Execute hardware program. Causes ERROR 73.
  1119. ------------------------------------------------------------
  1120. SYNTAX: N = USR7( ... )
  1121. DESCRIPTION: Execute hardware program. Causes ERROR 73.
  1122. ------------------------------------------------------------
  1123. SYNTAX: N = USR8( ... )
  1124. DESCRIPTION: Execute hardware program. Causes ERROR 73.
  1125. ------------------------------------------------------------
  1126. SYNTAX: N = USR9( ... )
  1127. DESCRIPTION: Execute hardware program. Causes ERROR 73.
  1128. ------------------------------------------------------------
  1129. SYNTAX: N = VAL( A$ )
  1130. PARAMETER: A$ is a string, LEN >= 1
  1131. DESCRIPTION: The value of the numeric-constant associated
  1132. with A$, if the string associated with A$ is
  1133. a numeric-constant. Leading and trailing
  1134. spaces in the string are ignored. If the
  1135. evaluation of the numeric-constant would
  1136. result in a value which causes an underflow,
  1137. then the value returned shall be zero. For
  1138. example, VAL( " 123.5 " ) = 123.5, VAL(
  1139. "2.E-99" ) could be zero, and VAL( "MCMXVII"
  1140. ) causes an exception.
  1141. ------------------------------------------------------------
  1142. ============================================================
  1143. OPERATORS
  1144. ============================================================
  1145. ------------------------------------------------------------
  1146. SYNTAX: X ^ Y
  1147. DESCRIPTION: Exponential
  1148. PRECEDENCE: 14
  1149. ------------------------------------------------------------
  1150. SYNTAX: # X
  1151. DESCRIPTION: Posation
  1152. PRECEDENCE: 13
  1153. ------------------------------------------------------------
  1154. SYNTAX: + X
  1155. DESCRIPTION: Posation
  1156. PRECEDENCE: 13
  1157. ------------------------------------------------------------
  1158. SYNTAX: - X
  1159. DESCRIPTION: Negation
  1160. PRECEDENCE: 13
  1161. ------------------------------------------------------------
  1162. SYNTAX: X * Y
  1163. DESCRIPTION: Multiplication
  1164. PRECEDENCE: 12
  1165. ------------------------------------------------------------
  1166. SYNTAX: X / Y
  1167. DESCRIPTION: Division
  1168. PRECEDENCE: 12
  1169. ------------------------------------------------------------
  1170. SYNTAX: X + Y
  1171. DESCRIPTION: Addition
  1172. PRECEDENCE: 9
  1173. ------------------------------------------------------------
  1174. SYNTAX: X - Y
  1175. DESCRIPTION: Subtraction
  1176. PRECEDENCE: 9
  1177. ------------------------------------------------------------
  1178. SYNTAX: X < Y
  1179. DESCRIPTION: Less than
  1180. PRECEDENCE: 7
  1181. ------------------------------------------------------------
  1182. SYNTAX: X <= Y
  1183. DESCRIPTION: Less than or Equal
  1184. PRECEDENCE: 7
  1185. ------------------------------------------------------------
  1186. SYNTAX: X <> Y
  1187. DESCRIPTION: Not Equal
  1188. PRECEDENCE: 7
  1189. ------------------------------------------------------------
  1190. SYNTAX: X = Y
  1191. DESCRIPTION: Equal
  1192. PRECEDENCE: 7
  1193. ------------------------------------------------------------
  1194. SYNTAX: X =< Y
  1195. DESCRIPTION: Less than or Equal
  1196. PRECEDENCE: 7
  1197. ------------------------------------------------------------
  1198. SYNTAX: X => Y
  1199. DESCRIPTION: Greater than or Equal
  1200. PRECEDENCE: 7
  1201. ------------------------------------------------------------
  1202. SYNTAX: X > Y
  1203. DESCRIPTION: Greater than
  1204. PRECEDENCE: 7
  1205. ------------------------------------------------------------
  1206. SYNTAX: X >< Y
  1207. DESCRIPTION: Not Equal
  1208. PRECEDENCE: 7
  1209. ------------------------------------------------------------
  1210. SYNTAX: X >= Y
  1211. DESCRIPTION: Greater than or Equal
  1212. PRECEDENCE: 7
  1213. ------------------------------------------------------------
  1214. SYNTAX: NOT X
  1215. DESCRIPTION: Bitwise NOT
  1216. PRECEDENCE: 6
  1217. ------------------------------------------------------------
  1218. SYNTAX: X AND Y
  1219. DESCRIPTION: Bitwise AND
  1220. PRECEDENCE: 5
  1221. ------------------------------------------------------------
  1222. SYNTAX: X OR Y
  1223. DESCRIPTION: Bitwise OR
  1224. PRECEDENCE: 4
  1225. ------------------------------------------------------------
  1226. SYNTAX: X XOR Y
  1227. DESCRIPTION: Bitwise Exclusive OR
  1228. PRECEDENCE: 3
  1229. ------------------------------------------------------------