home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / language / armforth / !ARMforth / Manual / BasicSpecs < prev    next >
Encoding:
Text File  |  1990-02-18  |  6.6 KB  |  602 lines

  1.                   BASIC Keywords
  2.                   --------------
  3.  
  4.  
  5. BEAT
  6.    ( ... n)
  7.    n = current beat value
  8.  
  9.  
  10. BEATS=
  11.    (n ... )
  12.    n = new value of beat counter
  13.  
  14.  
  15. BEATS
  16.    ( ... n)
  17.    n = current value of beat counter
  18.  
  19.  
  20. BGET#
  21.    (n ... b)
  22.    n = file handle
  23.    b = byte read from file
  24.  
  25.  
  26. BPUT#1
  27.    (n\b ... )
  28.    n = file handle
  29.    b = byte to write
  30.  
  31.  
  32. BPUT#2
  33.    (n\addr ... )
  34.    n = file handle
  35.    addr = string to write
  36.  
  37.  
  38. CIRCLE
  39.    (n1\n2\n3 ... )
  40.    n1 = centre x
  41.    n2 = centre y
  42.    n3 = radius
  43.  
  44.  
  45. CIRCLE-FILL
  46.    (n1\n2\n3 ... )
  47.    n1 = centre x
  48.    n2 = centre y
  49.    n3 = radius
  50.  
  51.  
  52. CLG
  53.    ( ... )
  54.  
  55.  
  56. CLOSE#
  57.    (n ... )
  58.    n = file handle
  59.  
  60.  
  61. CLS
  62.    ( ... )
  63.  
  64.  
  65. COLOUR1
  66.    (n ... )
  67.    n = logical colour
  68.  
  69.  
  70. COLOUR2
  71.    (n1\n2 ... )
  72.    n1 = logical colour
  73.    n2 = physical colour
  74.  
  75.  
  76. COLOUR3
  77.    (n1\n2\n3\n4 ... )
  78.    n1 = logical colour
  79.    n2 = red component
  80.    n3 = green component
  81.    n4 = blue component
  82.    Only top 4 bits of n2,n3,n4 valid
  83.  
  84.  
  85. DRAW
  86.    (n1\n2 ... )
  87.    n1 = x
  88.    n2 = y
  89.  
  90.  
  91. DRAW-BY
  92.    (n1\n2 ... )
  93.    n1 = x
  94.    n2 = y
  95.  
  96.  
  97. ELLIPSE
  98.    (n1\n2\n3\n4 ... )
  99.    n1 = centre x
  100.    n2 = centre y
  101.    n3 = semi-major axis length
  102.    n4 = semi-minor axis length
  103.  
  104.  
  105. ELLIPSE-FILL
  106.    (n1\n2\n3\n4 ... )
  107.    n1 = centre x
  108.    n2 = centre y
  109.    n3 = semi-major axis length
  110.    n4 = semi-minor axis length
  111.  
  112.  
  113. EOF#
  114.    (n ... b)
  115.    n = file handle
  116.    b = true if end of file
  117.  
  118.  
  119. EXT#
  120.    (n1 ... n2)
  121.    n1 = file handle
  122.    n2 = extent of file
  123.  
  124.  
  125. EXT#=
  126.    (n1\n2 ... )
  127.    n1 = file handle
  128.    n2 = new extent
  129.  
  130.  
  131. FALSE
  132.    ( ... b)
  133.    b = 0
  134.  
  135.  
  136. FLOOD-FILL
  137.    (n1\n2 ... )
  138.    n1 = x
  139.    n2 = y
  140.  
  141.  
  142. FLOOD-FILL-BY
  143.    (n1\n2 ... )
  144.    n1 = x
  145.    n2 = y
  146.  
  147.  
  148. GCOL1
  149.    (n ... )
  150.    n = logical colour
  151.  
  152.  
  153. GCOL2
  154.    (n1\n2 ... )
  155.    n1 = gcol action
  156.    n2 = colour
  157.  
  158.  
  159. GET
  160.    ( ... n)
  161.    n = key value
  162.  
  163.  
  164. GET$
  165.    (addr ... addr)
  166.    addr = string to receive char
  167.  
  168.  
  169. GET$#
  170.    (addr\n ... addr)
  171.    addr = string address
  172.    n = file handle
  173.  
  174.  
  175. INKEY
  176.    (n1 ... n2)
  177.    n1 = centi-second time limit
  178.    n2 = ascii code or &FF if timeout
  179.    or
  180.    n1 = INKEY key number
  181.    n2 = &FF if key (or ESCAPE) pressed, else 0
  182.  
  183.  
  184. INSTR
  185.    (addr1\addr2\n1 ... n2)
  186.    addr1 = string
  187.    addr2 = substring
  188.    n1 = search start pos
  189.  
  190.  
  191. INSTR"
  192.    inline INSTR
  193.  
  194.  
  195. LEFT$
  196.    (addr1\addr2\n ... addr1)
  197.    addr1 = destination string
  198.    addr2 = source string
  199.    n = number of chars
  200.  
  201.  
  202. LEN
  203.    (addr ... n)
  204.    addr = string
  205.    n = length
  206.  
  207.  
  208. LINE
  209.    (n1\n2\n3\n4 ... )
  210.    n1 = start x
  211.    n2 = start y
  212.    n3 = endx
  213.    n4 = end y
  214.  
  215.  
  216. MID$
  217.    (addr1\addr2\n1\n2 ... addr1)
  218.    addr1 = destination string
  219.    addr2 = source string
  220.    n1 = start pos
  221.    n2 = length
  222.  
  223.  
  224. MODE
  225.    (n ... )
  226.    n = new mode
  227.  
  228.  
  229. MOUSE
  230.    ( ... n1\n2\n3)
  231.    n1 = mouse x
  232.    n2 = mouse y
  233.    n3 = mouse buttons state
  234.  
  235.  
  236. MOUSE-ON
  237.    ( ... )
  238.  
  239.  
  240. MOUSE-ON1
  241.    (n ... )
  242.    n = mouse pointer number
  243.  
  244.  
  245. MOUSE-OFF
  246.    ( ... )
  247.  
  248.  
  249. MOUSE-COLOUR
  250.    (n1\n2\n3\n4 ... )
  251.    n1 = logical colour
  252.    n2 = red component
  253.    n3 = green component
  254.    n4 = blue component
  255.  
  256.  
  257. MOUSE-TO
  258.    (n1\n2 ... )
  259.    n1 = new mouse x
  260.    n2 = new mouse y
  261.  
  262.  
  263. MOUSE-STEP1
  264.    (n ... )
  265.    n = x and y multiplier
  266.  
  267.  
  268. MOUSE-STEP2
  269.    (n1\n2 ... )
  270.    n1 = x multiplier
  271.    n2 = y multiplier
  272.  
  273.  
  274. MOUSE-RECTANGLE
  275.    (n1\n2\n3\n4 ... )
  276.    n1 = left x
  277.    n2 = bottom y
  278.    n3 = right x
  279.    n4 = top y
  280.  
  281.  
  282. MOVE
  283.    (n1\n2 ... )
  284.    n1 = x
  285.    n2 = y
  286.  
  287.  
  288. MOVE-BY
  289.    (n1\n2 ... )
  290.    n1 = x
  291.    n2 = y
  292.  
  293.  
  294. OPENIN
  295.    (addr ... n)
  296.    addr = file name
  297.    n = file handle or 0 on failure
  298.  
  299.  
  300. OPENIN"
  301.    Inline OPENIN
  302.  
  303.  
  304. OPENOUT
  305.    (addr ... n)
  306.    addr = file name
  307.    n = file handle or 0 on failure
  308.  
  309.  
  310. OPENOUT"
  311.    Inline OPENOUT
  312.  
  313.  
  314. OPENUP
  315.    (addr ... n)
  316.    addr = file name
  317.    n = file handle or 0 on failure
  318.  
  319.  
  320. OPENUP"
  321.    Inline OPENUP
  322.  
  323.  
  324. ORIGIN
  325.    (n1\n2 ... )
  326.    n1 = x
  327.    n2 = y
  328.  
  329.  
  330. PLOT
  331.    (n1\n2\n3 ... )
  332.    n1 = plot action
  333.    n2 = x
  334.    n3 = y
  335.  
  336.  
  337. POINT
  338.    (n1\n2 ... )
  339.    n1 = x
  340.    n2 = y
  341.  
  342.  
  343. POINT-BY
  344.    (n1\n2 ... )
  345.    n1 = x
  346.    n2 = y
  347.  
  348.  
  349. POS
  350.    ( ... n)
  351.    n = cursor x
  352.  
  353.  
  354. PRINT#1
  355.    (n\addr ... )
  356.    n = file handle
  357.    addr = string to write
  358.  
  359.  
  360. PRINT#1"
  361.    Inline PRINT#1
  362.  
  363.  
  364. PRINT#2
  365.    (n1\n2 ... )
  366.    n1 = file handle
  367.    n2 = integer to write
  368.  
  369.  
  370. PTR#
  371.    (n1 ... n2)
  372.    n1 = file handle
  373.    n2 = file pos
  374.  
  375.  
  376. PTR#=
  377.    (n1\n2 ... )
  378.    n1 = file handle
  379.    n2 = new file pos
  380.  
  381.  
  382. RECTANGLE
  383.    (n1\n2\n3\n4 ... )
  384.    n1 = corner x
  385.    n2 = corner y
  386.    n3 = width
  387.    n4 = height
  388.  
  389.  
  390. RECTANGLE-FILL
  391.    (n1\n2\n3\n4 ... )
  392.    n1 = corner x
  393.    n2 = corner y
  394.    n3 = width
  395.    n4 = height
  396.  
  397.  
  398. RECTANGLE-TO
  399.    (n1\n2\n3\n4\n5\n6 ... )
  400.    n1 = corner x
  401.    n2 = corner y
  402.    n3 = width
  403.    n4 = height
  404.    n5 = destination lower left x
  405.    n6 = destination lower left y
  406.  
  407.  
  408. RECTANGLE-FILL-TO
  409.    (n1\n2\n3\n4\n5\n6 ... )
  410.    n1 = corner x
  411.    n2 = corner y
  412.    n3 = width
  413.    n4 = height
  414.    n5 = destination lower left x
  415.    n6 = destination lower left y
  416.  
  417.  
  418. RIGHT$
  419.    (addr1\addr2\n ... addr1)
  420.    addr1 = destination string
  421.    addr2 = source string
  422.    n = length
  423.  
  424.  
  425. SOUND-ON
  426.    ( ... )
  427.  
  428.  
  429. SOUND-OFF
  430.    ( ... )
  431.  
  432.  
  433. SOUND1
  434.    (n1\n2\n3\n4 ... )
  435.    n1 = channel number
  436.    n2 = amplitude
  437.    n3 = pitch
  438.    n4 = duration
  439.  
  440.  
  441. SOUND2
  442.    (n1\n2\n3\n4\n5 ... )
  443.    n1 = channel number
  444.    n2 = amplitude
  445.    n3 = pitch
  446.    n4 = duration
  447.    n5 = delay
  448.  
  449.  
  450. STEREO
  451.    (n1\n2 ... )
  452.    n1 = channel number
  453.    n2 = stereo position
  454.  
  455.  
  456. STR$
  457.    (n\addr ... addr)
  458.    n = number
  459.    addr = destination string
  460.  
  461.  
  462. STR$~
  463.    (n\addr ... addr)
  464.    n = number
  465.    addr = destination string
  466.  
  467.  
  468. STRING$
  469.    (addr1\n\addr2 ... addr1)
  470.    addr1 = destination string
  471.    n = number of copies
  472.    addr2 = source string
  473.  
  474.  
  475. STRING$"
  476.    Inline STRING$
  477.  
  478.  
  479. SUM1
  480.    (addr ... n)
  481.    addr = numeric array
  482.    n = sum of elements
  483.  
  484.  
  485. SUM2
  486.    (addr1\addr2 ... addr1)
  487.    addr1 = destination string
  488.    addr2 = source string array
  489.  
  490.  
  491. TAB1
  492.    (n ... )
  493.    n = new x cursor position
  494.  
  495.  
  496. TAB2
  497.    (n1\n2 ... )
  498.    n1 = new x cursor position
  499.    n2 = new y cursor position
  500.  
  501.  
  502. TEMPO=
  503.    (n ... )
  504.    n = new beat counter rate
  505.  
  506.  
  507. TEMPO
  508.    ( ... n)
  509.    n = current beat counter rate
  510.  
  511.  
  512. TIME=
  513.    (n ... )
  514.    n = new time value
  515.  
  516.  
  517. TIME
  518.    ( ... n)
  519.    n = current time value
  520.  
  521.  
  522. TIME$=
  523.    (addr ... )
  524.    addr = string containing new time
  525.  
  526.  
  527. TIME$
  528.    ( ... addr)
  529.    addr = string to receive current time
  530.  
  531.  
  532. TINT=
  533.    (n ... )
  534.    n = new tint value
  535.    Only sets tint for graphics foreground
  536.  
  537.  
  538. TINT
  539.    (n1\n2 ... n3)
  540.    n1 = x coord
  541.    n2 = y coord
  542.    n3 = tint value
  543.  
  544.  
  545. TRUE
  546.    ( ... b)
  547.    b = 1
  548.  
  549.  
  550. VAL
  551.    (addr ... )
  552.    addr = string containing expression
  553.  
  554.  
  555. VDU1
  556.    (b ... )
  557.    b = output byte
  558.  
  559.  
  560. VDU2
  561.    (w ... )
  562.    w = output word
  563.  
  564.  
  565. VDU3
  566.    (n ... )
  567.    n = output long word
  568.  
  569.  
  570. VDU4
  571.    (b1\...\n ... )
  572.    b1... = output bytes
  573.    n = number of bytes
  574.  
  575.  
  576. VDU5
  577.    (w1\...\n ... )
  578.    w1... = output words
  579.    n = number of words
  580.  
  581.  
  582. VDU6
  583.    (n1\...\n2 ... )
  584.    n1... = output long words
  585.    n2 = number of long words
  586.  
  587.  
  588. VOICES
  589.    (n ... )
  590.    n = number of sound channels
  591.  
  592.  
  593. VPOS
  594.    ( ... n)
  595.    n = vertical cursor position
  596.  
  597.  
  598. WAIT
  599.    ( ... )
  600.  
  601.  
  602.