home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / d / exthelp / !StrongHlp / HelpData / Basic / Helpdata next >
Encoding:
Text File  |  1992-10-27  |  19.9 KB  |  852 lines

  1. AND
  2. Bitwise logical and between two integers.
  3. Priority 6.ABS
  4. This function gives the absolute
  5. value of a number:
  6. ABS(-3.14) = 3.14ACS
  7. This function gives the arc 
  8. cosine of a number.
  9. This is the inverse function of <COS>:
  10.          ACS(COS(x)) = xADVAL
  11. This function gives the 
  12. value of the specified
  13. analogue port or buffer.ASC
  14. This function gives the
  15. ASCII code of the first
  16. character of a string:
  17.   ASC("A") = 65
  18.   ASC("AB") = 65ATN       
  19. This function gives the 
  20. arc tangent of a number.
  21.    ATN(<TAN>(x)) = xAUTO
  22. This command automatically generates
  23. line numbers for typing in a program.
  24. AUTO [base number[,step size]]APPEND filename.
  25. This command appends
  26. a file to the program
  27. and renumbers the new lines.BGET#channel
  28. This function gives
  29. the next byte from
  30. the specified file.BPUT
  31. BPUT#channel,number
  32.   put byte to open file.
  33.  
  34. BPUT#channel,string[;]
  35.   put string to open file,
  36.   with[out] newline.BEATS
  37. BEATS x
  38.   Set the number of microbeats in a bar.
  39.  
  40. x = BEATS
  41.   Gives the current number of microbeats.BEAT
  42. This function gives the
  43. current microbeat number.COLOUR
  44. COLOUR a [TINT t]
  45.   Set text foreground colour
  46.   [and tint] (background 128+a).
  47.  
  48. COLOUR a,p
  49.   Set palette entry for logical
  50.   colour a to physical colour p.
  51.  
  52. COLOUR a,r,g,b
  53.   Set palette entry for a 
  54.   to r, g, b physical colour.CALL address {,parameter}
  55. Call machine code routine at the given address.
  56. Before the routine is entered, the assembler 
  57. registers are set up as follows:
  58.   R0  = A%
  59.   R1  = B%
  60.   R2  = C%
  61.   R3  = D%
  62.   R4  = E%
  63.   R5  = F%
  64.   R6  = G%
  65.   R7  = H%
  66.   R8  = Pointer to BASIC's workspace
  67.   R9  = Pointer to <parameter list=>call0>
  68.   R10 = Number of parameters
  69.   R11 = Pointer to BASIC's string accumulator
  70.   R12 = BASIC's LINE pointer
  71.   R13 = BASIC's stack
  72.   R14 = Link back to BASIC, and <environment info=>call3> ptr.CASE
  73. CASE expr OF
  74.   WHEN expr{,expr}^ : lines
  75.   WHEN expr{,expr}^ : lines
  76. OTHERWISE
  77.   lines
  78. ENDCASECHAIN name
  79. Load and run a new Basic program.
  80. If used from within a Basic program,
  81. this program is discarded.CHR$ x
  82. This function gives
  83. the one character string
  84. of the supplied ASCII code.CLEAR
  85. Forget all variables.CLOSE#channel
  86. Close file previously opened with
  87. OPEN<IN=>OPENIN>/<UP=>OPENUP>/<OUT=>OPENOUT>#channel.CLG
  88. Clear graphics screen
  89. to current graphical
  90. backround colour.CLS       
  91. Clear text screen to 
  92. current background colour.COS x
  93. This function gives the
  94. cosine of a number.COUNT
  95. This function gives the number
  96. of characters PRINTed since
  97. the last newline.CIRCLE
  98. CIRCLE [FILL] x,y,r
  99.   Draw circle outline [solid].DATA      
  100. Introduces line of DATA to be <READ>.
  101. The list of items is separated by commas.
  102.  
  103. <LOCAL> DATA, <RESTORE> DATA: save and restore current DATA pointer.DEG       
  104. This function gives the value in 
  105. degrees of a number in radians.
  106.        DEG 3.14 = 180DEF
  107. DEF <FN>|<PROC>name [(parameter list)].
  108. Define function or procedure
  109. End function with =expression.
  110. End procedure with ENDPROC.DELETE start,end
  111. This command deletes all lines
  112. between the specified numbers.a DIV b
  113. Integer division, rounded towards zero.
  114. Priority 3.DIM
  115. DIM fred(100,100)
  116.   Create and initialise an array.
  117.  
  118. DIM fred% 100
  119.   Allocate space for a byte array etc.
  120.  
  121. DIM(fred())
  122.   Function gives the number of dimensions.
  123.  
  124. DIM(fred(),n)
  125.   Function gives the size of the n'th dimension.DRAW      
  126. DRAW [BY] x,y
  127.   Graphics draw to [relative by] x,y.ENDPROC   
  128. End of procedure definition.EDIT      
  129. This command calls
  130. the ARM BASIC Editor.
  131. (Rubbish.. Don't use..)ENDWHILE
  132. End of <WHILE> structure.ENDCASE   
  133. End of <CASE> structure.ENDIF
  134. End of <IF> structure.END
  135. END
  136.   Statement marking end of program execution.
  137.  
  138. END = expression
  139.   Alter amount of memory allocated to BASIC.
  140.  
  141. x = END
  142.   Gives the end address of memory used.ENVELOPE
  143. ENVELOPE takes 14 numeric 
  144. parameters separated by commas.ELSE
  145. Part of the <IF>
  146. or <ON> structure.EVAL
  147. This function evaluates
  148. a string: EVAL("2*X+1").ERL       
  149. This function gives the line
  150. number of the last error.ERROR
  151. Part of ON ERROR
  152.         LOCAL ERROR
  153.     and RESTORE ERROR statements.
  154. Cause an error: ERROR [EXT] number,string.EOF#channel
  155. This function gives TRUE
  156. if at end of open file;
  157. else FALSEa EOR b
  158. Bitwise logical exclusive-or
  159. between two integers.
  160. Priority 7.ERR
  161. This function gives the error
  162. number of the last error.EXP x
  163. This function gives the 
  164. exponential of a number.
  165.     <LN>(EXP(x)) = x
  166.     EXP(<LN>(x)) = xEXT#channel
  167. x = EXT#channel
  168.   Gives the length (extent)
  169.   of an open file.
  170.  
  171. EXT#channel = expression
  172.   Sets the length of an open file.ELLIPSE
  173. ELLIPSE [FILL] x,y,maj,min[,angle]
  174.   Draw ellipse outline [solid].FOR
  175. FOR variable = start value TO limit value [STEP step size]
  176.   statements..
  177. NEXT [variable]FALSE     
  178. This function gives the logical
  179. value 'false' i.e. 0.FILL      
  180. FILL [BY] x,y
  181.   Flood fill from [relative to] point x,y.FN
  182. Call a function with FNfred(x,y)
  183. Define one with <DEF> FNfred(a,b).GOTO line nr     
  184. Continue execution at specified line.
  185. Don't use this! Please! Use of line numbers
  186. should be avoided at all costs.GET
  187. x = GET
  188.   Gives the ASCII value of the
  189.   next input character.
  190.  
  191. x$ = GET$
  192.   Gives the next input character
  193.   as a one character string.
  194.  
  195. x$ = GET$#channel
  196.   Gives next string from the file.GOSUB line nr
  197. Call subroutine at given line number.
  198. Don't use this! Please! Use of line numbers
  199. should be avoided at all costs.GCOL
  200. GCOL a [TINT t]
  201.   Set graphics foreground colour 
  202.   [and tint] (background 128+a).
  203.  
  204. GCOL action,a [TINT t]
  205.   Set graphics fore|background
  206.   colour and action.HIMEM
  207. This psuedo-variable reads or sets the
  208. address of the end of BASIC's memory.HELP      
  209. This command gives help on 
  210. usage of the interpreter.INPUT
  211. INPUT [LINE]['|<TAB>|<SPC>]["display string"][,|;]variable
  212.   Input from user.
  213.   INPUT LINE ... can also be written as LINE INPUT ...
  214.  
  215. INPUT#channel,list of variables
  216.   Input data from open file.IF        
  217. Single line if:
  218.   IF expression [THEN] statements [ELSE statements].
  219.  
  220. Block if:
  221.   IF expression THEN
  222.     lines
  223.   [ELSE lines]
  224.   ENDIFINKEY
  225.  
  226. INKEY$ nr = CHR$(INKEY nr)
  227.  
  228. INKEY 0 to 32767
  229.   Function waits nr centiseconds to read character.
  230.  
  231. INKEY -255 to -1
  232.   Function checks specific key for TRUE|FALSE.
  233.  
  234. INKEY -256
  235.   Function gives operating system number.INT nr 
  236. This function gives the nearest
  237. integer less than or equal to the number:
  238.           INT  3.14 =  3
  239.           INT -3.14 = -4INSTR
  240. INSTR(string,sub string [,start pos])
  241.   Find sub string position.
  242.   
  243.        INSTR("ABC","C") = 3
  244.        INSTR("ABC","X") = 0INSTALL filename
  245. Permanently install a function 
  246. and procedure library.LIST
  247. This command lists the program:
  248. LIST [start line][,[end line]] [IFpattern].
  249.   List lines in the given range.
  250.   If no range, then list all lines.
  251.   If just start line: list this one line
  252.   If start line,: list all lines from this one.
  253.   If [IFpattern] : only list lines containing pattern
  254.  
  255. See <LISTO> for how lines will be printed.LISTO number.
  256. Bits mean:
  257.  0: space before line
  258.  1: indent structure
  259.  2: split lines at :
  260.  3: don't list line number
  261.  4: list tokens in lower case
  262.  
  263. Default options are %0000LINE
  264. LINE x1,y1,x2,y2
  265.   Draw a line from x1,y1 to x2,y2
  266.   Equivalent to:
  267.     MOVE x1,y1
  268.     DRAW x2,y2
  269.  
  270. Part of <INPUT> LINE or LINE INPUT statement.LOAD
  271. This command loads a new program,
  272. replacing the old one.LOMEM
  273. This psuedo-variable reads or sets the
  274. address of the start of the variables.LOCAL
  275. LOCAL list of variables
  276.   Make things private to function or procedure.
  277.  
  278. LOCAL DATA
  279.   Save DATA pointer on stack.
  280.   Only a LOCAL ERROR should come after this.
  281.  
  282. LOCAL ERROR
  283.   Save error control status on stack.
  284.   Must be last LOCAL statement.LEFT$
  285. LEFT$(string,nr)
  286.   Gives leftmost nr of characters from string.
  287.   
  288. LEFT$(string)
  289.   Gives leftmost LEN-1 characters.
  290.   
  291. LEFT$(string variable [,count]) = string2
  292.   Overwrite all [or count] characters from start,
  293.   with characters from string2.LEN
  294. This function gives the
  295. length of a string.
  296.     LEN"A" = 1
  297.     LEN""  = 0LET
  298. Optional part of assignment.
  299.       LET A% = 42
  300.       A% = 42LOG
  301. This function gives the common
  302. logarithm (base 10) of a number.
  303.       LOGx = <LN>(x)/LN(10)LN x
  304. This function gives the natural
  305. logarithm (base e) of a number.
  306.   LN(e^x) = x,  e = 2.718....LIBRARY filename
  307. Functions and procedures of the
  308. named program can be used.LVAR
  309. This command lists all
  310. variables in use.MID$
  311. MID$(string,position)
  312.   Gives all of string starting from position.
  313.  
  314. MID$(string,position,count)
  315.   Gives some of string from position.
  316.  
  317. MID$(string variable,position[,count]) = string2
  318.   Overwrite all [or count] characters in 
  319.   string variable, with characters from string2.MODE
  320. MODE nr
  321.   Set screen mode.
  322. nr = MODE
  323.   Gives the current screen mode.MOD
  324. a MOD b
  325.   Remainder after integer division
  326.   between two integers. Priority 3.
  327.  
  328. MOD array()
  329.   The MOD function gives the square root
  330.   of the sum of the squares
  331.   of all the elements in a numeric array.MOVE
  332. MOVE [BY] x,y
  333.   Graphics move to [relative by] x,y.MOUSE
  334. MOUSE x,y,z[,t]
  335.   Sets x,y to mouse position;
  336.   z to button state [t to time].
  337.  
  338. MOUSE COLOUR a,r,g,b
  339.   Set mouse palette entry for a 
  340.   to r, g, b physical colour.
  341.   
  342. MOUSE OFF
  343.   Turn mouse pointer off.
  344.   
  345. MOUSE ON [a]
  346.   Sets mouse pointer 1 [or a].
  347.   
  348. MOUSE RECTANGLE x,y,width,height
  349.   Constrain mouse movement to inside rectangle.
  350.   
  351. MOUSE STEP a[,b]
  352.   Sets mouse step multiplier to a,a [or a,b].
  353.   
  354. MOUSE TO x,y
  355.   Positions mouse and pointer at x,y.NEXT
  356. NEXT [variable[,variable]^]
  357.   Closes one or several <FOR>..NEXT structures.NEW
  358. This command erases
  359. the current program.NOT x
  360. This function gives the number
  361. with all bits inverted (0 and 1 exchanged).
  362.  NOT  %0000000000000000000000000000001 (1)
  363.     = %1111111111111111111111111111110 (-2)OLD
  364. This command recovers the
  365. program just after a <NEW>.ON
  366. ON
  367.   Cursor on.
  368.  
  369. ON ERROR [LOCAL|OFF]
  370.   Define error handler.
  371.  
  372. ON expression GOTO|GOSUB|PROC.... ELSE
  373.   Call from specified list item.
  374.   Don't use GOTO or GOSUB! Please!
  375.   Use of line numbers should be 
  376.   avoided at all costs.OFF
  377. OFF
  378.   Turn cursor off.
  379.  
  380. Part of <TRACE> OFF, 
  381. ON <ERROR> OFF statements.OF
  382. Part of the <CASE> statement.ORIGIN x,y
  383. Sets x,y as the new
  384. graphics 0,0 point.OR
  385. Bitwise logical or between
  386. two integers. Priority 7.x = OPENIN filename
  387. The function opens a file
  388. for inputx = OPENOUT filename
  389. The function opens a file
  390. for outputx = OPENUP filename
  391. The function opens a file
  392. for input and output.OSCLI string    
  393. Give string to Operating
  394. System Command Line Interpreter.OTHERWISE 
  395. Part of <CASE> structure.OVERLAY array$()
  396. Set an array of filenames
  397. for overlay libraries.
  398. (Only one of the given libraries
  399.  will be loaded at any given time)PRINT
  400. PRINT ['|<TAB>|<SPC>]["display string"][expression][;]
  401.   Print things in fields defined by @%.
  402.  
  403. PRINT#channel,list of expressions
  404.   Print data to open file.PAGE
  405. This psuedo-variable reads or sets
  406. the address of the start of the program.PTR#channel
  407. x = PTR#channel
  408.   Gives the position in a file.
  409.   
  410. PTR#channel= x 
  411.   Sets the position in a file.PI
  412. This function gives the value
  413. of 'pi' (3.1415926535).PLOT n,x,y
  414. Graphics operation <n=>SWI.os_plot0>.POINT
  415. x = POINT(x,y)
  416.   Gives the logical colour
  417.   of a graphics point.
  418.   See also <TINT>
  419.  
  420. POINT [BY] x,y
  421.   Set pixel at [relative to] x,y.
  422.  
  423. POINT TO x,y
  424.   Position pointer at x,y,
  425.   if not linked to mouse.PROC
  426. PROCfred(x,y)
  427.   Call a procedure.
  428.  
  429. DEF PROCfred(a,b)
  430.   Define a procedure.POS
  431. This function gives
  432. the x-coordinate 
  433. of the text cursor.QUIT
  434. QUIT
  435.   Leave the interpreter.
  436.  
  437. x = QUIT
  438.  Gives TRUE if BASIC was entered
  439.  with a -quit option.RETURN
  440. End of a <GOSUB> subroutine.REPEAT
  441. REPEAT
  442.   lines
  443. UNTIL boolean exprREPORT
  444. REPORT
  445.   Print last error message.
  446.  
  447. x$ = REPORT$
  448.   Gives last error string.READ
  449. READ list of variables
  450.   Read the variables in turn
  451.   from DATA statements.REM
  452. Ignores everything until a colon or end
  453. of line. Note that to REM out a line
  454. like PRINT "x:" will cause problems due
  455. to the colon in the string.RUN
  456. Clear variables, 
  457. and start execution
  458. at beginning of program.RAD x
  459. This function gives the value
  460. in radians of a number in degrees.
  461.     RAD(180) = 3.1415...
  462.     <DEG>(RAD(x)) = xRESTORE
  463. RESTORE [+][number]
  464.   Restore the data pointer
  465.   to first or given line, or
  466.   move forward number lines 
  467.   from the start of the next line.
  468.  
  469. RESTORE DATA
  470.   Restore DATA pointer from stack.
  471.  
  472. RESTORE ERROR
  473.   Restore error control status from stack.RIGHT$
  474. RIGHT$(string,number)
  475.   Gives rightmost number 
  476.   of characters from string.
  477.  
  478. RIGHT$(string)
  479.   Gives rightmost character.
  480.  
  481. RIGHT$(string variable [,count]) = string2
  482.   Overwrite characters at end of
  483.   string variable, with all [or count]
  484.   characters from string2 RECTANGLE
  485. RECTANGLE [FILL] xlo,ylo,width[,height]
  486.           [TO xlo,ylo]
  487.   Draw a rectangle outline [solid],
  488.   or copy/move the rectangle.RENUMBER [base,[step]]
  489. This command renumbers 
  490. the lines in the program.
  491. Default values for
  492. base and step, is 10.STEP
  493. Part of the <FOR> structure.SAVE [filename]
  494. This command saves the current program.
  495. If filename is omitted, and first line 
  496. in program is 10 REM >string,
  497. this string is used instead.SGN x
  498. This function gives the values
  499.   -1 if x is negative
  500.    0 if x is zero
  501.    1 if x is positiveSIN x 
  502. This function gives
  503. the sine of a number.
  504. x is given in radians.SQR
  505. This function gives the
  506. square root of a number.
  507.     SQR(X*X) = XSOUND
  508. SOUND channel,amplitude,pitch,duration [,start beat]
  509.   Make a sound.
  510.  
  511. SOUND ON|OFF
  512.  Enable|disable sounds.SPC n
  513. In <PRINT> or <INPUT> statements:
  514. prints out n spaces.STR$[~] nr
  515. Gives string representation
  516. [in hex if ~] of a number.STRING$(nr,string)
  517. Gives string replicated
  518. nr times.STOP
  519. Stop program.STEREO channel,pos
  520. Set the stereo position
  521. for a channel.SUM array()
  522. This function gives 
  523. the sum of all elements
  524. in an array.SUMLEN array$()
  525. Gives the total length
  526. of all elements
  527. of a string array.SWAP var1,var2
  528. Exchange the contents 
  529. of the two variables.
  530.    SWAP A%,B%
  531. is equivalent to
  532.    tmp% = A%
  533.    A%   = B%
  534.    B%   = tmp%SYS
  535. SYS expr {,expr}^ [TO var1 {,varn}^ [;var2]]
  536. The SYS statement calls one of the <SWI=>SWI.$> routines
  537. in the operating system, or in a extension module.TAN nr
  538. This function gives
  539. the tangent of a number.
  540.  TAN x = <SIN> x / <COS> xTAB
  541. In <PRINT> or <INPUT> statements:
  542. TAB(n)
  543.   Move text cursor to column n.
  544.   PRINT TAB(10)"column 10"
  545.   
  546. TAB(x,y)
  547.   Move text cursor to
  548.   screen position x,y.
  549.   PRINT TAB(0,0)"Upper left corner"TEMPO
  550. TEMPO expr
  551.   Set the sound microbeat tempo.
  552.  
  553. x = TEMPO
  554.   Gives the current microbeat tempo.THEN
  555. Part of the <IF> structureTIME
  556. Read/Set clock:
  557.  
  558.  TIME = 12345
  559.     x = TIME
  560. TIME$ = "Tue, 10 Dec 1991.18:51:50"
  561.    x$ = TIME$TINT
  562. TINT a,t
  563.   Set the tint for <COLOUR>|<GCOL>|fore|back a
  564.   to t in 256 colour modes.
  565.  
  566. a = TINT(x,y)
  567.   Gives the tint of a point in 256 colour modes.TO
  568. Part of <FOR> structure.TOP
  569. Gives the address 
  570. of the end 
  571. of the program.TRACE
  572. TRACE [STEP] ON|OFF|PROC|nr
  573.   Trace [in single step mode] on or off
  574.   or procedure or function calls 
  575.   or lines below the number.TRUE
  576. This function gives 
  577. the logical value 'true' i.e. -1.TWINO nr
  578. This command converts the program
  579. to text with a <LIST option=>LISTO>,
  580. and calls Twin.TWIN
  581. This command converts
  582. the program to text,
  583. and calls Twin.UNTIL
  584. Part of <REPEAT> structure.USR adr
  585. This function gives the value
  586. returned by the machine code routine
  587. at the given address.VDU
  588. VDU <nr=>VDU.$> {,|;[|]nr} [,|; or |]
  589.   List of values to be sent to vdu.
  590.   , : preceding value is 8 bit.
  591.   ; : preceding value is 16 bit.
  592.   | : 8 bytes of zeroes.VAL str$
  593. This function gives the numeric
  594. value of a textual string.
  595.      VAL "42" = 42VPOS
  596. This function gives
  597. the y-coordinate
  598. of the text cursor.VOICES expr
  599. Set the number of
  600. sound voice channels.VOICE channel,string
  601. Assign a named sound algorithm
  602. to the voice channel.WHILE
  603. WHILE expr
  604.   lines
  605. ENDWHILEWHEN
  606. Part of <CASE> structure.WAIT
  607. Wait for vertical sync.WIDTH expr
  608. Set width of output.ASN
  609. This function gives the
  610. arc sine of a number.
  611. This is the inverse function of <SIN>:
  612.          ASN(SIN(x)) = xIndex
  613. #Table 23 10
  614. <ABS       >
  615. <ACS       >
  616. <ADVAL     >
  617. <AND       >
  618. <APPEND    >
  619. <ASC       >
  620. <ASN       >
  621. <ATN       >
  622. <AUTO      >
  623. <BEAT      >
  624. <BEATS     >
  625. <BGET      >
  626. <BPUT      >
  627. <CALL      >
  628. <CASE      >
  629. <CHAIN     >
  630. <CHR       >
  631. <CIRCLE    >
  632. <CLEAR     >
  633. <CLG       >
  634. <CLOSE     >
  635. <CLS       >
  636. COLOR     
  637. <COLOUR    >
  638. <COS       >
  639. <COUNT     >
  640. <DATA      >
  641. <DEF       >
  642. <DEG       >
  643. <DELETE    >
  644. <DIM       >
  645. <DIV       >
  646. <DRAW      >
  647. <EDIT      >
  648. <ELLIPSE   >
  649. <ELSE      >
  650. <END       >
  651. <ENDCASE   >
  652. <ENDIF     >
  653. <ENDPROC   >
  654. <ENDWHILE  >
  655. <ENVELOPE  >
  656. <EOF       >
  657. <EOR       >
  658. <ERL       >
  659. <ERR       >
  660. <ERROR     >
  661. <EVAL      >
  662. <EXP       >
  663. <EXT       >
  664. <FALSE     >
  665. <FILL      >
  666. <FN        >
  667. <FOR       >
  668. <GCOL      >
  669. <GET       >
  670. <GOSUB     >
  671. <GOTO      >
  672. <HELP      >
  673. <HIMEM     >
  674. <IF        >
  675. <INKEY     >
  676. <INPUT     >
  677. <INSTALL   >
  678. <INSTR     >
  679. <INT       >
  680. <LEFT      >
  681. <LEN       >
  682. <LET       >
  683. <LIBRARY   >
  684. <LINE      >
  685. <LIST      >
  686. <LISTO     >
  687. <LN        >
  688. <LOAD      >
  689. <LOCAL     >
  690. <LOG       >
  691. <LOMEM     >
  692. <LVAR      >
  693. <MID       >
  694. <MOD       >
  695. <MODE      >
  696. <MOUSE     >
  697. <MOVE      >
  698. <NEW       >
  699. <NEXT      >
  700. <NOT       >
  701. <OF        >
  702. <OFF       >
  703. <OLD       >
  704. <ON        >
  705. <OPENIN    >
  706. <OPENOUT   >
  707. <OPENUP    >
  708. <OR        >
  709. <ORIGIN    >
  710. <OSCLI     >
  711. <OTHERWISE >
  712. <OVERLAY   >
  713. <PAGE      >
  714. <PI        >
  715. <PLOT      >
  716. <POINT     >
  717. <POS       >
  718. <PRINT     >
  719. <PROC      >
  720. <PTR       >
  721. <QUIT      >
  722. <RAD       >
  723. <READ      >
  724. <RECTANGLE >
  725. <REM       >
  726. <RENUMBER  >
  727. <REPEAT    >
  728. <REPORT    >
  729. <RESTORE   >
  730. <RETURN    >
  731. <RIGHT     >
  732. <RND       >
  733. <RUN       >
  734. <SAVE      >
  735. <SGN       >
  736. <SIN       >
  737. <SOUND     >
  738. <SPC       >
  739. <SQR       >
  740. <STEP      >
  741. <STEREO    >
  742. <STOP      >
  743. <STR       >
  744. <STRING    >
  745. <SUM       >
  746. <SUMLEN    >
  747. <SWAP      >
  748. <SYS       >
  749. <TAB       >
  750. <TAN       >
  751. <TEMPO     >
  752. <THEN      >
  753. <TIME      >
  754. <TINT      >
  755. <TO        >
  756. <TOP       >
  757. <TRACE     >
  758. <TRUE      >
  759. <TWIN      >
  760. <TWINO     >
  761. <UNTIL     >
  762. <USR       >
  763. <VAL       >
  764. <VDU       >
  765. <VOICE     >
  766. <VOICES    >
  767. <WAIT      >
  768. <WHEN      >
  769. <WHILE     >
  770. <WIDTH     >
  771. #EndTableRND
  772. x = RND
  773.   Gives a random integer.
  774.  
  775. x = RND(n) where n\<0 
  776.   Initialise random number
  777.   generator based on n.
  778.  
  779. x = RND(0)
  780.   Last RND(1) value.
  781. x = RND(1)
  782.   Random real 0..1.
  783.   
  784. RND(n) where n>1
  785.   Random integer between 1 and INT(n).Parameter list:
  786.   0  Address of last parameter
  787.   4  <Type=>call1> of last parameter
  788.   8  Address of last but one parameter
  789.  12  <Type=>call1> of last but one parameter
  790.   .
  791.   .Parameter-type:
  792. Type Example    Address points to
  793. ---- ---------- -------------------------------------
  794. &000 ?x         Byte-aligned byte
  795. &004 !x,x%,x(n) Byte-aligned word
  796. &005 |x,x,x(n)  Byte-aligned 5-byte real
  797. &080 x$,$(n)    Byte-aligned address-word,length-byte
  798. &081 $x         String, terminated by 13
  799. &104 x%()       Word-aligned ptr to integer <array=>call2>
  800. &105 x()        Word-aligned ptr to real <array=>call2>
  801. &180 x$()       Word-aligned ptr to string <array=>call2>Array:
  802.   0   Subscript limit 1st dimension.
  803.   4   Subscript limit 2nd dimension.
  804.   .
  805.   .
  806.   n   0
  807.   n+4 Total nr of entries.
  808.   n+8 Array elements..
  809.  
  810.  
  811. DIM x(I-1,J-1,K-1) :
  812.  
  813. Address of x(i,j,k) :
  814.   ((i*J+j)*K+k)*element_size + n+8Environment info:
  815.   0  B CALL2REAL   Return address.
  816.   4  STRACC        String accumulator
  817.   8  PAGE          Current PAGE value
  818.  12  TOP           Current TOP value
  819.  16  LOMEM         Current variable start
  820.  20  HIMEM         Current stack end
  821.  24  MEMLIMIT      Limit of available memory
  822.  28  FSA           Free space start
  823.  32  TALLY         Value of COUNT
  824.  36  TIMEOF        not used
  825.  40  ESCWORD       Exception flag word
  826.  44  WIDTHLOC      Value of WIDTH
  827.  48  B VARIND      Get value of L-value
  828.  52  B STOREA      Store value into L-value
  829.  56  B STSTORE     Store string into type 128 string
  830.  60  B LVBLNK      Convert string name into L-value addr and type
  831.  64  B CREATE      Create new variable
  832.  68  B EXPR        Use expr analyser on string
  833.  72  B MATCH       Lexical analyse source string to dest string
  834.  76  B TOKENADDR   Ptr to string for given token
  835.  80  0
  836.  84  9             Nr of additional routines present.
  837.  88  B FSTA
  838.  92  B FLDA
  839.  96  B FADD
  840. 100  B FSUB
  841. 104  B FMUL
  842. 108  B FDIV
  843. 112  B FLOAT
  844. 116  B FIX
  845. 120  B FSQRTOPT
  846. Set BASIC assembler options
  847. Bit:  Meaning when set:
  848. ----  -----------------------------------
  849.   0   Assembly listing enabled
  850.   1   Assembler errors enabled
  851.   2   Assembled code placed at O% instead of P%
  852.   3   Check if assembled code exceeds memory limit L%