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.
 
 
 
 
 
 

1263 lines
54 KiB

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