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.A < prev    next >
Text File  |  1984-04-29  |  3KB  |  67 lines

  1.         ERROR CODE EXPLANATIONS
  2.  
  3. The system of programming error detection and reporting
  4. in TARBELL BASIC is a compromise between the need for
  5. clear error reporting, and the memory required for error
  6. detection and messages.  Some systems use error code numbers,
  7. or 1 or 2 code letters.  These usually have to be looked up
  8. in the reference manual, so they waste time.  Some use long
  9. english explanations, which are nice, but take up a lot of
  10. memory space.  TARBELL BASIC uses abbreviated messages, which
  11. are hopefully easy to remember after they're looked up the first
  12. time.
  13.  
  14. No.  Mnemonic        Description
  15.  
  16. 1    OVRFLW        Arithmetic Overflow (too large a number).
  17. 2    UNDRFLW        Arithmetic Underflow (too small a number).
  18. 3    /0            A division by zero was attempted.
  19. 4    EX>>        Exponent was too large (EXP function).
  20. 5    BIN CON >>        Number too large to convert to binary.
  21. 6    -LOG        Attempted to take log of a minus number.
  22. 7    STATE NM        Illegal statement name.
  23. 8    COMM        Illegal command.
  24. 9    VRBL AS STATE    Variable name used as statement name.
  25. 10   SYNTAX        The statement was not properly formed.
  26. 11   VRBL NM        Illegal variable name.
  27. 12   >>)        Too many right parenthesis.
  28. 13   >>(        Too many left parenthesis.
  29. 14   2 OPERS        Two operators in a row.
  30. 15   2 OPANDS        Two operands in a row.
  31. 16   ILGL FUNC        Illegal user defined function.
  32. 17   STATE AS VRBL    Statement name used as variable.
  33. 18   NEW SYMB        New symbol when in command mode.
  34. 19   NO TO        No "TO" in "FOR" statement.
  35. 20   DUPL STATE        Statement name used twice (duplicate).
  36. 21   DUPL DEF        A function was defined twice.
  37. 22   CAN'T CONT        Can't continue 'cause program was modified.
  38. 23   TAPE        An error was detected on a tape read.
  39. 24   STRING        Illegal string usage.
  40. 25   COMMA        Illegal comma or semicolon.
  41. 26   OPRND        Illegal Operand.
  42. 27   <*mem*>        Out of memory.
  43. 28   UNDIM        Undimensioned array referenced.
  44. 29   SUBSCPT>>        An array subscript was too large.
  45. 30   SUBSCPT OVFLW    Subscript overflow.
  46. 31   ASSIGN        An assignment to a non-variable (4=4).
  47. 32   STR AS NUM        A string is used where a number is needed.
  48. 33   NUM AS STR        A number is used where a string is needed.
  49. 34   CNTRL STCK        Control Stack error.
  50. 35   ON GOTO        ON...GOTO, GOSUB index out of limits.
  51. 36   <<DATA        Out of Data.
  52. 37   RCV DATA        Receive data error.
  53. 39   -SQR        The square root of a minus number is illegal.
  54. 40   LOGICAL        A true (-1) or false (0) was expected.
  55.  
  56. The message BASIC IS CRASHED indicates that the BASIC interpreter
  57. has be written into, thus making the interpreter unreliable.  This
  58. message may be inhibited by making a slight change in BASIC.
  59.  
  60.                 A
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.