ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DMCDOS32.TXT 5.8 KiB

v3.20 * Implements most of the following BASIC dialects: OPTION VERSION "BYWATER" ' Bywater BASIC 3 OPTION VERSION "BYWATER-2" ' Bywater BASIC 2 OPTION VERSION "CALL/360" ' SBC CALL/360 Mainframe BASIC OPTION VERSION "CBASIC-II" ' CBASIC-II for CP/M OPTION VERSION "DARTMOUTH" ' Dartmouth DTSS BASIC OPTION VERSION "ECMA-55" ' ANSI Minimal BASIC OPTION VERSION "ECMA-116" ' ANSI Full BASIC OPTION VERSION "GCOS" ' GE 600 Mainframe BASIC OPTION VERSION "HAARDT" ' bas 2.4 by Michael Haardt OPTION VERSION "HANDBOOK1" ' The BASIC Handbook, 1st Edition OPTION VERSION "HANDBOOK2" ' The BASIC Handbook, 2nd Edition OPTION VERSION "HEATH" ' Heath Benton Harbor BASIC OPTION VERSION "MARK-I" ' GE 265 Mainframe BASIC OPTION VERSION "MARK-II" ' GE 435 Mainframe BASIC OPTION VERSION "MBASIC" ' Microsoft BASIC-80 for Xenix OPTION VERSION "PDP-8" ' DEC PDP-8 BASIC OPTION VERSION "PDP-11" ' DEC PDP-11 BASIC OPTION VERSION "RBASIC" ' Micronics RBASIC for 6809 FLEX OPTION VERSION "RSTS-11" ' DEC RSTS-11 BASIC-PLUS OPTION VERSION "SYSTEM/360" ' IBM System/360 Mainframe BASIC OPTION VERSION "SYSTEM/370" ' IBM System/370 Mainframe BASIC OPTION VERSION "TRS-80" ' TRS-80 Model I/III/4 LBASIC OPTION VERSION "VINTAGE" ' Vintage BASIC 1.0.1 OPTION VERSION "XBASIC" ' TSC XBASIC for 6800 FLEX * CONST variable [, ...] = value Assigns the value to variable. Any later assignment to the variable causus a VARIABLE NOT DECLARED error. * DIM now supports lower and upper bounds. OPTION BASE 1 DIM X( 9 ) ' lower bound is 1 DIM Y( 5 TO 9 ) ' lower bound is 5 * DIM now supports virtual variables. OPTION BASE 1 OPEN "VIRTUAL.DAT" FOR VIRTUAL AS # 3 ' virtual data file DIM # 3, A( 1000 ) ' array is virtual LET A( 1000 ) = 0 ' value is written to the file LET X = A( 1000 ) ' value is read from the file CLOSE # 3 ' array is no longer valid * ERROR 27, "Bad DATA" Occurs when the READ command detects garbage in a DATA command. * INPUT LINE Same as LINE INPUT. * MAT now supports lower and upper bounds. OPTION BASE 1 MAT X( 9 ) = ZER ' lower bound is 1 MAT Y( 5 TO 9 ) = ZER ' lower bound is 5 MAT X = ZER( 9 ) ' lower bound is 1 MAT Y - ZER( 5 TO 9 ) ' lower bound is 5 * MAXLEN() Returns the maximum string length. * OPTION DIGITS integer Sets the number of significant digits for PRINT. Setting the value to zero restores the default. * OPTION EDIT string$ Sets the program name used by the EDIT command. Setting this to "" disables EDIT command. * OPTION FILES string$ Sets the program name used by the FILES command. Setting this to "" disables FILES command. * OPTION PROMPT string$ Sets the prompt. * OPTION PUNCT AT char$ Sets the PRINT AT character, commonly "@". Setting this to "" disables PRINT AT. Setting this to a non-punctuation character is not supported. * OPTION PUNCT BYTE char$ Sets the BYTE type suffix, commonly "~". Setting this to "" disables BYTE suffix. Setting this to a non-punctuation character is not supported. * OPTION PUNCT COMMENT char$ Sets the trailing COMMENT character, commonly "'". Setting this to "" disables trailing comments. Setting this to a non-punctuation character is not supported. * OPTION PUNCT CURRENCY char$ Sets the CURRENCY type suffix, commonly "@". Setting this to "" disables CURRENCY suffix. Setting this to a non-punctuation character is not supported. * OPTION PUNCT DOUBLE char$ Sets the DOUBLE type suffix, commonly "#". Setting this to "" disables DOUBLE suffix. Setting this to a non-punctuation character is not supported. * OPTION PUNCT FILENUM char$ Sets the FILE NUMBER prefix, commonly "#". Setting this to "" disables the FILE NUMBER prefix. Setting this to a non-punctuation character is not supported. * OPTION PUNCT IMAGE char$ Sets the shortcut IMAGE character, commonly ":". Setting this to "" disables the shortcut IMAGE character. Setting this to a non-punctuation character is not supported. * OPTION PUNCT INPUT char$ Sets the shortcut INPUT character, commonly "!". Setting this to "" disables the shortcut INPUT character. Setting this to a non-punctuation character is not supported. * OPTION PUNCT INTEGER char$ Sets the INTEGER type suffix, commonly "%". Setting this to "" disables INTEGER suffix. Setting this to a non-punctuation character is not supported. * OPTION PUNCT LONG char$ Sets the LONG type suffix, commonly "&". Setting this to "" disables LONG suffix. Setting this to a non-punctuation character is not supported. * OPTION PUNCT LPAREN char$ Sets the LEFT PARENTHESIS character, commonly "(". Setting this to a non-punctuation character is not supported. * OPTION PUNCT PRINT char$ Sets the shortcut PRINT character, commonly "?". Setting this to "" disables the shortcut PRINT character. Setting this to a non-punctuation character is not supported. * OPTION PUNCT QUOTE char$ Sets the QUOTE character, commonly """". Setting this to a non-punctuation character is not supported. * OPTION PUNCT RPAREN char$ Sets the RIGHT PARENTHESIS character, commonly ")". Setting this to a non-punctuation character is not supported. * OPTION PUNCT SINGLE char$ Sets the SINGLE type suffix, commonly "!". Setting this to "" disables SINGLE suffix. Setting this to a non-punctuation character is not supported. * OPTION PUNCT STATEMENT char$ Sets the shortcut STATEMENT seperator character, commonly ":". Setting this to "" disables the STATEMENT seperator. Setting this to a non-punctuation character is not supported. * OPTION PUNCT STRING char$ Sets the STRING type suffix, commonly "$". Setting this to "" disables STRING suffix. Setting this to a non-punctuation character is not supported. * OPTION RECLEN integer Sets the default record length for RANDOM files, commonly 128. Setting thisto zero means there is no default RANDOM record length, so the record length must be specified in the OPEN statement. With OPTION RECLEN 128: OPEN "FILE.DAT" FOR RANDOM AS #3 is considered to be the same as OPEN "FILE.DAT" FOR RANDOM AS #3 LEN 128 With OPTION RECLEN 0: OPEN "FILE.DAT" FOR RANDOM AS #3 causes an error. * OPTION RENUM string$ Sets the program name used by the RENUM command. Setting this to "" disables RENUM command. * OPTION SCALE integer Sets the number of digits to round after the decimal point for PRINT. Setting the value to zero disables rounding. * OPTION USING DIGIT * OPTION USING COMMA * OPTION USING PERIOD * OPTION USING PLUS * OPTION USING MINUS * OPTION USING EXRAD * OPTION USING DOLLAR * OPTION USING FILLER * OPTION USING LITERAL * OPTION USING FIRST * OPTION USING ALL * OPTION USING LENGTH Sets the characters recognized by PRINT USING. Setting these to a non-punctuation character is not supported. * OPTION VERSION now requires a string instead of a literal. Some version names have changed. * OPTION VERSION "PDP-8" Added LPT, PTP, PTR, TTY, TTY IN and TTY OUT commands. Added GET() and PUT() functions. * OPTION VERSION "CALL/360" * OPTION VERSION "SYSTEM/360" * OPTION VERSION "SYSTEM/370" Added alphabet extenders. $ is a string variable. * OPTION ZONE integer Sets the PRINT zone width. Setting the value to zero restores the default. * REPEAT - UNTIL added REPEAT ... EXIT REPEAT ... UNTIL expression ' exits when expression != 0 * SPC( X ) and TAB( X ) No longer use control codes. * UNTIL - UEND removed (to add REPEAT - UNTIL) Here is a work-around for existin code using UNTIL-UEND: UNITL expression -->> WHILE NOT expression ... ... EXIT UNTIL -->> EXIT WHILE ... ... UEND -->> WEND * from Howard Wulf, AF5NE Editor's Note: In the official release *ALL* of the test and sample BASIC programs were removed and packaged in a separate "test" ZIP. I have extracted those in to the bwbtest folder where most of the tests were living in previous packages. I've also improved (I hope) the EOL handling. - ChipMaster
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. Digital Mars Compiler Version 8.42n
  2. Copyright (C) Digital Mars 2000-2004. All Rights Reserved.
  3. Written by Walter Bright www.digitalmars.com/ctg/sc.html
  4. DMC is a one-step program to compile and link C++, C and ASM files.
  5. Usage ([] means optional, ... means zero or more):
  6. DMC file... [flags...] [@respfile]
  7. file... .CPP, .C or .ASM source, .OBJ object or .LIB library file name
  8. @respfile... pick up arguments from response file or environment variable
  9. flags... one of the following:
  10. -a[1|2|4|8] alignment of struct members -A strict ANSI C/C++
  11. -Aa enable new[] and delete[] -Ab enable bool
  12. -Ae enable exception handling -Ar enable RTTI
  13. -B[e|f|g|j] message language: English, French, German, Japanese
  14. -c skip the link, do compile only -cpp source files are C++
  15. -cod generate .cod (assembly) file -C no inline function expansion
  16. -d generate .dep (make dependency) file
  17. -D #define DEBUG 1 -Dmacro[=text] define macro
  18. -e show results of preprocessor -EC do not elide comments
  19. -EL #line directives not output -f IEEE 754 inline 8087 code
  20. -fd work around FDIV problem -ff fast inline 8087 code
  21. -g generate debug info
  22. -gf disable debug info optimization -gg make static functions global
  23. -gh symbol info for globals -gl debug line numbers only
  24. -gp generate pointer validations -gs debug symbol info only
  25. -gt generate trace prolog/epilog -GTnnnn set data threshold to nnnn
  26. -H use precompiled headers (ph) -HDdirectory use ph from directory
  27. -HF[filename] generate ph to filename -HHfilename read ph from filename
  28. -HIfilename #include "filename" -HO include files only once
  29. -HS only search -I directories -HX automatic precompiled headers
  30. -Ipath #include file search path -j[0|1|2] Asian language characters
  31. 0: Japanese 1: Taiwanese and Chinese 2: Korean
  32. -Jm relaxed type checking -Ju char==unsigned char
  33. -Jb no empty base class optimization -J chars are unsigned
  34. -l[listfile] generate list file -L using non-Digital Mars linker
  35. -Llink specify linker to use -L/switch pass /switch to linker
  36. -Masm specify assembler to use -M/switch pass /switch to assembler
  37. -m[tsmclvfnrpxz][do][w][u] set memory model
  38. s: small code and data m: large code, small data
  39. c: small code, large data l: large code and data
  40. v: VCM r: Rational 16 bit DOS Extender
  41. p: Pharlap 32 bit DOS Extender x: DOSX 32 bit DOS Extender
  42. z: ZPM 16 bit DOS Extender f: OS/2 2.0 32 bit
  43. t: .COM file n: Windows 32s/95/98/NT/2000/ME/XP
  44. d: DOS 16 bit o: OS/2 16 bit
  45. w: SS != DS u: reload DS
  46. -Nc function level linking -NL no default library
  47. -Ns place expr strings in code seg -NS new code seg for each function
  48. -NTname set code segment name -NV vtables in far data
  49. -o[-+flag] run optimizer with flag -ooutput output filename
  50. -p turn off autoprototyping -P default to pascal linkage
  51. -Pz default to stdcall linkage -r strict prototyping
  52. -R put switch tables in code seg -s stack overflow checking
  53. -S always generate stack frame -u suppress predefined macros
  54. -v[0|1|2] verbose compile -w suppress all warnings
  55. -wc warn on C style casts
  56. -wn suppress warning number n -wx treat warnings as errors
  57. -W{0123ADabdefmrstuvwx-+} Windows prolog/epilog
  58. -WA Windows EXE
  59. -WD Windows DLL
  60. -x turn off error maximum -XD instantiate templates
  61. -XItemp<type> instantiate template class temp<type>
  62. -XIfunc(type) instantiate template function func(type)
  63. -[0|2|3|4|5|6] 8088/286/386/486/Pentium/P6 code
  64. for (l = l->OtherLine; l->cmdnum != C_END_IF; l = l->OtherLine);
  65. ^
  66. bwbasic.c(2440) : Warning 7: possible extraneous ';'
  67. l = l->OtherLine);
  68. ^
  69. bwbasic.c(2446) : Warning 7: possible extraneous ';'
  70. for (x = x->OtherLine; x->cmdnum != C_END_IF; x = x->OtherLine);
  71. ^
  72. bwb_cmd.c(6092) : Warning 7: possible extraneous ';'
  73. for (x = x->OtherLine; x->cmdnum != C_END_SELECT; x = x->OtherLine);
  74. ^
  75. bwb_cmd.c(6097) : Warning 7: possible extraneous ';'
  76. for (l = l->OtherLine; l->OtherLine != NULL; l = l->OtherLine);
  77. ^
  78. bwb_cnd.c(581) : Warning 7: possible extraneous ';'
  79. for (l = l->OtherLine; l->OtherLine != NULL; l = l->OtherLine);
  80. ^
  81. bwb_cnd.c(599) : Warning 7: possible extraneous ';'
  82. for (l = l->OtherLine; l->OtherLine != NULL; l = l->OtherLine);
  83. ^
  84. bwb_cnd.c(899) : Warning 7: possible extraneous ';'
  85. for (l = l->OtherLine; l->OtherLine != NULL; l = l->OtherLine);
  86. ^
  87. bwb_cnd.c(917) : Warning 7: possible extraneous ';'
  88. for (m = 0; m < n && buff_skip_char (buffer, &q, T->Name[m]); m++);
  89. ^
  90. bwb_exp.c(1881) : Warning 7: possible extraneous ';'
  91. for (; x->cmdnum != C_DATA && x != My->EndMarker; x = x->next);
  92. ^
  93. bwb_inp.c(945) : Warning 7: possible extraneous ';'
  94. x = x->next);
  95. ^
  96. bwb_stc.c(1358) : Warning 7: possible extraneous ';'
  97. for (argn = argv; argn->next != NULL; argn = argn->next);
  98. ^
  99. bwb_stc.c(1389) : Warning 7: possible extraneous ';'
  100. while (line_skip_seperator (l));
  101. ^
  102. bwb_var.c(113) : Warning 7: possible extraneous ';'
  103. bwbasic.c:
  104. bwb_cmd.c:
  105. bwb_cnd.c:
  106. bwb_dio.c:
  107. bwb_exp.c:
  108. bwb_fnc.c:
  109. bwb_inp.c:
  110. bwb_int.c:
  111. bwb_prn.c:
  112. bwb_stc.c:
  113. bwb_str.c:
  114. bwb_tbl.c:
  115. bwb_var.c:
  116. bwd_cmd.c:
  117. bwd_fun.c:
  118. bwx_tty.c:
  119. link cx+bwbasic+bwb_cmd+bwb_cnd+bwb_dio+bwb_exp+bwb_fnc+bwb_inp+bwb_int+bwb_prn+bwb_stc+bwb_str+bwb_tbl+bwb_var+bwd_cmd+bwd_fun+bwx_tty,BWBASIC.EXE,,X32/noi;