home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / SIMTEL / CPMUG / CPMUG031.ARK / TBASIC.B2 < prev    next >
Text File  |  1984-04-29  |  2KB  |  73 lines

  1. <variable list>
  2. A sequence of variable names, seperated by commas or semicolons.
  3.  
  4. <logical constant>
  5. A constant which has the value of either -1 (true) or 0 (false).
  6. Notice that in some systems, any integer other than zero is 
  7. considered true.  This can produce an ambiguity, however, in
  8. that a NOT TRUE operation could produce a TRUE value.
  9.  
  10. <logical operator>
  11. AND, OR, and NOT are the logical operators.  When the AND
  12. operator is between two logical constants, the combination
  13. is true if both values are true.  When the OR operator is
  14. between two logical expressions, the combination is
  15. true if either value is true.  When the NOT operator is 
  16. before a logical expression, the combination produces a TRUE
  17. value if the expression were FALSE, and a FALSE value if the
  18. expression were TRUE.  The logical operators all perform
  19. as if they were operating on each bit of a 16-bit
  20. binary number, with all bits operated on in parallel.
  21. Examples:  2 AND 3 produces 3
  22.        1 OR 4  produces 5
  23.        NOT 0 produces -1
  24.  
  25.  
  26.  
  27. <logical variable>
  28. A variable whose value is either -1 (true) or 0 (false).
  29.  
  30. <logical expression>
  31. An expression which evaluates to either a -1 (true) or 0 (false).
  32.  
  33. Examples:  
  34.  
  35.     LET TRUE=-1:LET FALSE=0
  36.     TRUE AND TRUE  produces TRUE
  37.     TRUE AND FALSE produces FALSE
  38.     FALSE AND TRUE produces FALSE
  39.     FALSE AND FALSE produces FALSE
  40.     TRUE OR TRUE produces TRUE
  41.     TRUE OR FALSE produces TRUE
  42.     FALSE OR TRUE produces TRUE
  43.     FALSE OR FALSE produces FALSE
  44.     NOT TRUE produces FALSE
  45.     NOT FALSE produces TRUE
  46.  
  47. <line descriptor>
  48. A sequence of numerals and letters (not punctuation), which
  49. starts with the first character position (left-hand margin)
  50. in a TARBELL BASIC statement line, and which is terminated
  51. by either a space or a tab (ctl-I), and which is not one of
  52. the reserved words in Appendix H.  If the descriptor is in
  53. a statement referencing another statement, a + or - offset
  54. may be included.
  55.  
  56. <line descriptor list>
  57. A sequence of line descriptors, seperated by commas.
  58.  
  59.  
  60.  
  61.  
  62.                 B-2
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.