home *** CD-ROM | disk | FTP | other *** search
- Invoking BASIC-E
- BASIC-E Statements
- BASIC-E Functions
- Differences between BASIC-E and CBASIC
- BASIC-E Error Messages
- CBASIC: Compiler Error Messages
- CBASIC: Run-Time Error Messages -- Warnings
- CBASIC: Run-Time Error Messages -- Error Codes
- :Invoking BASIC-E
-
- BASIC-E is invoked by typing the following --
-
- EBASIC filename $o
-
- wherσá 'filenameº i≤ thσ namσ oµ thσ sourcσ filσ 'filename.BASº t∩á bσ ì
- compiled and 'o' is one or more of the following options --
-
- A List Productions (for compiler debugging); normally OFF
- B List only source statements with errors; normally OFF
- C Check syntax only; don't create .INT file; normally OFF
- D Convert lowercase to uppercase; normally ON
- E Generate line number code; normally OFF
-
- After compilation, the program may then be executed by --
-
- ERUN filename
-
- where 'filename' is the name of the intermediate code file 'filename.INT'.
- :BASIC-E Statements
-
- The following statements are valid in BASIC-E --
-
- FOR NEXT FILE GOTO LET
- CLOSE GOSUB INPUT ON PRINT
- READ RESTORE RETURN OUT RANDOMIZE
- STOP DATA DEF DIM END
- IF REM ELSE THEN
-
- :BASIC-E Functions
-
- The following built-in functions are valid in BASIC-E --
-
- ABS ASC ATN CHR$ COS
- COSH FRE INP INT LEFT$
- LEN LOG MID$ POS RIGHT$
- RND SGN SIN SINH STR$
- SQR TAB TAN VAL EXP
-
- :Differences between BASIC-E and CBASIC
-
- Thσá followinτá feature≤ arσ no⌠ availablσ iε BASIC-E¼á bu⌠á the∙á arσ ì
- available in CBASIC --
-
- 1. PEEK or POKE
- 2. PRINT USINGè 3. CALL to machine code programs
- 4. LPRINT
-
- :BASIC-E Error Messages
-
- Sincσá BASIC-┼ i≤ ß "subsetó oµ CBASIC¼á refe≥ t∩ thσ CBASI├ hel≡ filσ ì
- for information on the BASIC-E error messages.
-
- Most¼á bu⌠á no⌠ all¼á BASIC-┼ erro≥ message≤ arσ covereΣ iε thi≤á hel≡ ì
- file.
- :CBASIC: Compiler Error Messages
-
- Text Messages
-
- NO SOURCE FILE: <FILENAME>.BAS
- Thσá compile≥ coulΣ no⌠ locatσ ß sourcσ filσ useΣ iε eithe≥á ßá CBASI├ ì
- command or an INCLUDE directive.
-
- PROGRAM CONTAINS n UNMATCHED FOR STATEMENT(S)
- There are n FOR statements for which a NEXT could not be found.
-
- PROGRAM CONTAINS n UNMATCHED WHILE STATEMENT(S)
- There are n WHILE statements for which a WEND could not be found.
-
- WARNING: INVALID CHARACTER IGNORED
- Thσ previou≤ linσ contain≤ aε invaliΣ ASCI╔ character╗á thi≤ characte≥ ì
- is ignored by the compiler, and a question mark is printed in its place.
-
-
-
- 2-Letter Error Codes
-
- CE -- Close Error
- The intermediate (.INT) file could not be closed.
-
- DE -- Disk Error
- A disk error occurred while trying to read the .BAS file.
-
- DF -- Disk Full
- Therσá wa≤ n∩ spacσ oε thσ disδ o≥ thσ disδ director∙ wa≤á full«á Thσ ì
- .INT file was not created.
-
- DL -- Duplicate Line number
- Thσ samσ linσ numbe≥ wa≤ useΣ oε tw∩ differen⌠ lines«á Othe≥ compile≥ ì
- error≤á ma∙á causσ ß D╠ erro≥ messagσ t∩ bσ printeΣ eveε iµ duplicatσá linσ ì
- numbers do not exist.
-
- DP -- Defined Previously
- A variable in a DIM statement was previously defined.
-
-
- EF -- Exponential Format
- ┴ numbe≥ iε exponentia∞ forma⌠ wa≤ inpu⌠ witΦ n∩ digit≤ followinτá thσ ì
- E.
-
- FD -- Function Definition
- ┴ functioε namσ tha⌠ ha≤ beeε previousl∙ defineΣ i≤ beinτ redefineΣ iε ì
- a DEF statement.
-
- FI -- FOR Index
- Aεá expressioε whicΦ i≤ no⌠ aε unsubscripteΣ numeriπ variablσ i≤ beinτ ì
- used as a FOR loop index.
-
- FN -- Function parameter Number
- A function reference contains an incorrect number of parameters.
-
- FP -- Function Parameter type
- ┴ functioε referencσ paramete≥ typσ doe≤ no⌠ matcΦ thσ paramete≥á typσ ì
- used in the function's DEF statement.
-
-
- FU -- Function Undefined
- A function has been referenced before it has been defined.
-
- IE -- IF Expression
- Aεá expressioεá useΣá immediatel∙ followinτ aε I╞á evaluate≤á t∩á typσ ì
- string. Only type numeric is permitted.
-
- IF -- In File
- ┴á variablσá useΣá iε ß FIL┼ statemen⌠ i≤ oµ typσ numeriπá wherσá typσ ì
- string is required.
-
- IP -- Input Prompt
- An input prompt string is not surrounded by quotes.
-
- IS -- Invalid Subscript
- A subscripted variable was referenced before it was dimensioned.
-
- IU -- Invalid Use
- A variable defined as an array is used with no subscripts.
-
-
- MF -- Mixed Format
- An expression evaluates to type string when type numeric is required.
-
- MM -- Mixed Mode
- Variable≤á oµá typσ strinτ anΣ typσ numeriπ arσ combineΣ iεá thσá samσ ì
- expression.
-
- NI -- NEXT Index
- ┴ variablσ referenceΣ b∙ ß NEX╘ statemen⌠ doe≤ no⌠ matcΦ thσá variablσ ì
- referenced by the associated FOR statement.
-
- NU -- NEXT Unexpected
- A NEXT statement occurs without an associated FOR statement.
-
- OO -- ON Overflow
- More than 25 ON statements were used in the program.
-
-
- SE -- Syntax Error
- The source line contains a syntax error.
-
- SN -- Subscript Number
- A subscripted variable contains an incorrect number of subscripts.
-
- SO -- Syntax Overflow
- Thσá expressioε i≤ to∩ comple° anΣ shoulΣ bσ simplifieΣ anΣ placeΣá oε ì
- more than one line.
-
- TO -- Table Overflow
- Thσá prograφá i≤á to∩á largσ fo≥ thσá system«á Thσá prograφá mus⌠á bσ ì
- simplified or the system size increased.
-
- UL -- Undefined Line number
- A line number that does not exist has been referenced.
-
- US -- Undefined String
- A string has been terminated by a carriage return rather than quotes.
-
-
- VO -- Variable Overflow
- Variable names are too long for one statement.
- This should not occur.
-
- WE -- WHILE Error
- The expression immediately following a WHILE statement is not numeric.
-
- WU -- WHILE Undefined
- A WEND statement occurs without an associated WHILE statement.
- :CBASIC: Run-Time Error Messages -- Warnings
-
- Tw∩ textua∞ run-timσ erro≥ message≤ arσ presenteΣ b∙ CRUN:
-
- NO INTERMEDIATE FILE
- ┴á filσ namσ wa≤ no⌠ specifieΣ witΦ thσ CRU╬ command¼á o≥ n∩á filσá oµ ì
- typσ .IN╘ anΣ thσ specifieΣ filσ namσ wa≤ founΣ oε disk.
-
- IMPROPER INPUT - REENTER
- Thi≤á messagσá occur≤ wheε thσ field≤ entereΣ froφ thσ consolσ d∩á no⌠ ì
- matcΦá thσá fielΣ specifieΣ iε thσ INPU╘ statement«á Thi≤ caεá occu≥á wheε ì
- fielΣ type≤ d∩ no⌠ matcΦ o≥ thσ numbe≥ oµ field≤ entereΣ i≤ differen⌠á froφ ì
- thσá numbe≥á oµá field≤á specified«á Al∞ field≤á specifieΣá b∙á thσá INPU╘ ì
- statemen⌠ mus⌠ bσ reentered.
-
- 2-Letter Warning Codes
-
- DZ -- Divide by Zero
- ┴ numbe≥ wa≤ divideΣ b∙ zero«á Thσ resul⌠ i≤ se⌠ t∩ thσ larges⌠ valiΣ ì
- CBASI├ number.
-
- FL -- Field Length
- ┴á fielΣá lengtΦ greate≥ thaε 25╡ byte≤ wa≤ encountereΣ durinτ ßá REA─ ì
- LINE« Onl∙ thσ firs⌠ 25╡ character≤ oµ thσ recorΣ arσ retained.
-
- LN -- Logarithm error
- Thσá argumen⌠á giveε iε thσ LO╟ functioε wa≤ zer∩á o≥á negative«á Thσ ì
- valuσ oµ thσ argumen⌠ i≤ returned.
-
- NE -- NEgative number
- ┴á negativσá numbe≥á wa≤á specifieΣ followinτ thσá raisσá t∩á ßá powe≥ ì
- operato≥ (^)« Thσ absolutσ valuσ i≤ useΣ iε thσ calculation.
-
-
- OF -- OverFlow
- ┴ calculatioε produceΣ ß numbe≥ to∩ large«á Thσ resul⌠ i≤ se⌠ o⌠á thσ ì
- larges⌠ valiΣ CBASI├ number.
-
- SQ -- SQuare root error
- ┴á negativσá numbe≥ wa≤ specifieΣ iε thσ SQ╥ function«á Thσá absolutσ ì
- valuσ i≤ used.
- :CBASIC: Run-Time Error Messages -- Error Codes
-
- AC -- AsCii error
- Thσ strinτ useΣ a≤ thσ argumen⌠ iε aε AS├ functioε evaluateΣ t∩ ß nul∞ ì
- string.
-
- CE -- Close Error
- An error occurred upon closing a file.
-
- CU -- Close Undefined file
- ┴ closσ statemen⌠ specifieΣ ß filσ numbe≥ tha⌠ wa≤ no⌠ active.
-
- DF -- Defined File
- Aεá OPE╬ o≥ CREAT┼ wa≤ specifieΣ witΦ ß filσ numbe≥ tha⌠á wa≤á alread∙ ì
- active.
-
- DU -- Delete Undefined file
- ┴ DELET┼ statemen⌠ specifieΣ ß filσ numbe≥ tha⌠ wa≤ no⌠ active.
-
-
- DW -- Disk Write error
- Aεá erro≥ occurreΣ whilσ writinτ t∩ ß file«á Thi≤ occur≤ wheεá eithe≥ ì
- thσ director∙ o≥ thσ disδ i≤ full.
-
- EF -- End of File
- ┴á reaΣá pas⌠ thσ enΣ oµ filσ occurreΣ oε ß filσ fo≥ whicΦ n∩á I╞á EN─ ì
- statemen⌠ ha≤ beeε executed.
-
- ER -- Error in Record
- Aεá attemp⌠á wa≤á madσ t∩ writσ ß recorΣ oµ lengtΦá greate≥á thaεá thσ ì
- maximuφá recorΣá sizσ specifieΣ iε thσ associateΣá OPEN¼á CREATE¼á o≥á FIL┼ ì
- statement.
-
- FR -- File Rename
- Aε attemp⌠ wa≤ madσ t∩ renamσ ß filσ t∩ aε existinτ filσ name.
-
- FU -- File Undefined
- Aε attemp⌠ wa≤ madσ t∩ reaΣ o≥ writσ t∩ ß filσ tha⌠ wa≤ no⌠ active.
-
-
- IR -- Invalid Record number
- A record number less than one was specified.
-
- LW -- Line Width
- ┴á linσá widtΦá les≤ thaε ▒ o≥ greate≥ thaε 13│ wa≤á specifieΣá iεá aε ì
- LPRINTE╥ WIDT╚ statement.
-
-
- ME -- MAKE Error
- Aεá erro≥ occurreΣ whilσ creatinτ o≥ extendinτ ß filσ becausσ thσ disδ ì
- director∙ wa≤ full.
-
- MP -- MATCH Parameter
- Thσ thirΣ paramete≥ iε ß MATC╚ functioε wa≤ zer∩ o≥ negative.
-
- NF -- Number of FILE
- Thσ filσ numbe≥ specifieΣ wa≤ les≤ thaε ▒ o≥ greate≥ thaε 20.
-
-
- NM -- No Memory
- There was insufficient memory to load the program.
-
- NN -- No Number field
- Aε attemp⌠ wa≤ madσ t∩ prin⌠ ß numbe≥ witΦ ß PRIN╘ USIN╟ statemen⌠ bu⌠ ì
- therσ wa≤ no⌠ ß numeriπ datß fielΣ iε thσ USIN╟ string.
-
- NS -- No String field
- Aε attemp⌠ wa≤ madσ t∩ prin⌠ ß strinτ witΦ ß PRIN╘ USIN╟ statemen⌠ bu⌠ ì
- therσ wa≤ no⌠ ß strinτ fielΣ iε thσ USIN╟ string.
-
- OD -- Overflow Data
- ┴á REA─á statemen⌠ wa≤ executeΣ witΦ n∩ DAT┴ available.
-
- OE -- OPEN Error
- Aε attemp⌠ wa≤ madσ t∩ OPE╬ ß filσ tha⌠ didn'⌠ exis⌠ anΣ fo≥ whicΦá n∩ ì
- I╞ EN─ statemen⌠ haΣ beeε previousl∙ executed.
-
-
- OI -- ON Index
- Thσá expressioεá specifieΣá iεá aε O╬ ..«á GOSU┬ o≥á aεá O╬á ..«á GOT╧ ì
- statemen⌠á evaluateΣ t∩ ß numbe≥ les≤ thaε ▒ o≥ greate≥ thaε thσ numbe≥á oµ ì
- linσ number≤ containeΣ iε thσ statement.
-
- OM -- Overflow Memory
- The program ran out of memory during execution.
-
- QE -- Quote Error
- Aε attemp⌠ wa≤ madσ t∩ PRIN╘ t∩ ß filσ ß strinτ containinτ ß quotatioε ì
- mark.
-
- RE -- READ Error
- Aε attemp⌠ wa≤ madσ t∩ reaΣ pas⌠ thσ enΣ oµ ß recorΣ iε ß fixeΣ file.
-
- RG -- RETURN with no GOSUB
- A RETURN occurred for which there was no GOSUB.
-
-
- RU -- Random Undefined
- ┴ randoφ reaΣ o≥ prin⌠ wa≤ attempteΣ t∩ othe≥ thaε ß fixeΣ file.
-
- SB -- SuBscript
- Aεá arra∙ subscrip⌠ wa≤ useΣ whicΦ exceedeΣ thσ boundarie≤á fo≥á whicΦ ì
- thσ arra∙ wa≤ defined.
-
- SL -- String Length
- ┴ concatenatioε operatioε resulteΣ iε ß strinτ oµ morσ thaε 25╡ bytes.
-
- SS -- SubString error
- Thσ seconΣ paramete≥ oµ ß MIDñ functioε wa≤ zer∩ o≥ negative.
-
- TF -- Too many Files
- Aε attemp⌠ wa≤ madσ t∩ havσ morσ thaε 2░ activσ file≤ simultaneously.
-
-
- TL -- TAB Length
- ┴á TA┬ statemen⌠ containeΣ ß paramete≥ les≤ thaε ▒ o≥ greate≥ thaε thσ ì
- curren⌠ linσ width.
-
- UN -- UNdefined edit string
- ┴ PRIN╘ USIN╟ statemen⌠ wa≤ executeΣ witΦ ß nul∞ edi⌠ string.
-
- WR -- WRite error
- Aεá attemp⌠ wa≤ madσ t∩ writσ t∩ ß filσ afte≥ i⌠ haΣá beeεá read¼á bu⌠ ì
- beforσ i⌠ haΣ beeε reaΣ t∩ thσ enΣ oµ thσ file.