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.
 
 
 
 
 
 

1110 lines
47 KiB

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