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.
 
 
 
 
 
 

837 lines
35 KiB

  1. ============================================================
  2. GENERAL
  3. ============================================================
  4. OPTION VERSION "PDP-11"
  5. REM INTERNAL ID: D70
  6. REM DESCRIPTION: DEC PDP-11 BASIC
  7. REM REFERENCE: PDP-11 BASIC Programming Manual
  8. REM by Digital Equipement Corporation
  9. REM (c) 1970, Digital Equipement Corporation
  10. REM http://bitsavers.trailing-edge.com/pdf/dec/pdp11/basic/
  11. REM DEC-11-AJPB-D_PDP-11_BASIC_Programming_Manual_Dec70.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 128
  24. OPTION DATE ""
  25. OPTION TIME ""
  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: BYE
  60. DESCRIPTION: Exits to the operating system.
  61. ------------------------------------------------------------
  62. SYNTAX: DATA constant [, ...]
  63. DESCRIPTION: Stores numeric and string constants to be
  64. accessed by READ.
  65. ------------------------------------------------------------
  66. SYNTAX: DEF FNname[( arg [,...] )] = value
  67. DESCRIPTION: Defines a single-line function. Single-line
  68. functions require an equal sign.
  69. ------------------------------------------------------------
  70. SYNTAX: DEF FNname[( arg [,...] )]
  71. DESCRIPTION: Defines a multiline function. Multi-line DEF
  72. functions do not have an equal sign and must
  73. end with FNEND.
  74. ------------------------------------------------------------
  75. SYNTAX: DELETE line [- line]
  76. DESCRIPTION: Deletes program lines indicated by the
  77. argument(s). All program lines have a
  78. number, which is visible with the LIST
  79. command. If line numbers are not provided,
  80. they are assigned beginning with 1. Deleting
  81. a non-existing line does not cause an error.
  82. ------------------------------------------------------------
  83. SYNTAX: DIM [# filenum,] variable([ lower TO ] upper)
  84. DESCRIPTION: Declares variables and specifies the
  85. dimensions of array variables. For array
  86. variables, if the lower bound is not
  87. provided, then the OPTION BASE value is used.
  88. If filenum is provided, then the variable is
  89. virtual.
  90. ------------------------------------------------------------
  91. SYNTAX: ELSE
  92. DESCRIPTION: Introduces a default condition in a multi-line
  93. IF statement.
  94. ------------------------------------------------------------
  95. SYNTAX: ELSEIF
  96. DESCRIPTION: Introduces a secondary condition in a
  97. multi-line IF statement.
  98. ------------------------------------------------------------
  99. SYNTAX: END
  100. DESCRIPTION: Terminates program execution. If the BASIC
  101. program was executed from the operating
  102. system level, then control returns to the
  103. operating system, oterwise control reuturns
  104. to the BASIC prompt.
  105. ------------------------------------------------------------
  106. SYNTAX: END IF
  107. DESCRIPTION: Specifies the last line of a multi-line IF
  108. definition.
  109. ------------------------------------------------------------
  110. SYNTAX: FNEND
  111. DESCRIPTION: Specifies the last line of a multi-line DEF
  112. function.
  113. ------------------------------------------------------------
  114. SYNTAX: FOR variable = start TO finish [STEP
  115. increment]
  116. DESCRIPTION: Top of a FOR - NEXT structure. The loop will
  117. continue a fixed number of times, which is
  118. determined by the values of start, finish,
  119. and increment.
  120. ------------------------------------------------------------
  121. SYNTAX: GO
  122. DESCRIPTION: Syntax Error.
  123. ------------------------------------------------------------
  124. SYNTAX: GO SUB line
  125. DESCRIPTION: Initiates a subroutine call to the line
  126. specified. The subroutine must end with
  127. RETURN. The line may be a number or a label.
  128. ------------------------------------------------------------
  129. SYNTAX: GO TO line
  130. DESCRIPTION: Branches program execution to the specified
  131. line. The line may be a number or a label.
  132. ------------------------------------------------------------
  133. SYNTAX: GOSUB line
  134. DESCRIPTION: Initiates a subroutine call to the line
  135. specified. The subroutine must end with
  136. RETURN. The line may be a number or a label.
  137. ------------------------------------------------------------
  138. SYNTAX: GOTO line
  139. DESCRIPTION: Branches program execution to the specified
  140. line. The line may be a number or a label.
  141. ------------------------------------------------------------
  142. SYNTAX: IF value THEN line1 [ELSE line2]
  143. DESCRIPTION: Single line standard IF command. If the value
  144. is non-zero, then branh to line1. If the
  145. value is zero and ELSE is provided, then
  146. branch to line2. Otherwise continue to the
  147. next line. LABELS are not allowed.
  148. ------------------------------------------------------------
  149. SYNTAX: IF value THEN
  150. DESCRIPTION: Top of a multi-line IF - END IF structure. If
  151. the value is non-zero, then the program lines
  152. upto the next ELSE or ELSE IF command are
  153. executed, otherwise the program branches to
  154. the next ELSE or ELSE IF command.
  155. ------------------------------------------------------------
  156. SYNTAX: INPUT "prompt string" , variable [, ...]
  157. DESCRIPTION: Reads input from the terminal after displaying
  158. a prompt.
  159. ------------------------------------------------------------
  160. SYNTAX: INPUT # filenum , variable [, ...]s
  161. DESCRIPTION: Reads input from the file specified by
  162. filenum.
  163. ------------------------------------------------------------
  164. SYNTAX: INPUT variable [, ...]
  165. DESCRIPTION: Reads input from the terminal.
  166. ------------------------------------------------------------
  167. SYNTAX: [LET] variable [, ...] = value
  168. DESCRIPTION: Assigns the value to the variable. The LET
  169. keyword is optional.
  170. ------------------------------------------------------------
  171. SYNTAX: LIST line1 [- line2]
  172. DESCRIPTION: Lists BASIC program lines from line1 to line2
  173. to the console on stdout.
  174. ------------------------------------------------------------
  175. SYNTAX: MAINTAINER
  176. DESCRIPTION: This command is reserved for use by the
  177. Bywater BASIC maintainer. It is not for the
  178. BASIC programmer.
  179. ------------------------------------------------------------
  180. SYNTAX: MAINTAINER CMDS
  181. DESCRIPTION: Syntax Error.
  182. ------------------------------------------------------------
  183. SYNTAX: MAINTAINER CMDS HTML
  184. DESCRIPTION: Dump COMMAND vs VERSION as HTML table
  185. ------------------------------------------------------------
  186. SYNTAX: MAINTAINER CMDS ID
  187. DESCRIPTION: Dump COMMAND #define.
  188. ------------------------------------------------------------
  189. SYNTAX: MAINTAINER CMDS MANUAL
  190. DESCRIPTION: Dump COMMAND manual.
  191. ------------------------------------------------------------
  192. SYNTAX: MAINTAINER CMDS_SWITCH
  193. DESCRIPTION: Dump COMMAND switch.
  194. ------------------------------------------------------------
  195. SYNTAX: MAINTAINER CMDS TABLE
  196. DESCRIPTION: Dump COMMAND table.
  197. ------------------------------------------------------------
  198. SYNTAX: MAINTAINER DEBUG
  199. DESCRIPTION: Syntax Error.
  200. ------------------------------------------------------------
  201. SYNTAX: MAINTAINER DEBUG OFF
  202. DESCRIPTION: Disable degug tracing.
  203. ------------------------------------------------------------
  204. SYNTAX: MAINTAINER DEBUG ON
  205. DESCRIPTION: Enable degug tracing.
  206. ------------------------------------------------------------
  207. SYNTAX: MAINTAINER FNCS
  208. DESCRIPTION: Syntax Error.
  209. ------------------------------------------------------------
  210. SYNTAX: MAINTAINER FNCS HTML
  211. DESCRIPTION: Dump FUNCTION vs VERSION as HTML table.
  212. ------------------------------------------------------------
  213. SYNTAX: MAINTAINER FNCS ID
  214. DESCRIPTION: Dump FUNCTION #define.
  215. ------------------------------------------------------------
  216. SYNTAX: MAINTAINER FNCS MANUAL
  217. DESCRIPTION: Dump FUNCTION manual.
  218. ------------------------------------------------------------
  219. SYNTAX: MAINTAINER FNCS SWITCH
  220. DESCRIPTION: Dump FUNCTION switch.
  221. ------------------------------------------------------------
  222. SYNTAX: MAINTAINER FNCS TABLE
  223. DESCRIPTION: Dump FUNCTION table.
  224. ------------------------------------------------------------
  225. SYNTAX: MAINTAINER MANUAL
  226. DESCRIPTION: Dump manual for the currently selected OPTION
  227. VERSION.
  228. ------------------------------------------------------------
  229. SYNTAX: MAINTAINER STACK
  230. DESCRIPTION: Dump the BASIC stack.
  231. ------------------------------------------------------------
  232. SYNTAX: NEW
  233. DESCRIPTION: Deletes the program in memory and clears all
  234. variables.
  235. ------------------------------------------------------------
  236. SYNTAX: NEXT [variable]
  237. DESCRIPTION: The bottom line of a FOR - NEXT structure.
  238. ------------------------------------------------------------
  239. SYNTAX: OLD [filename$]
  240. DESCRIPTION: Loads an ASCII BASIC program into memory.
  241. ------------------------------------------------------------
  242. SYNTAX: OPTION
  243. DESCRIPTION: Syntax Error.
  244. ------------------------------------------------------------
  245. SYNTAX: OPTION ANGLE
  246. DESCRIPTION: Syntax Error.
  247. ------------------------------------------------------------
  248. SYNTAX: OPTION ANGLE DEGREES
  249. DESCRIPTION: Configures these math functions to accept and
  250. return angles in degrees: ACOS, ACS, ANGLE,
  251. ARCSIN, ASIN, ASN, ARCTAN, ATN, ATAN, COS,
  252. COT, CSC, SEC, SIN and TAN.
  253. ------------------------------------------------------------
  254. SYNTAX: OPTION ANGLE GRADIANS
  255. DESCRIPTION: Configures these math functions to accept and
  256. return angles in gradians: ACOS, ANGLE,
  257. ASIN, ASN, ATN, ATAN, COS, COT, CSC, SEC, SIN
  258. and TAN.
  259. ------------------------------------------------------------
  260. SYNTAX: OPTION ANGLE RADIANS
  261. DESCRIPTION: Configures these math functions to accept and
  262. return angles in radians: ACOS, ANGLE, ASIN,
  263. ASN, ATN, ATAN, COS, COT, CSC, SEC, SIN and
  264. TAN.
  265. ------------------------------------------------------------
  266. SYNTAX: OPTION ARITHMETIC
  267. DESCRIPTION: Syntax Error.
  268. ------------------------------------------------------------
  269. SYNTAX: OPTION ARITHMETIC DECIMAL
  270. DESCRIPTION: Currently has no effect.
  271. ------------------------------------------------------------
  272. SYNTAX: OPTION ARITHMETIC FIXED
  273. DESCRIPTION: Currently has no effect.
  274. ------------------------------------------------------------
  275. SYNTAX: OPTION ARITHMETIC NATIVE
  276. DESCRIPTION: Currently has no effect.
  277. ------------------------------------------------------------
  278. SYNTAX: OPTION BASE integer
  279. DESCRIPTION: Sets the default lowest array subscript.
  280. ------------------------------------------------------------
  281. SYNTAX: OPTION BUGS
  282. DESCRIPTION: Syntax Error.
  283. ------------------------------------------------------------
  284. SYNTAX: OPTION BUGS BOOLEAN
  285. DESCRIPTION: Boolean results are 1 or 0 instead of bitwise.
  286. ------------------------------------------------------------
  287. SYNTAX: OPTION BUGS OFF
  288. DESCRIPTION: Disables bugs commonly found in many BASIC
  289. dialects.
  290. ------------------------------------------------------------
  291. SYNTAX: OPTION BUGS ON
  292. DESCRIPTION: Enables bugs commonly found in many BASIC
  293. dialects.
  294. ------------------------------------------------------------
  295. SYNTAX: OPTION COMPARE
  296. DESCRIPTION: Syntax Error.
  297. ------------------------------------------------------------
  298. SYNTAX: OPTION COMPARE BINARY
  299. DESCRIPTION: Causes string comparisons to be
  300. case-sensitive.
  301. ------------------------------------------------------------
  302. SYNTAX: OPTION COMPARE DATABASE
  303. DESCRIPTION: Causes string comparisons to be
  304. case-insensitive.
  305. ------------------------------------------------------------
  306. SYNTAX: OPTION COMPARE TEXT
  307. DESCRIPTION: Causes string comparisons to be
  308. case-insensitive.
  309. ------------------------------------------------------------
  310. SYNTAX: OPTION COVERAGE
  311. DESCRIPTION: Syntax Error.
  312. ------------------------------------------------------------
  313. SYNTAX: OPTION COVERAGE OFF
  314. DESCRIPTION: Disables BASIC code coverage recording,
  315. displayed using the LIST command.
  316. ------------------------------------------------------------
  317. SYNTAX: OPTION COVERAGE ON
  318. DESCRIPTION: Enables BASIC code coverage recording,
  319. displayed using the LIST command.
  320. ------------------------------------------------------------
  321. SYNTAX: OPTION DATE format$
  322. DESCRIPTION: Sets the date format string used by C
  323. strftime() for DATE$.
  324. ------------------------------------------------------------
  325. SYNTAX: OPTION DIGITS integer
  326. DESCRIPTION: Sets the number of significant digits for
  327. PRINT. Setting the value to zero restores
  328. the default.
  329. ------------------------------------------------------------
  330. SYNTAX: OPTION DISABLE
  331. DESCRIPTION: Syntax Error.
  332. ------------------------------------------------------------
  333. SYNTAX: OPTION DISABLE COMMAND name$
  334. DESCRIPTION: Disables the specified BASIC command.
  335. ------------------------------------------------------------
  336. SYNTAX: OPTION DISABLE FUNCTION name$
  337. DESCRIPTION: Disables the specified BASIC function.
  338. ------------------------------------------------------------
  339. SYNTAX: OPTION DISABLE OPERATOR name$
  340. DESCRIPTION: Disables the specified BASIC operator.
  341. ------------------------------------------------------------
  342. SYNTAX: OPTION EDIT string$
  343. DESCRIPTION: Sets the program name used by the EDIT
  344. command.
  345. ------------------------------------------------------------
  346. SYNTAX: OPTION ENABLE
  347. DESCRIPTION: Syntax Error.
  348. ------------------------------------------------------------
  349. SYNTAX: OPTION ENABLE COMMAND name$
  350. DESCRIPTION: Enables the specified BASIC command.
  351. ------------------------------------------------------------
  352. SYNTAX: OPTION ENABLE FUNCTION name$
  353. DESCRIPTION: Enables the specified BASIC function.
  354. ------------------------------------------------------------
  355. SYNTAX: OPTION ENABLE OPERATOR name$
  356. DESCRIPTION: Enables the specified BASIC operator.
  357. ------------------------------------------------------------
  358. SYNTAX: OPTION ERROR
  359. DESCRIPTION: Syntax Error.
  360. ------------------------------------------------------------
  361. SYNTAX: OPTION ERROR GOSUB
  362. DESCRIPTION: When an error occurs, GOSUB to the error
  363. handler. The error handler exits with
  364. RETURN.
  365. ------------------------------------------------------------
  366. SYNTAX: OPTION ERROR GOTO
  367. DESCRIPTION: When an error occurs, GOTO to the error
  368. handler. The error handler exits with
  369. RESUME.
  370. ------------------------------------------------------------
  371. SYNTAX: OPTION EXPLICIT
  372. DESCRIPTION: All variables must be declared using DIM.
  373. ------------------------------------------------------------
  374. SYNTAX: OPTION EXTENSION string$
  375. DESCRIPTION: Sets the BASIC filename extension, commonly
  376. ".bas".
  377. ------------------------------------------------------------
  378. SYNTAX: OPTION FILES string$
  379. DESCRIPTION: Sets the program name used by the FILES
  380. command.
  381. ------------------------------------------------------------
  382. SYNTAX: OPTION IMPLICIT
  383. DESCRIPTION: Variables need not be declared using DIM,
  384. provided arrays have no more that 10
  385. elements. This is the opposite of OPTION
  386. EXPLICIT, and is the default for all versions
  387. of BASIC.
  388. ------------------------------------------------------------
  389. SYNTAX: OPTION INDENT integer
  390. DESCRIPTION: Sets indention level for LIST. Zero means no
  391. indention. Default is 2.
  392. ------------------------------------------------------------
  393. SYNTAX: OPTION LABELS
  394. DESCRIPTION: Syntax Error.
  395. ------------------------------------------------------------
  396. SYNTAX: OPTION LABELS OFF
  397. DESCRIPTION: Disables text labels.
  398. ------------------------------------------------------------
  399. SYNTAX: OPTION LABELS ON
  400. DESCRIPTION: Enables text labels.
  401. ------------------------------------------------------------
  402. SYNTAX: OPTION PROMPT string$
  403. DESCRIPTION: Sets the BASIC prompt.
  404. ------------------------------------------------------------
  405. SYNTAX: OPTION PUNCT
  406. DESCRIPTION: Syntax Error.
  407. ------------------------------------------------------------
  408. SYNTAX: OPTION PUNCT AT char$
  409. DESCRIPTION: Sets the PRINT AT character, commonly "@".
  410. ------------------------------------------------------------
  411. SYNTAX: OPTION PUNCT BYTE char$
  412. DESCRIPTION: Sets the suffix character that indicates a
  413. variable is of type BYTE, commonly "~".
  414. ------------------------------------------------------------
  415. SYNTAX: OPTION PUNCT COMMENT char$
  416. DESCRIPTION: Sets the shortcut COMMENT character.
  417. ------------------------------------------------------------
  418. SYNTAX: OPTION PUNCT CURRENCY char$
  419. DESCRIPTION: Sets the suffix character that indicates a
  420. variable is of type CURRENCY, commonly "@".
  421. ------------------------------------------------------------
  422. SYNTAX: OPTION PUNCT DOUBLE char$
  423. DESCRIPTION: Sets the suffix character that indicates a
  424. variable is of type DOUBLE, commonly "#".
  425. ------------------------------------------------------------
  426. SYNTAX: OPTION PUNCT FILENUM char$
  427. DESCRIPTION: Sets the FILE NUMBER prefix character,
  428. commonly "#".
  429. ------------------------------------------------------------
  430. SYNTAX: OPTION PUNCT IMAGE char$
  431. DESCRIPTION: Sets the shortcut IMAGE character, commonly
  432. ":".
  433. ------------------------------------------------------------
  434. SYNTAX: OPTION PUNCT INPUT char$
  435. DESCRIPTION: Sets the shortcut INPUT character, commonly
  436. "!".
  437. ------------------------------------------------------------
  438. SYNTAX: OPTION PUNCT INTEGER char$
  439. DESCRIPTION: Sets the suffix character that indicates a
  440. variable is of type INTEGER, commonly "%".
  441. ------------------------------------------------------------
  442. SYNTAX: OPTION PUNCT LONG char$
  443. DESCRIPTION: Sets the suffix character that indicates a
  444. variable is of type LONG, commonly "&".
  445. ------------------------------------------------------------
  446. SYNTAX: OPTION PUNCT LPAREN char$
  447. DESCRIPTION: Sets the LEFT PARENTHESIS character, commonly
  448. "(".
  449. ------------------------------------------------------------
  450. SYNTAX: OPTION PUNCT_PRINT char$
  451. DESCRIPTION: Sets the shortcut PRINT character, commonly
  452. "?".
  453. ------------------------------------------------------------
  454. SYNTAX: OPTION PUNCT QUOTE char$
  455. DESCRIPTION: Sets the QUOTE character, commonly """
  456. ------------------------------------------------------------
  457. SYNTAX: OPTION PUNCT RPAREN char$
  458. DESCRIPTION: Sets the RIGHT PARENTHESIS character, commonly
  459. ")".
  460. ------------------------------------------------------------
  461. SYNTAX: OPTION PUNCT SINGLE char$
  462. DESCRIPTION: Sets the suffix character that indicates a
  463. variable is of type SINGLE, commonly "!".
  464. ------------------------------------------------------------
  465. SYNTAX: OPTION PUNCT STATEMENT char$
  466. DESCRIPTION: Sets the statement seperator character,
  467. commonly ":".
  468. ------------------------------------------------------------
  469. SYNTAX: OPTION PUNCT STRING char$
  470. DESCRIPTION: Sets the suffix character that indicates a
  471. variable is of type STRING, commonly "$".
  472. ------------------------------------------------------------
  473. SYNTAX: OPTION RECLEN integer
  474. DESCRIPTION: Sets the default RANDOM record length.
  475. ------------------------------------------------------------
  476. SYNTAX: OPTION RENUM string$
  477. DESCRIPTION: Sets the program name used by the RENUM
  478. command.
  479. ------------------------------------------------------------
  480. SYNTAX: OPTION ROUND
  481. DESCRIPTION: Syntax Error.
  482. ------------------------------------------------------------
  483. SYNTAX: OPTION ROUND BANK
  484. DESCRIPTION: Round using the Banker rule.
  485. ------------------------------------------------------------
  486. SYNTAX: OPTION ROUND MATH
  487. DESCRIPTION: Round using mathematical rules.
  488. ------------------------------------------------------------
  489. SYNTAX: OPTION ROUND TRUNCATE
  490. DESCRIPTION: Round using truncation.
  491. ------------------------------------------------------------
  492. SYNTAX: OPTION SCALE integer
  493. DESCRIPTION: Sets the number of digits to round after the
  494. decimal point for PRINT. Setting the value
  495. to zero disables rounding.
  496. ------------------------------------------------------------
  497. SYNTAX: OPTION SLEEP double
  498. DESCRIPTION: Sets multiplier for SLEEP and WAIT. Zero
  499. means no waiting. Default is 1.
  500. ------------------------------------------------------------
  501. SYNTAX: OPTION STDERR filename$
  502. DESCRIPTION: Sets the file used for STDERR, which is used
  503. by LPRINT commands.
  504. ------------------------------------------------------------
  505. SYNTAX: OPTION STDIN filename$
  506. DESCRIPTION: Sets the file used for STDIN, which is used by
  507. INPUT commands.
  508. ------------------------------------------------------------
  509. SYNTAX: OPTION STDOUT filename$
  510. DESCRIPTION: Sets the file used for STDOUT, which is used
  511. by PRINT commands.
  512. ------------------------------------------------------------
  513. SYNTAX: OPTION STRICT
  514. DESCRIPTION: Syntax Error.
  515. ------------------------------------------------------------
  516. SYNTAX: OPTION STRICT OFF
  517. DESCRIPTION: Disables checking for implicit array creation
  518. without using the DIM command.
  519. ------------------------------------------------------------
  520. SYNTAX: OPTION STRICT ON
  521. DESCRIPTION: Enables checking for implicit array creation
  522. without using the DIM command.
  523. ------------------------------------------------------------
  524. SYNTAX: OPTION TERMINAL
  525. DESCRIPTION: Syntax Error.
  526. ------------------------------------------------------------
  527. SYNTAX: OPTION TERMINAL ADM
  528. DESCRIPTION: Enables ADM-3A terminal control codes for CLS,
  529. COLOR, and LOCATE.
  530. ------------------------------------------------------------
  531. SYNTAX: OPTION TERMINAL ANSI
  532. DESCRIPTION: Enables ANSI terminal control codes for CLS,
  533. COLOR, and LOCATE.
  534. ------------------------------------------------------------
  535. SYNTAX: OPTION TERMINAL NONE
  536. DESCRIPTION: Disables terminal control codes for CLS,
  537. COLOR, and LOCATE.
  538. ------------------------------------------------------------
  539. SYNTAX: OPTION TIME format$
  540. DESCRIPTION: Sets the time format string used by C
  541. strftime() for TIME$.
  542. ------------------------------------------------------------
  543. SYNTAX: OPTION TRACE
  544. DESCRIPTION: Syntax Error.
  545. ------------------------------------------------------------
  546. SYNTAX: OPTION TRACE OFF
  547. DESCRIPTION: Disables displaying a stack trace when an
  548. ERROR occurs.
  549. ------------------------------------------------------------
  550. SYNTAX: OPTION TRACE ON
  551. DESCRIPTION: Enables displaying a stack trace when an ERROR
  552. occurs.
  553. ------------------------------------------------------------
  554. SYNTAX: OPTION USING
  555. DESCRIPTION: Syntax Error.
  556. ------------------------------------------------------------
  557. SYNTAX: OPTION USING ALL char$
  558. DESCRIPTION: Specifies the magic ALL character for the
  559. PRINT USING command. A common value is "&".
  560. ------------------------------------------------------------
  561. SYNTAX: OPTION USING COMMA char$
  562. DESCRIPTION: Specifies the magic COMMA character for the
  563. PRINT USING command. A common value is ",".
  564. ------------------------------------------------------------
  565. SYNTAX: OPTION USING DIGIT char$
  566. DESCRIPTION: Specifies the magic DIGIT character for the
  567. PRINT USING command. A common value is "#".
  568. ------------------------------------------------------------
  569. SYNTAX: OPTION USING DOLLAR char$
  570. DESCRIPTION: Specifies the magic DOLLAR character for the
  571. PRINT USING command. A common value is "$".
  572. ------------------------------------------------------------
  573. SYNTAX: OPTION USING EXRAD char$
  574. DESCRIPTION: Specifies the magic EXRAD character for the
  575. PRINT USING command. A common value is "^".
  576. ------------------------------------------------------------
  577. SYNTAX: OPTION USING FILLER char$
  578. DESCRIPTION: Specifies the magic FILLER character for the
  579. PRINT USING command. A common value is "*".
  580. ------------------------------------------------------------
  581. SYNTAX: OPTION USING FIRST char$
  582. DESCRIPTION: Specifies the magic FIRST character for the
  583. PRINT USING command. A common value is "!".
  584. ------------------------------------------------------------
  585. SYNTAX: OPTION USING LENGTH char$
  586. DESCRIPTION: Specifies the magic LENGTH character for the
  587. PRINT USING command. A common value is "\".
  588. ------------------------------------------------------------
  589. SYNTAX: OPTION USING LITERAL char$
  590. DESCRIPTION: Specifies the magic LITERAL character for the
  591. PRINT USING command. A common value is "_".
  592. ------------------------------------------------------------
  593. SYNTAX: OPTION USING MINUS char$
  594. DESCRIPTION: Specifies the magic MINUS character for the
  595. PRINT USING command. A common value is "-".
  596. ------------------------------------------------------------
  597. SYNTAX: OPTION USING PERIOD char$
  598. DESCRIPTION: Specifies the magic PERIOD character for the
  599. PRINT USING command. A common value is ".".
  600. ------------------------------------------------------------
  601. SYNTAX: OPTION USING PLUS char$
  602. DESCRIPTION: Specifies the magic PLUS character for the
  603. PRINT USING command. A common value is "+".
  604. ------------------------------------------------------------
  605. SYNTAX: OPTION VERSION version$
  606. DESCRIPTION: Selects a specific BASIC version, which is a
  607. combination of OPTION settings, commands,
  608. functions and operators. If no version is
  609. specified, displays a list of the available
  610. versions.
  611. ------------------------------------------------------------
  612. SYNTAX: OPTION ZONE integer
  613. DESCRIPTION: Sets the PRINT zone width. Setting the value
  614. to zero restores the default.
  615. ------------------------------------------------------------
  616. SYNTAX: PRINT # filenum , [USING format$;] value ...
  617. DESCRIPTION: Sends output to a file.
  618. ------------------------------------------------------------
  619. SYNTAX: PRINT [USING format$;] value ...
  620. DESCRIPTION: Sends output to the screen.
  621. ------------------------------------------------------------
  622. SYNTAX: READ variable [, ...]
  623. DESCRIPTION: Reads values from DATA statements.
  624. ------------------------------------------------------------
  625. SYNTAX: REM ...
  626. DESCRIPTION: Remark.
  627. ------------------------------------------------------------
  628. SYNTAX: RESTORE [line]
  629. DESCRIPTION: Resets the line used for the next READ
  630. statement. line may be either a number or a
  631. label.
  632. ------------------------------------------------------------
  633. SYNTAX: RETURN
  634. DESCRIPTION: Concludes a subroutine called by GOSUB.
  635. ------------------------------------------------------------
  636. SYNTAX: RUN filename$
  637. DESCRIPTION: Loads a new BAASIC program and executes the
  638. program from the start.
  639. ------------------------------------------------------------
  640. SYNTAX: RUN line
  641. DESCRIPTION: Executes the program in memory beginning at
  642. line.
  643. ------------------------------------------------------------
  644. SYNTAX: RUN
  645. DESCRIPTION: Executes the program in memory from the start.
  646. ------------------------------------------------------------
  647. SYNTAX: SAVE [filename$]
  648. DESCRIPTION: Saves the current program into the file
  649. filename$ in ASCII format.
  650. ------------------------------------------------------------
  651. SYNTAX: STEP
  652. DESCRIPTION: Syntax Error.
  653. ------------------------------------------------------------
  654. SYNTAX: STOP
  655. DESCRIPTION: Interrupts program execution and displays the
  656. line number of the STOP command. For use
  657. when debugging BASIC programs. Whether STOP
  658. issues a SIGINT signal is implementation
  659. defined.
  660. ------------------------------------------------------------
  661. SYNTAX: THEN
  662. DESCRIPTION: Syntax Error.
  663. ------------------------------------------------------------
  664. SYNTAX: TO
  665. DESCRIPTION: Syntax Error.
  666. ------------------------------------------------------------
  667. ============================================================
  668. FUNCTIONS
  669. ============================================================
  670. ------------------------------------------------------------
  671. SYNTAX: N = ABS( X )
  672. PARAMETER: X is a number
  673. DESCRIPTION: The absolute value of X.
  674. ------------------------------------------------------------
  675. SYNTAX: N = ATN( X )
  676. PARAMETER: X is a number
  677. DESCRIPTION: The arctangent of X in radians, i.e. the angle
  678. whose tangent is X, where -PI/2 < ATN(X) <
  679. PI/2.
  680. ------------------------------------------------------------
  681. SYNTAX: N = COS( X )
  682. PARAMETER: X is a number
  683. DESCRIPTION: The cosine of X, where X is in radians.
  684. ------------------------------------------------------------
  685. SYNTAX: N = EXF( ... )
  686. DESCRIPTION: Execute hardware program. Causes ERROR 73.
  687. ------------------------------------------------------------
  688. SYNTAX: N = EXP( X )
  689. PARAMETER: X is a number
  690. DESCRIPTION: The exponential value of X, i.e., the value of
  691. the base of natural logarithms (e = 2.71828)
  692. raised to the power of X; if EXP(X) is less
  693. that machine infinitesimal, then its value
  694. shall be replaced with zero.
  695. ------------------------------------------------------------
  696. SYNTAX: N = INT( X )
  697. PARAMETER: X is a number
  698. DESCRIPTION: The largest integer not greater than X; e.g.
  699. INT(1.3) = 1 and INT(-1.3) = 2.
  700. ------------------------------------------------------------
  701. SYNTAX: N = LOG( X )
  702. PARAMETER: X is a number, > 0
  703. DESCRIPTION: The natural logarithm of X; X shall be greater
  704. than zero.
  705. ------------------------------------------------------------
  706. SYNTAX: N = RANDOMIZE
  707. DESCRIPTION: Seeds the pseudo-random number generator with
  708. TIME.
  709. ------------------------------------------------------------
  710. SYNTAX: N = RND
  711. DESCRIPTION: The next pseudo-random number in an
  712. implementation-defined sequence of
  713. pseudo-random numbers uniformly distributed
  714. in the range 0 <= RND < 1.
  715. ------------------------------------------------------------
  716. SYNTAX: N = RND( X )
  717. PARAMETER: X is a number
  718. DESCRIPTION: Returns a pseudorandom number in the range
  719. [0,1]. The value of X is ignored.
  720. ------------------------------------------------------------
  721. SYNTAX: N = SGN( X )
  722. PARAMETER: X is a number
  723. DESCRIPTION: The sign of X: -1 if X < 0, 0 if X = 0, and +1
  724. if X > 0.
  725. ------------------------------------------------------------
  726. SYNTAX: N = SIN( X )
  727. PARAMETER: X is a number
  728. DESCRIPTION: The sine of X, where X is in radians.
  729. ------------------------------------------------------------
  730. SYNTAX: S$ = SPC( X )
  731. PARAMETER: X is a number
  732. DESCRIPTION: The string of X spaces. Only for use within
  733. the PRINT command.
  734. ------------------------------------------------------------
  735. SYNTAX: N = SQR( X )
  736. PARAMETER: X is a number, >= 0
  737. DESCRIPTION: The non-negative square root of X; X shall be
  738. non-negative.
  739. ------------------------------------------------------------
  740. SYNTAX: S$ = TAB( X )
  741. PARAMETER: X is a number
  742. DESCRIPTION: The string required to advance to column X.
  743. Only for use within the PRINT command.
  744. ------------------------------------------------------------
  745. SYNTAX: N = TAN( X )
  746. PARAMETER: X is a number
  747. DESCRIPTION: The tangent of X, where X is in radians.
  748. ------------------------------------------------------------
  749. ============================================================
  750. OPERATORS
  751. ============================================================
  752. ------------------------------------------------------------
  753. SYNTAX: X ** Y
  754. DESCRIPTION: Exponential
  755. PRECEDENCE: 14
  756. ------------------------------------------------------------
  757. SYNTAX: X ^ Y
  758. DESCRIPTION: Exponential
  759. PRECEDENCE: 14
  760. ------------------------------------------------------------
  761. SYNTAX: + X
  762. DESCRIPTION: Posation
  763. PRECEDENCE: 13
  764. ------------------------------------------------------------
  765. SYNTAX: - X
  766. DESCRIPTION: Negation
  767. PRECEDENCE: 13
  768. ------------------------------------------------------------
  769. SYNTAX: X * Y
  770. DESCRIPTION: Multiplication
  771. PRECEDENCE: 12
  772. ------------------------------------------------------------
  773. SYNTAX: X / Y
  774. DESCRIPTION: Division
  775. PRECEDENCE: 12
  776. ------------------------------------------------------------
  777. SYNTAX: X + Y
  778. DESCRIPTION: Addition
  779. PRECEDENCE: 9
  780. ------------------------------------------------------------
  781. SYNTAX: X - Y
  782. DESCRIPTION: Subtraction
  783. PRECEDENCE: 9
  784. ------------------------------------------------------------
  785. SYNTAX: X < Y
  786. DESCRIPTION: Less than
  787. PRECEDENCE: 7
  788. ------------------------------------------------------------
  789. SYNTAX: X <= Y
  790. DESCRIPTION: Less than or Equal
  791. PRECEDENCE: 7
  792. ------------------------------------------------------------
  793. SYNTAX: X <> Y
  794. DESCRIPTION: Not Equal
  795. PRECEDENCE: 7
  796. ------------------------------------------------------------
  797. SYNTAX: X = Y
  798. DESCRIPTION: Equal
  799. PRECEDENCE: 7
  800. ------------------------------------------------------------
  801. SYNTAX: X =< Y
  802. DESCRIPTION: Less than or Equal
  803. PRECEDENCE: 7
  804. ------------------------------------------------------------
  805. SYNTAX: X => Y
  806. DESCRIPTION: Greater than or Equal
  807. PRECEDENCE: 7
  808. ------------------------------------------------------------
  809. SYNTAX: X > Y
  810. DESCRIPTION: Greater than
  811. PRECEDENCE: 7
  812. ------------------------------------------------------------
  813. SYNTAX: X >< Y
  814. DESCRIPTION: Not Equal
  815. PRECEDENCE: 7
  816. ------------------------------------------------------------
  817. SYNTAX: X >= Y
  818. DESCRIPTION: Greater than or Equal
  819. PRECEDENCE: 7
  820. ------------------------------------------------------------