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.
 
 
 
 
 
 

88 lines
2.9 KiB

  1. Some Notes on Installation of the Bywater BASIC Interpreter:
  2. -----------------------------------------------------------
  3. 0. Quick-Start Guide For Compiling
  4. To use the default configuration (which is reasonable for most situations):
  5. On Unix using GCC:
  6. gcc -o bwbasic -lm -ansi -pedantic -Wall -Werror bw*.c
  7. On Android CCTools using GCC:
  8. gcc -o bwbasic -lm -ansi -pedantic -Wall -Werror bw*.c
  9. On MSDOS using Borland C++ 3.1:
  10. bcc.exe -mh -eBWBASIC.EXE -D_DOS=1 -Y bw*.c
  11. On MSDOS using Digital Mars Compiler Version 8.42n:
  12. dmc.exe -mx -A89 -oBWBASIC.EXE -DHAVE_DOS=1 bwbasic.c bwb_cmd.c bwb_cnd.c
  13. bwb_dio.c bwb_exp.c bwb_fnc.c bwb_inp.c bwb_int.c bwb_prn.c bwb_stc.c
  14. bwb_str.c bwb_tbl.c bwb_var.c bwd_cmd.c bwd_fun.c bwx_tty.c X32.LIB
  15. On MSDOS using Open Watcom 1.9:
  16. wcl386 -bc -c -ox -q -wx -za -D_DOS -D__WATCOM__ bw*.c
  17. wlink option quiet file bw*.obj name bwbasic.exe
  18. The following MSDOS compilers are unable to compile Bywater BASIC:
  19. Borland Turbo C 2.01
  20. Hi-Tech Pacific C 7.51
  21. Mix Power C 2.2.0
  22. You can skip the rest of this file unless you want to customize the
  23. BASIC dialect that is supported, or something goes wrong in the
  24. above commands.
  25. 1. Compiler Requirements
  26. ANSI C.
  27. 2. Configuration of header files
  28. You may need to examine file "bwbasic.h" to make important
  29. changes for specific hardware and compiler configurations.
  30. 3. Makefiles
  31. Several compiler-specific makefiles are provided AS-IS,
  32. and have not been tested with Bywater BASIC version 3.XX.
  33. "makefile" should compile the program on Unix-based computers.
  34. "makefile.qcl" should compile using Microsoft QuickC (tm).
  35. 4. Implementations
  36. TTY is the base implementation and presumes a simple
  37. TTY-style environment, with all keyboard and screen input
  38. and output directed through stdin and stdout. All commands,
  39. functions and operators should be available in the TTY
  40. implementation, even when they do nothing. For example,
  41. CLS, COLOR and LOCATE do nothing when OPTION TERMINAL NONE
  42. is specified. This allows exising classic BASIC applications
  43. to execute, even though the display will not be accurate.
  44. 5. Adding Commands and Functions
  45. Follow the rules in "Implementation rules for functions and commands";
  46. the majority of BASIC commands are actually intrinsic functions.
  47. Adding a new command is more work than adding a new function.
  48. In order to add a new command to bwBASIC:
  49. Search for C_WRITE and bwb_WRITE,
  50. and add your command's eqivalent information in the same places.
  51. Each command (#define C_...) shoud have a unique number.
  52. Adding a new function is easier:
  53. Search for F_ABS_X_N,
  54. and add your function's equivalent information in the same places.
  55. Each function (#define F_...) shoud have a unique number.