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.
 
 
 
 
 
 

1175 lines
46 KiB

  1. /***************************************************************
  2. bwd_cmd.c Command Table
  3. for Bywater BASIC Interpreter
  4. Copyright (c) 1993, Ted A. Campbell
  5. Bywater Software
  6. email: tcamp@delphi.com
  7. Copyright and Permissions Information:
  8. All U.S. and international rights are claimed by the author,
  9. Ted A. Campbell.
  10. This software is released under the terms of the GNU General
  11. Public License (GPL), which is distributed with this software
  12. in the file "COPYING". The GPL specifies the terms under
  13. which users may copy and use the software in this distribution.
  14. A separate license is available for commercial distribution,
  15. for information on which you should contact the author.
  16. ***************************************************************/
  17. /*---------------------------------------------------------------*/
  18. /* NOTE: Modifications marked "JBV" were made by Jon B. Volkoff, */
  19. /* 11/1995 (eidetics@cerf.net). */
  20. /* */
  21. /* Those additionally marked with "DD" were at the suggestion of */
  22. /* Dale DePriest (daled@cadence.com). */
  23. /* */
  24. /* Version 3.00 by Howard Wulf, AF5NE */
  25. /* */
  26. /*---------------------------------------------------------------*/
  27. /* COMMAND TABLE */
  28. #include "bwbasic.h"
  29. struct bwb_command bwb_cmdtable[NUM_COMMANDS] =
  30. {
  31. {
  32. C_QUEST, /* UniqueID */
  33. "? expressions...", /* Syntax */
  34. "This is just a shortcut for PRINT.", /* Description */
  35. "?", /* Name */
  36. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  37. },
  38. {
  39. C_CALL, /* UniqueID */
  40. "CALL subroutine-name( [parameter [, ...] ] )", /* Syntax */
  41. "Calls a subroutine that was defined by SUB and END SUB.", /* Description */
  42. "CALL", /* Name */
  43. B14 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  44. },
  45. {
  46. C_CASE, /* UniqueID */
  47. "CASE constant", /* Syntax */
  48. "Introduces an element of a SELECT CASE statement.", /* Description */
  49. "CASE", /* Name */
  50. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  51. },
  52. {
  53. C_CASE_ELSE, /* UniqueID */
  54. "CASE ELSE", /* Syntax */
  55. "Introduces a default SELECT CASE element.", /* Description */
  56. "CASE ELSE", /* Name */
  57. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  58. },
  59. {
  60. C_CASE_IF, /* UniqueID */
  61. "CASE IF partial-expression", /* Syntax */
  62. "Introduces a conditional SELECT CASE element.", /* Description */
  63. "CASE IF", /* Name */
  64. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  65. },
  66. {
  67. C_CASE_IS, /* UniqueID */
  68. "CASE IS", /* Syntax */
  69. "Same as CASE IF.", /* Description */
  70. "CASE IS", /* Name */
  71. B14 | E86 /* OptionVersionBitmask */
  72. },
  73. {
  74. C_CHAIN, /* UniqueID */
  75. "CHAIN filename$", /* Syntax */
  76. "Load and execute another BASIC program, without clearing vari"
  77. "ables.", /* Description */
  78. "CHAIN", /* Name */
  79. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  80. },
  81. {
  82. C_CHANGE, /* UniqueID */
  83. "CHANGE A$ TO X | CHANGE X TO A$", /* Syntax */
  84. "Changes a string to a numeric array or a numeric array to a s"
  85. "tring.", /* Description */
  86. "CHANGE", /* Name */
  87. B14 | D64 /* OptionVersionBitmask */
  88. },
  89. {
  90. C_CLEAR, /* UniqueID */
  91. "CLEAR", /* Syntax */
  92. "Sets all numeric variables to 0, and all string variables to "
  93. "empty strings.", /* Description */
  94. "CLEAR", /* Name */
  95. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  96. },
  97. {
  98. C_CLOAD, /* UniqueID */
  99. "CLOAD [file-name$]", /* Syntax */
  100. "Loads an ASCII BASIC program into memory.", /* Description */
  101. "CLOAD", /* Name */
  102. B14 | M80 | T83 | T84 | M85 /* OptionVersionBitmask */
  103. },
  104. {
  105. C_CLOAD_, /* UniqueID */
  106. "CLOAD* ArrayName", /* Syntax */
  107. "Loads a numeric array from a file saved using CSAVE*.", /* Description */
  108. "CLOAD*", /* Name */
  109. B14 | M80 | T83 | T84 | M85 /* OptionVersionBitmask */
  110. },
  111. {
  112. C_CMDS, /* UniqueID */
  113. "CMDS", /* Syntax */
  114. "Prints a list of all implemented BASIC commands.", /* Description */
  115. "CMDS", /* Name */
  116. B14 /* OptionVersionBitmask */
  117. },
  118. {
  119. C_COMMON, /* UniqueID */
  120. "COMMON variable [, ...]", /* Syntax */
  121. "Designates variables to be passed to a CHAINed program.", /* Description */
  122. "COMMON", /* Name */
  123. B14 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  124. },
  125. {
  126. C_CONT, /* UniqueID */
  127. "CONT", /* Syntax */
  128. "Continue a BASIC program after a STOP has been executed. Pro"
  129. "gram resumes at the line after the STOP.", /* Description */
  130. "CONT", /* Name */
  131. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  132. },
  133. {
  134. C_CSAVE, /* UniqueID */
  135. "CSAVE [file-name$]", /* Syntax */
  136. "Saves the current program into the file file-name$ in ASCII f"
  137. "ormat.", /* Description */
  138. "CSAVE", /* Name */
  139. B14 | M80 | T83 | T84 | M85 /* OptionVersionBitmask */
  140. },
  141. {
  142. C_CSAVE_, /* UniqueID */
  143. "CSAVE* ArrayName", /* Syntax */
  144. "Saves a numeric array into a file.", /* Description */
  145. "CSAVE*", /* Name */
  146. B14 | M80 | T83 | T84 | M85 /* OptionVersionBitmask */
  147. },
  148. {
  149. C_DATA, /* UniqueID */
  150. "DATA constant [, ...]", /* Syntax */
  151. "Stores numeric and string constants to be accessed by READ.", /* Description */
  152. "DATA", /* Name */
  153. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  154. },
  155. {
  156. C_DEF, /* UniqueID */
  157. "DEF FNname(arg...)] = expression", /* Syntax */
  158. "Defines a single line user-written function. For multiple li"
  159. "ne functions use the FUNCTION command.", /* Description */
  160. "DEF", /* Name */
  161. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  162. },
  163. {
  164. C_DEF_SUB, /* UniqueID */
  165. "DEF SUB", /* Syntax */
  166. "An internal command that allows the BASIC program to execute "
  167. "any function as though it were a command. You do not directl"
  168. "y call this command. If your program has a line beginning w"
  169. "ith a functio name, then DEF SUB is used to execute the funct"
  170. "ion and ignore the result.", /* Description */
  171. "DEF SUB", /* Name */
  172. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  173. },
  174. {
  175. C_DEFDBL, /* UniqueID */
  176. "DEFDBL letter[-letter] [, ...]", /* Syntax */
  177. "Declares variables with single-letter names as numeric variab"
  178. "les. TODO: enforce the rnage of [MINDBL,MAXDBL].", /* Description */
  179. "DEFDBL", /* Name */
  180. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  181. },
  182. {
  183. C_DEFINT, /* UniqueID */
  184. "DEFINT letter[-letter] [, ...]", /* Syntax */
  185. "Declares variables with single-letter names as numeric variab"
  186. "les. TODO: enforce the rnage of [MININT,MAXINT].", /* Description */
  187. "DEFINT", /* Name */
  188. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  189. },
  190. {
  191. C_DEFSNG, /* UniqueID */
  192. "DEFSNG letter[-letter] [, ...]", /* Syntax */
  193. "Declares variables with single-letter names as numeric variab"
  194. "les. TODO: enforce the rnage of [MINSNG,MAXSNG].", /* Description */
  195. "DEFSNG", /* Name */
  196. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  197. },
  198. {
  199. C_DEFSTR, /* UniqueID */
  200. "DEFSTR letter[-letter] [, ...]", /* Syntax */
  201. "Declares variables with single-letter names as string variabl"
  202. "es. TODO: enforce the range of [MINLEN,MAXLEN].", /* Description */
  203. "DEFSTR", /* Name */
  204. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  205. },
  206. {
  207. C_DELETE, /* UniqueID */
  208. "DELETE line [- line]", /* Syntax */
  209. "Deletes program lines indicated by the argument(s). All prog"
  210. "ram lines have a number, which is visible with the LIST comma"
  211. "nd. If line numbers are not provided, they are assigned begi"
  212. "nning with 1.", /* Description */
  213. "DELETE", /* Name */
  214. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  215. },
  216. {
  217. C_DIM, /* UniqueID */
  218. "DIM variable( elements [, ...]) [, ...]", /* Syntax */
  219. "Specifies the dimensions of an array variables.", /* Description */
  220. "DIM", /* Name */
  221. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  222. },
  223. {
  224. C_DO, /* UniqueID */
  225. "DO", /* Syntax */
  226. "Top of a DO - LOOP structure. If the loop is not terminated "
  227. "by EXIT DO or LOOP UNTIL or LOOP WHILE, then it will loop for"
  228. "ever.", /* Description */
  229. "DO", /* Name */
  230. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  231. },
  232. {
  233. C_DO_UNTIL, /* UniqueID */
  234. "DO UNTIL expression", /* Syntax */
  235. "Top of a DO - LOOP structure. If the expression is zero, the"
  236. "n the loop is terminated.", /* Description */
  237. "DO UNTIL", /* Name */
  238. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  239. },
  240. {
  241. C_DO_WHILE, /* UniqueID */
  242. "DO WHILE expression", /* Syntax */
  243. "Top of a DO - LOOP structure. If the expression is non-zero,"
  244. " then the loop is terminated.", /* Description */
  245. "DO WHILE", /* Name */
  246. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  247. },
  248. {
  249. C_EDIT, /* UniqueID */
  250. "EDIT", /* Syntax */
  251. "implementation defined.", /* Description */
  252. "EDIT", /* Name */
  253. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  254. },
  255. {
  256. C_ELSE, /* UniqueID */
  257. "ELSE", /* Syntax */
  258. "Introduces a default condition in a multi-line IF statement.", /* Description */
  259. "ELSE", /* Name */
  260. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  261. },
  262. {
  263. C_ELSEIF, /* UniqueID */
  264. "ELSEIF", /* Syntax */
  265. "Introduces a secondary condition in a multi-line IF statement"
  266. ".", /* Description */
  267. "ELSEIF", /* Name */
  268. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  269. },
  270. {
  271. C_END, /* UniqueID */
  272. "END", /* Syntax */
  273. "Terminates program execution. If the BASIC program was execut"
  274. "ed from the operating system level, then control returns to t"
  275. "he operating system, oterwise control reuturns to the BASIC p"
  276. "rompt.", /* Description */
  277. "END", /* Name */
  278. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  279. },
  280. {
  281. C_END_FUNCTION, /* UniqueID */
  282. "END FUNCTION", /* Syntax */
  283. "Specifies the last line of a multi-line FUNCTION definition.", /* Description */
  284. "END FUNCTION", /* Name */
  285. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  286. },
  287. {
  288. C_END_IF, /* UniqueID */
  289. "END IF", /* Syntax */
  290. "Specifies the last line of a multi-line IF definition.", /* Description */
  291. "END IF", /* Name */
  292. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  293. },
  294. {
  295. C_END_SELECT, /* UniqueID */
  296. "END SELECT", /* Syntax */
  297. "Specifies the last line of a multi-line SELECT CASE definitio"
  298. "n.", /* Description */
  299. "END SELECT", /* Name */
  300. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  301. },
  302. {
  303. C_END_SUB, /* UniqueID */
  304. "END SUB", /* Syntax */
  305. "Specifies the last line of a multi-line SUB definition.", /* Description */
  306. "END SUB", /* Name */
  307. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  308. },
  309. {
  310. C_ERASE, /* UniqueID */
  311. "ERASE variable [, ...]", /* Syntax */
  312. "Eliminates arrayed variables from a program.", /* Description */
  313. "ERASE", /* Name */
  314. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  315. },
  316. {
  317. C_EXIT, /* UniqueID */
  318. "EXIT", /* Syntax */
  319. "EXIT by itself is a syntax error. Use EXIT DO, EXIT FOR, EXI"
  320. "T FUNCTION, EXIT SUB, EXIT UNTIL, or EXIT WHILE.", /* Description */
  321. "EXIT", /* Name */
  322. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  323. },
  324. {
  325. C_EXIT_DO, /* UniqueID */
  326. "EXIT DO", /* Syntax */
  327. "Immediately exits the inner-most DO-LOOP strucure.", /* Description */
  328. "EXIT DO", /* Name */
  329. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  330. },
  331. {
  332. C_EXIT_FOR, /* UniqueID */
  333. "EXIT FOR", /* Syntax */
  334. "Immediately exits the inner-most FOR-NEXT strucure.", /* Description */
  335. "EXIT FOR", /* Name */
  336. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  337. },
  338. {
  339. C_EXIT_FUNCTION, /* UniqueID */
  340. "EXIT FUNCTION", /* Syntax */
  341. "Immediately exits the inner-most multi-line FUNCTION strucure"
  342. ".", /* Description */
  343. "EXIT FUNCTION", /* Name */
  344. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  345. },
  346. {
  347. C_EXIT_SUB, /* UniqueID */
  348. "EXIT SUB", /* Syntax */
  349. "Immediately exits the inner-most multi-line SUB strucure.", /* Description */
  350. "EXIT SUB", /* Name */
  351. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  352. },
  353. {
  354. C_EXIT_UNTIL, /* UniqueID */
  355. "EXIT UNTIL", /* Syntax */
  356. "Immediately exits the inner-most UNTIL-UEND strucure.", /* Description */
  357. "EXIT UNTIL", /* Name */
  358. B14 | E86 /* OptionVersionBitmask */
  359. },
  360. {
  361. C_EXIT_WHILE, /* UniqueID */
  362. "EXIT WHILE", /* Syntax */
  363. "Immediately exits the inner-most WHILE-END strucure.", /* Description */
  364. "EXIT WHILE", /* Name */
  365. B14 | E86 /* OptionVersionBitmask */
  366. },
  367. {
  368. C_FIELD, /* UniqueID */
  369. "FIELD [#] device-number, number AS string-variable$ [, ...]", /* Syntax */
  370. "Assigns 'number' bytes in the buffer of random file 'device-n"
  371. "umber' to the variable 'string-variable$'. GET will automati"
  372. "cally update the variable, and PUT will automatically use the"
  373. " variable.", /* Description */
  374. "FIELD", /* Name */
  375. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  376. },
  377. {
  378. C_FNCS, /* UniqueID */
  379. "FNCS", /* Syntax */
  380. "Prints a list of all pre-defined BASIC functions.", /* Description */
  381. "FNCS", /* Name */
  382. B14 /* OptionVersionBitmask */
  383. },
  384. {
  385. C_FOR, /* UniqueID */
  386. "FOR variable = start TO finish [STEP increment]", /* Syntax */
  387. "Top of a FOR - NEXT structure. The loop will continue a fixe"
  388. "d number of times, which is determined by the values of start"
  389. ", finish, and increment.", /* Description */
  390. "FOR", /* Name */
  391. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  392. },
  393. {
  394. C_FUNCTION, /* UniqueID */
  395. "FUNCTION [ ( parameter [, ... ] ) ]", /* Syntax */
  396. "Top line of a multi-line FUNCTION definition. The variable n"
  397. "ames specified are local to the FUNCTION definition, and are "
  398. "initialized BYVAL when the function is invoked by another rou"
  399. "tine.", /* Description */
  400. "FUNCTION", /* Name */
  401. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  402. },
  403. {
  404. C_GO, /* UniqueID */
  405. "GO", /* Syntax */
  406. "GO by itself is a syntax error. Use GOTO or GOSUB instead.", /* Description */
  407. "GO", /* Name */
  408. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  409. },
  410. {
  411. C_GOSUB, /* UniqueID */
  412. "GOSUB line", /* Syntax */
  413. "Initiates a subroutine call to the line specified. The subro"
  414. "utine must end with RETURN. The 'line' may be a number or a "
  415. "label.", /* Description */
  416. "GOSUB", /* Name */
  417. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  418. },
  419. {
  420. C_GOTO, /* UniqueID */
  421. "GOTO line", /* Syntax */
  422. "Branches program execution to the specified line. The 'line'"
  423. " may be a number or a label.", /* Description */
  424. "GOTO", /* Name */
  425. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  426. },
  427. {
  428. C_HELP, /* UniqueID */
  429. "HELP name", /* Syntax */
  430. "Provides help on the specified 'name' which is a command name"
  431. " or function name.", /* Description */
  432. "HELP", /* Name */
  433. B14 /* OptionVersionBitmask */
  434. },
  435. {
  436. C_IF, /* UniqueID */
  437. "IF expression THEN line1 [ELSE line2]", /* Syntax */
  438. "Single line standard IF command. If the value of expression "
  439. "is non-zero, then branh to line1. If the value of expression"
  440. " is zero and ELSE is provided, then branch to line2. If the "
  441. "value of expression is zero and ELSE is not provided, continu"
  442. "e to the next line. LABELS are not allowed.", /* Description */
  443. "IF", /* Name */
  444. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  445. },
  446. {
  447. C_IF_THEN, /* UniqueID */
  448. "IF expression THEN", /* Syntax */
  449. "Top of a multi-line IF - END IF structure. If the value of e"
  450. "xpression is non-zero, then the program lines upto the next E"
  451. "LSE or ELSE IF command are executed, otherwise the program br"
  452. "anches to the next ELSE or ELSE IF command.", /* Description */
  453. "IF THEN", /* Name */
  454. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  455. },
  456. {
  457. C_INPUT, /* UniqueID */
  458. "INPUT [# device-number]|[;][\"prompt string\";] variable [, ...]"
  459. "s", /* Syntax */
  460. "Reads input from the terminal or athe file specified by devic"
  461. "e-number.", /* Description */
  462. "INPUT", /* Name */
  463. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  464. },
  465. {
  466. C_LET, /* UniqueID */
  467. "[LET] variable = expression",/* Syntax */
  468. "Assigns the value of expression to variable. The 'LET' keywo"
  469. "rd is optional.", /* Description */
  470. "LET", /* Name */
  471. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  472. },
  473. {
  474. C_LINE, /* UniqueID */
  475. "LINE INPUT [[#] device-number,][\"prompt string\";] string-vari"
  476. "able$", /* Syntax */
  477. "Reads entire line from the keyboard or a file into string-var"
  478. "iable$.", /* Description */
  479. "LINE", /* Name */
  480. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  481. },
  482. {
  483. C_LIST, /* UniqueID */
  484. "LIST line1 [- line2]", /* Syntax */
  485. "Lists BASIC program lines from 'line1' to 'line2'", /* Description */
  486. "LIST", /* Name */
  487. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  488. },
  489. {
  490. C_LOAD, /* UniqueID */
  491. "LOAD [file-name$]", /* Syntax */
  492. "Loads an ASCII BASIC program into memory.", /* Description */
  493. "LOAD", /* Name */
  494. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  495. },
  496. {
  497. C_LOOP, /* UniqueID */
  498. "LOOP", /* Syntax */
  499. "Bottom of a DO - LOOP structure. IF the loop is not terminat"
  500. "ed by EXIT DO or DO UNTIL or DO WHILE, then it will loop fore"
  501. "ver.", /* Description */
  502. "LOOP", /* Name */
  503. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  504. },
  505. {
  506. C_LOOP_UNTIL, /* UniqueID */
  507. "LOOP UNTIL", /* Syntax */
  508. "Bottom of a DO - LOOP structure. If the expression is zero, "
  509. "then the loop is terminated.", /* Description */
  510. "LOOP UNTIL", /* Name */
  511. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  512. },
  513. {
  514. C_LOOP_WHILE, /* UniqueID */
  515. "LOOP WHILE", /* Syntax */
  516. "Bottom of a DO - LOOP structure. If the expression is non-ze"
  517. "ro, then the loop is terminated.", /* Description */
  518. "LOOP WHILE", /* Name */
  519. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  520. },
  521. {
  522. C_LPRINT, /* UniqueID */
  523. "LPRINT [USING format-string$;] expressions...", /* Syntax */
  524. "Send output to the default printer which is implementation de"
  525. "fined.", /* Description */
  526. "LPRINT", /* Name */
  527. B14 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  528. },
  529. {
  530. C_LSET, /* UniqueID */
  531. "LSET string-variable$ = expression", /* Syntax */
  532. "Left-aligns the value of expression into string-variable$. I"
  533. "f the length of the value is too short, then it is padded on "
  534. "the right with spaces. If the length of the value is too lon"
  535. "g, then it is truncated on the right. This is only for use w"
  536. "ith variables assigned to a random access buffer with FIELD c"
  537. "ommand.", /* Description */
  538. "LSET", /* Name */
  539. B14 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  540. },
  541. {
  542. C_MAINTAINER, /* UniqueID */
  543. "MAINTAINER", /* Syntax */
  544. "This command is reserved for use by the Bywater BASIC maintai"
  545. "ner and does whatever the maintainer wants it to do. It is n"
  546. "ot for the BASIC programmer.", /* Description */
  547. "MAINTAINER", /* Name */
  548. B14 /* OptionVersionBitmask */
  549. },
  550. {
  551. C_MERGE, /* UniqueID */
  552. "MERGE file-name", /* Syntax */
  553. "Merges the BASIC program in file-name into the current BASIC "
  554. "program. Lines in file-name replace any matching lines in th"
  555. "e current program.", /* Description */
  556. "MERGE", /* Name */
  557. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  558. },
  559. {
  560. C_MID_, /* UniqueID */
  561. "MID$( variable$, start [, count ] ) = expression", /* Syntax */
  562. "Replaces a subtring of variable$ with expression.", /* Description */
  563. "MID$", /* Name */
  564. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  565. },
  566. {
  567. C_NAME, /* UniqueID */
  568. "NAME old-file-name AS new-file-name", /* Syntax */
  569. "Changes the name of an existing file.", /* Description */
  570. "NAME", /* Name */
  571. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  572. },
  573. {
  574. C_NEW, /* UniqueID */
  575. "NEW", /* Syntax */
  576. "Deletes the program in memory and clears all variables.", /* Description */
  577. "NEW", /* Name */
  578. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  579. },
  580. {
  581. C_NEXT, /* UniqueID */
  582. "NEXT [variable]", /* Syntax */
  583. "The bottom line of a FOR - NEXT structure.", /* Description */
  584. "NEXT", /* Name */
  585. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  586. },
  587. {
  588. C_ON, /* UniqueID */
  589. "ON expression GOTO | GOSUB line [, ...]", /* Syntax */
  590. "Branches (GOTO) or calls (GOSUB) based on the rounded value o"
  591. "f variable.", /* Description */
  592. "ON", /* Name */
  593. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  594. },
  595. {
  596. C_ON_ERROR_GOTO, /* UniqueID */
  597. "ON ERROR GOTO errline", /* Syntax */
  598. "When a trappable error occurs, execute 'GOTO errline'. "
  599. "The error handler must terminate with a RESUME command. "
  600. "If the line number is 0 (zerp), then use the default error handler. "
  601. "Valid when OPTION ERROR GOTO.", /* Description */
  602. "ON ERROR GOTO", /* Name */
  603. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  604. },
  605. {
  606. C_ON_ERROR_GOSUB, /* UniqueID */
  607. "ON ERROR GOSUB errline", /* Syntax */
  608. "When a trappable error occurs, execute 'GOSUB errline'. "
  609. "The error handler must terminate with a RETURN command. "
  610. "If the line number is 0 (zerp), then use the default error handler. "
  611. "Valid when OPTION ERROR GOSUB.", /* Description */
  612. "ON ERROR GOSUB", /* Name */
  613. B14 /* OptionVersionBitmask */
  614. },
  615. {
  616. C_ON_ERROR_RESUME_NEXT, /* UniqueID */
  617. "ON ERROR RESUME NEXT", /* Syntax */
  618. "When a trappable error occurs, execution continues with the next line. "
  619. "Valid when OPTION ERROR GOTO.", /* Description */
  620. "ON ERROR RESUME NEXT", /* Name */
  621. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  622. },
  623. {
  624. C_ON_ERROR_RETURN_NEXT, /* UniqueID */
  625. "ON ERROR RETURN NEXT", /* Syntax */
  626. "When a trappable error occurs, execution continues with the next line. "
  627. "Valid when OPTION ERROR GOSUB.", /* Description */
  628. "ON ERROR RETURN NEXT", /* Name */
  629. B14 /* OptionVersionBitmask */
  630. },
  631. {
  632. C_ON_TIMER, /* UniqueID */
  633. "ON TIMER count GOSUB line", /* Syntax */
  634. "Specifies a line (or label) to gosub when count seconds have "
  635. "elaspsed after TIMER ON is executed. The interrupt routine s"
  636. "hould end with a RETURN command. Timer events only occur in "
  637. "running BASIC programs. The resolution of the clock is imple"
  638. "mentation defined.", /* Description */
  639. "ON TIMER", /* Name */
  640. B14 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  641. },
  642. {
  643. C_OPEN, /* UniqueID */
  644. "OPEN file-name [FOR INPUT|OUTPUT|APPEND|BINARY|RANDOM] AS [#]"
  645. "device-number [LEN = record-length]", /* Syntax */
  646. "Opens a file for use. INPUT, OUTPUT, and APPEND are for text"
  647. " files. BINARY is for binary files. RANDOM is for structure"
  648. "d binary files and requires LEN. Files opened for RANDOM use"
  649. " GET and PUT.", /* Description */
  650. "OPEN", /* Name */
  651. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  652. },
  653. {
  654. C_OPTION, /* UniqueID */
  655. "OPTION ...", /* Syntax */
  656. "OPTION by itself is a syntax error.", /* Description */
  657. "OPTION", /* Name */
  658. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  659. },
  660. {
  661. C_OPTION_ANGLE_DEGREES, /* UniqueID */
  662. "OPTION ANGLE DEGREES", /* Syntax */
  663. "Configures the math functions to accept and return angles in "
  664. "degrees.", /* Description */
  665. "OPTION ANGLE DEGREES", /* Name */
  666. B14 | E86 /* OptionVersionBitmask */
  667. },
  668. {
  669. C_OPTION_ANGLE_RADIANS, /* UniqueID */
  670. "OPTION ANGLE RADIANS", /* Syntax */
  671. "Configures the math functions to accept and return angles in "
  672. "radians.", /* Description */
  673. "OPTION ANGLE RADIANS", /* Name */
  674. B14 | E86 /* OptionVersionBitmask */
  675. },
  676. {
  677. C_OPTION_ARITHMETIC_DECIMAL, /* UniqueID */
  678. "OPTION ARITHMETIC DECIMAL", /* Syntax */
  679. "Currently has no effect.", /* Description */
  680. "OPTION ARITHMETIC DECIMAL", /* Name */
  681. B14 | E86 /* OptionVersionBitmask */
  682. },
  683. {
  684. C_OPTION_ARITHMETIC_FIXED, /* UniqueID */
  685. "OPTION ARITHMETIC FIXED", /* Syntax */
  686. "Currently has no effect.", /* Description */
  687. "OPTION ARITHMETIC FIXED", /* Name */
  688. B14 | E86 /* OptionVersionBitmask */
  689. },
  690. {
  691. C_OPTION_ARITHMETIC_NATIVE, /* UniqueID */
  692. "OPTION ARITHMETIC NATIVE", /* Syntax */
  693. "Currently has no effect.", /* Description */
  694. "OPTION ARITHMETIC NATIVE", /* Name */
  695. B14 | E86 /* OptionVersionBitmask */
  696. },
  697. {
  698. C_OPTION_BASE_0, /* UniqueID */
  699. "OPTION BASE 0", /* Syntax */
  700. "Sets the lowest array subscript to 0.", /* Description */
  701. "OPTION BASE 0", /* Name */
  702. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  703. },
  704. {
  705. C_OPTION_BASE_1, /* UniqueID */
  706. "OPTION BASE 1", /* Syntax */
  707. "Sets the lowest array subscript to 1.", /* Description */
  708. "OPTION BASE 1", /* Name */
  709. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  710. },
  711. {
  712. C_OPTION_BUGS_OFF, /* UniqueID */
  713. "OPTION BUGS OFF", /* Syntax */
  714. "Disables bugs commonly found in BASIC-80 derivatives and clon"
  715. "es.", /* Description */
  716. "OPTION BUGS OFF", /* Name */
  717. B14 /* OptionVersionBitmask */
  718. },
  719. {
  720. C_OPTION_BUGS_ON, /* UniqueID */
  721. "OPTION BUGS ON", /* Syntax */
  722. "Enables bugs commonly found in BASIC-80 derivatives and clone"
  723. "s.", /* Description */
  724. "OPTION BUGS ON", /* Name */
  725. B14 /* OptionVersionBitmask */
  726. },
  727. {
  728. C_OPTION_COMMENT, /* UniqueID */
  729. "OPTION COMMENT char", /* Syntax */
  730. "Sets the comment character.", /* Description */
  731. "OPTION COMMENT", /* Name */
  732. B14 /* OptionVersionBitmask */
  733. },
  734. {
  735. C_OPTION_COMPARE_BINARY, /* UniqueID */
  736. "OPTION COMPARE BINARY", /* Syntax */
  737. "Causes string comparisons to be case-sensitive.", /* Description */
  738. "OPTION COMPARE BINARY", /* Name */
  739. B14 /* OptionVersionBitmask */
  740. },
  741. {
  742. C_OPTION_COMPARE_DATABASE, /* UniqueID */
  743. "OPTION COMPARE DATABASE", /* Syntax */
  744. "Causes string comparisons to be case-insensitive.", /* Description */
  745. "OPTION COMPARE DATABASE", /* Name */
  746. B14 /* OptionVersionBitmask */
  747. },
  748. {
  749. C_OPTION_COMPARE_TEXT, /* UniqueID */
  750. "OPTION COMPARE TEXT", /* Syntax */
  751. "Causes string comparisons to be case-insensitive.", /* Description */
  752. "OPTION COMPARE TEXT", /* Name */
  753. B14 /* OptionVersionBitmask */
  754. },
  755. {
  756. C_OPTION_COVERAGE_OFF, /* UniqueID */
  757. "OPTION COVERAGE OFF", /* Syntax */
  758. "Disables BASIC code coverage recording, displayed using the L"
  759. "IST command.", /* Description */
  760. "OPTION COVERAGE OFF", /* Name */
  761. B14 /* OptionVersionBitmask */
  762. },
  763. {
  764. C_OPTION_COVERAGE_ON, /* UniqueID */
  765. "OPTION COVERAGE ON", /* Syntax */
  766. "Enables BASIC code coverage recording, displayed using the LI"
  767. "ST command.", /* Description */
  768. "OPTION COVERAGE ON", /* Name */
  769. B14 /* OptionVersionBitmask */
  770. },
  771. {
  772. C_OPTION_DATE, /* UniqueID */
  773. "OPTION DATE format", /* Syntax */
  774. "Sets the date format string used by C strftime() for DATE$.", /* Description */
  775. "OPTION DATE", /* Name */
  776. B14 /* OptionVersionBitmask */
  777. },
  778. {
  779. C_OPTION_DISABLE_COMMAND, /* UniqueID */
  780. "OPTION DISABLE COMMAND name", /* Syntax */
  781. "Disables the specified BASIC command.", /* Description */
  782. "OPTION DISABLE COMMAND", /* Name */
  783. B14 /* OptionVersionBitmask */
  784. },
  785. {
  786. C_OPTION_DISABLE_FUNCTION, /* UniqueID */
  787. "OPTION DISABLE FUNCTION name", /* Syntax */
  788. "Disables the specified BASIC function.", /* Description */
  789. "OPTION DISABLE FUNCTION", /* Name */
  790. B14 /* OptionVersionBitmask */
  791. },
  792. {
  793. C_OPTION_DISABLE_OPERATOR, /* UniqueID */
  794. "OPTION DISABLE OPERATOR name", /* Syntax */
  795. "Disables the specified BASIC operator.", /* Description */
  796. "OPTION DISABLE OPERATOR", /* Name */
  797. B14 /* OptionVersionBitmask */
  798. },
  799. {
  800. C_OPTION_ENABLE_COMMAND, /* UniqueID */
  801. "OPTION ENABLE COMMAND name", /* Syntax */
  802. "Enables the specified BASIC command.", /* Description */
  803. "OPTION ENABLE COMMAND", /* Name */
  804. B14 /* OptionVersionBitmask */
  805. },
  806. {
  807. C_OPTION_ENABLE_FUNCTION, /* UniqueID */
  808. "OPTION ENABLE FUNCTION name", /* Syntax */
  809. "Enables the specified BASIC function.", /* Description */
  810. "OPTION ENABLE FUNCTION", /* Name */
  811. B14 /* OptionVersionBitmask */
  812. },
  813. {
  814. C_OPTION_ENABLE_OPERATOR, /* UniqueID */
  815. "OPTION ENABLE OPERATOR name", /* Syntax */
  816. "Enables the specified BASIC operator.", /* Description */
  817. "OPTION ENABLE OPERATOR", /* Name */
  818. B14 /* OptionVersionBitmask */
  819. },
  820. {
  821. C_OPTION_ERROR_GOSUB, /* UniqueID */
  822. "OPTION ERROR GOSUB", /* Syntax */
  823. "When an error occurs, GOSUB to the error handler. "
  824. "The error handler exits with RETURN.", /* Description */
  825. "OPTION ERROR GOSUB", /* Name */
  826. B14 /* OptionVersionBitmask */
  827. },
  828. {
  829. C_OPTION_ERROR_GOTO, /* UniqueID */
  830. "OPTION ERROR GOTO", /* Syntax */
  831. "When an error occurs, GOTO to the error handler. "
  832. "The error handler exits with RESUME.", /* Description */
  833. "OPTION ERROR GOTO", /* Name */
  834. B14 /* OptionVersionBitmask */
  835. },
  836. {
  837. C_OPTION_INDENT, /* UniqueID */
  838. "OPTION INDENT number", /* Syntax */
  839. "Sets indention level for LIST. Zero means no indention. Def"
  840. "ault is 2.", /* Description */
  841. "OPTION INDENT", /* Name */
  842. B14 /* OptionVersionBitmask */
  843. },
  844. {
  845. C_OPTION_LABELS_OFF, /* UniqueID */
  846. "OPTION LABELS OFF", /* Syntax */
  847. "Disables text labels.", /* Description */
  848. "OPTION LABELS OFF", /* Name */
  849. B14 /* OptionVersionBitmask */
  850. },
  851. {
  852. C_OPTION_LABELS_ON, /* UniqueID */
  853. "OPTION LABELS ON", /* Syntax */
  854. "Enables text labels.", /* Description */
  855. "OPTION LABELS ON", /* Name */
  856. B14 /* OptionVersionBitmask */
  857. },
  858. {
  859. C_OPTION_STATEMENT, /* UniqueID */
  860. "OPTION STATEMENT char", /* Syntax */
  861. "Sets the statement seperator character.", /* Description */
  862. "OPTION STATEMENT", /* Name */
  863. B14 /* OptionVersionBitmask */
  864. },
  865. {
  866. C_OPTION_STRICT_OFF, /* UniqueID */
  867. "OPTION STRICT OFF", /* Syntax */
  868. "Disables checking for implicit array creation without using t"
  869. "he DIM command.", /* Description */
  870. "OPTION STRICT OFF", /* Name */
  871. B14 /* OptionVersionBitmask */
  872. },
  873. {
  874. C_OPTION_STRICT_ON, /* UniqueID */
  875. "OPTION STRICT ON", /* Syntax */
  876. "Enables checking for implicit array creation without using th"
  877. "e DIM command.", /* Description */
  878. "OPTION STRICT ON", /* Name */
  879. B14 /* OptionVersionBitmask */
  880. },
  881. {
  882. C_OPTION_TERMINAL_ADM_3A, /* UniqueID */
  883. "OPTION TERMINAL ADM-3A", /* Syntax */
  884. "Enables ADM-3A terminal control codes for CLS, COLOR, and LOC"
  885. "ATE.", /* Description */
  886. "OPTION TERMINAL ADM-3A", /* Name */
  887. B14 /* OptionVersionBitmask */
  888. },
  889. {
  890. C_OPTION_TERMINAL_ANSI, /* UniqueID */
  891. "OPTION TERMINAL ANSI", /* Syntax */
  892. "Enables ANSI terminal control codes for CLS, COLOR, and LOCAT"
  893. "E.", /* Description */
  894. "OPTION TERMINAL ANSI", /* Name */
  895. B14 /* OptionVersionBitmask */
  896. },
  897. {
  898. C_OPTION_TERMINAL_NONE, /* UniqueID */
  899. "OPTION TERMINAL NONE", /* Syntax */
  900. "Disables terminal control codes for CLS, COLOR, and LOCATE.", /* Description */
  901. "OPTION TERMINAL NONE", /* Name */
  902. B14 /* OptionVersionBitmask */
  903. },
  904. {
  905. C_OPTION_TIME, /* UniqueID */
  906. "OPTION TIME format", /* Syntax */
  907. "Sets the time format string used by C strftime() for TIME$.", /* Description */
  908. "OPTION TIME", /* Name */
  909. B14 /* OptionVersionBitmask */
  910. },
  911. {
  912. C_OPTION_TRACE_OFF, /* UniqueID */
  913. "OPTION TRACE OFF", /* Syntax */
  914. "Disables displaying a stack trace when an ERROR occurs.", /* Description */
  915. "OPTION TRACE OFF", /* Name */
  916. B14 /* OptionVersionBitmask */
  917. },
  918. {
  919. C_OPTION_TRACE_ON, /* UniqueID */
  920. "OPTION TRACE ON", /* Syntax */
  921. "Enables displaying a stack trace when an ERROR occurs.", /* Description */
  922. "OPTION TRACE ON", /* Name */
  923. B14 /* OptionVersionBitmask */
  924. },
  925. {
  926. C_OPTION_VERSION, /* UniqueID */
  927. "OPTION VERSION [version] ", /* Syntax */
  928. "Selects a combination of OPTION settings and enables certain "
  929. "commands and functions. If no version is specified, displays"
  930. " a list of the available versions.", /* Description */
  931. "OPTION VERSION", /* Name */
  932. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  933. },
  934. {
  935. C_PRINT, /* UniqueID */
  936. "PRINT [# device-number,][USING format-string$;] expressions.."
  937. ".", /* Syntax */
  938. "Sends output to the console or a file.", /* Description */
  939. "PRINT", /* Name */
  940. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  941. },
  942. {
  943. C_QUIT, /* UniqueID */
  944. "QUIT", /* Syntax */
  945. "Exits to the operating system.", /* Description */
  946. "QUIT", /* Name */
  947. B14 | D64 | E78 | E86 /* OptionVersionBitmask */
  948. },
  949. {
  950. C_READ, /* UniqueID */
  951. "READ variable [, ...]", /* Syntax */
  952. "Reads values from DATA statements.", /* Description */
  953. "READ", /* Name */
  954. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  955. },
  956. {
  957. C_REM, /* UniqueID */
  958. "REM ...", /* Syntax */
  959. "Remark.", /* Description */
  960. "REM", /* Name */
  961. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  962. },
  963. {
  964. C_RENUM, /* UniqueID */
  965. "RENUM", /* Syntax */
  966. "Implementation defined.", /* Description */
  967. "RENUM", /* Name */
  968. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  969. },
  970. {
  971. C_RESTORE, /* UniqueID */
  972. "RESTORE [line]", /* Syntax */
  973. "Resets the line used for the next READ statement. 'line' may"
  974. " be either a number or a label.", /* Description */
  975. "RESTORE", /* Name */
  976. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  977. },
  978. {
  979. C_RESUME, /* UniqueID */
  980. "RESUME [ 0 | line | NEXT ]", /* Syntax */
  981. "Used in an error handler to specify the next line to execute."
  982. " RESUME and RESUME 0 branch to ERL. RESUME NEXT branches to"
  983. " the line after ERL. RESUME line branches to the specified l"
  984. "ine. 'line' may be either a number or a label.", /* Description */
  985. "RESUME", /* Name */
  986. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  987. },
  988. {
  989. C_RETURN, /* UniqueID */
  990. "RETURN", /* Syntax */
  991. "Concludes a subroutine called by GOSUB.", /* Description */
  992. "RETURN", /* Name */
  993. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  994. },
  995. {
  996. C_RSET, /* UniqueID */
  997. "RSET string-variable$ = expression", /* Syntax */
  998. "Right-aligns the value of expression into string-variable$. "
  999. "If the length of the value is too short, then it is padded on"
  1000. " the left with spaces. If the length of the value is too lon"
  1001. "g, then it is truncated on the right. This is only for use w"
  1002. "ith variables assigned to a random access buffer with FIELD c"
  1003. "ommand.", /* Description */
  1004. "RSET", /* Name */
  1005. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1006. },
  1007. {
  1008. C_RUN, /* UniqueID */
  1009. "RUN [line | file-name$]", /* Syntax */
  1010. "RUN executes the program in memory from the start. RUN line "
  1011. "exexecutes the program in memory beginning at 'line'. RUN fi"
  1012. "le-name$ loads a new BAASIC program and executes the program "
  1013. "from the start.", /* Description */
  1014. "RUN", /* Name */
  1015. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1016. },
  1017. {
  1018. C_SAVE, /* UniqueID */
  1019. "SAVE [file-name$]", /* Syntax */
  1020. "Saves the current program into the file file-name$ in ASCII f"
  1021. "ormat.", /* Description */
  1022. "SAVE", /* Name */
  1023. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1024. },
  1025. {
  1026. C_SELECT, /* UniqueID */
  1027. "SELECT", /* Syntax */
  1028. "SELECT by itself is a syntax error. Use SELECT CASE instead."
  1029. "", /* Description */
  1030. "SELECT", /* Name */
  1031. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1032. },
  1033. {
  1034. C_SELECT_CASE, /* UniqueID */
  1035. "SELECT CASE expression", /* Syntax */
  1036. "Introduces a multi-line conditional selection statement.", /* Description */
  1037. "SELECT CASE", /* Name */
  1038. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1039. },
  1040. {
  1041. C_STOP, /* UniqueID */
  1042. "STOP", /* Syntax */
  1043. "Interrupts program execution and displays the line number of "
  1044. "the STOP command. For use when debugging BASIC programs. Wh"
  1045. "ether STOP issues a SIGINT signal is implementation defined.", /* Description */
  1046. "STOP", /* Name */
  1047. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1048. },
  1049. {
  1050. C_SUB, /* UniqueID */
  1051. "SUB name [ ( parameter [,...] ) ]", /* Syntax */
  1052. "Top line of a multi-line SUB definition. The variable names "
  1053. "specified are local to the SUB definition, and are initialize"
  1054. "d BYVAL when the subroutine is invoked by another routine.", /* Description */
  1055. "SUB", /* Name */
  1056. B14 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1057. },
  1058. {
  1059. C_SWAP, /* UniqueID */
  1060. "SWAP variable, variable", /* Syntax */
  1061. "Swaps the values of two variables. Both variables must be of "
  1062. "the same type.", /* Description */
  1063. "SWAP", /* Name */
  1064. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1065. },
  1066. {
  1067. C_SYSTEM, /* UniqueID */
  1068. "SYSTEM", /* Syntax */
  1069. "Exits to the operating system.", /* Description */
  1070. "SYSTEM", /* Name */
  1071. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1072. },
  1073. {
  1074. C_TIMER, /* UniqueID */
  1075. "TIMER", /* Syntax */
  1076. "TIMER by itself is a syntax error. "
  1077. "Use TIMER OFF, TIMER ON, or TIMER STOP instead.", /* Description */
  1078. "TIMER", /* Name */
  1079. B14 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1080. },
  1081. {
  1082. C_TIMER_OFF, /* UniqueID */
  1083. "TIMER OFF", /* Syntax */
  1084. "TIMER OFF terminates the timer interrupt.", /* Description */
  1085. "TIMER OFF", /* Name */
  1086. B14 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1087. },
  1088. {
  1089. C_TIMER_ON, /* UniqueID */
  1090. "TIMER ON", /* Syntax */
  1091. "TIMER ON enables the timer interrupt. When the specified seconds have elapsed, TIMER STOP "
  1092. "is internaly executed before the interrupt is taken. TIMER ON"
  1093. " should be executed just before the RETURN command if you wan"
  1094. "t the interrupt to occur again.", /* Description */
  1095. "TIMER ON", /* Name */
  1096. B14 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1097. },
  1098. {
  1099. C_TIMER_STOP, /* UniqueID */
  1100. "TIMER STOP", /* Syntax */
  1101. "TIMER STOP disables the interrupt, but the count continues.", /* Description */
  1102. "TIMER STOP", /* Name */
  1103. B14 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1104. },
  1105. {
  1106. C_UEND, /* UniqueID */
  1107. "UEND", /* Syntax */
  1108. "Bottom of a UNTIL - UEND structure.", /* Description */
  1109. "UEND", /* Name */
  1110. B14 /* OptionVersionBitmask */
  1111. },
  1112. {
  1113. C_UNTIL, /* UniqueID */
  1114. "UNTIL expression", /* Syntax */
  1115. "Top of a UNTIL - UEND structure. If the expression is zero, "
  1116. "then the loop is terminated.", /* Description */
  1117. "UNTIL", /* Name */
  1118. B14 /* OptionVersionBitmask */
  1119. },
  1120. {
  1121. C_USER_LBL, /* UniqueID */
  1122. "USER LBL", /* Syntax */
  1123. "An internal command that allows the BASIC program to find a u"
  1124. "ser label. You do not directly call this command. If your p"
  1125. "rogram has a line with a label, then USER LBL is used to mark"
  1126. " the line.", /* Description */
  1127. "USER LBL", /* Name */
  1128. B14 | D64 | E78 | M80 | T83 | T84 | M85 | E86 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1129. },
  1130. {
  1131. C_VARS, /* UniqueID */
  1132. "VARS", /* Syntax */
  1133. "Prints a list of all global variables.", /* Description */
  1134. "VARS", /* Name */
  1135. B14 /* OptionVersionBitmask */
  1136. },
  1137. {
  1138. C_WEND, /* UniqueID */
  1139. "WEND", /* Syntax */
  1140. "Bottom of a WHILE - WEND structure.", /* Description */
  1141. "WEND", /* Name */
  1142. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1143. },
  1144. {
  1145. C_WHILE, /* UniqueID */
  1146. "WHILE", /* Syntax */
  1147. "Top of a WHILE - WEND structure. If the expression is non-ze"
  1148. "ro, then the loop is terminated.", /* Description */
  1149. "WHILE", /* Name */
  1150. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1151. },
  1152. {
  1153. C_WRITE, /* UniqueID */
  1154. "WRITE [# device-number,] element [, .... ]", /* Syntax */
  1155. "Outputs variables to the screen or to a file.", /* Description */
  1156. "WRITE", /* Name */
  1157. B14 | M80 | T83 | T84 | M85 | M88 | M90 | M91 | M92 | M93 | M95 | M97 | M98 /* OptionVersionBitmask */
  1158. },
  1159. };
  1160. /* EOF */