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.
 
 
 
 
 
 

84 lines
2.6 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 -D_DOS bw*.c
  11. On MSBOS using Open Watcom 1.9:
  12. wcl386 -bc -c -ox -q -wx -za -D_DOS -D__WATCOM__ bw*.c
  13. wlink option quiet file bw*.obj name bwbasic.exe
  14. On MSDOS using Hi-Tech Pacific C 7.51:
  15. This compiler is unable to compile Bywaater BASIC
  16. On MSDOS using Borland Turbo C 2.01:
  17. This compiler is unable to compile Bywaater BASIC
  18. You can skip the rest of this file unless you want to customize the
  19. BASIC dialect that is supported, or something goes wrong in the
  20. above commands.
  21. 1. Compiler Requirements
  22. ANSI C.
  23. 2. Configuration of header files
  24. You may need to examine file "bwbasic.h" to make important
  25. changes for specific hardware and compiler configurations.
  26. 3. Makefiles
  27. Several compiler-specific makefiles are provided AS-IS,
  28. and have not been tested with version 3.XX.
  29. "makefile" should compile the program on Unix-based computers.
  30. "makefile.qcl" should compile using Microsoft QuickC (tm).
  31. 4. Implementations
  32. TTY is the base implementation and presumes a simple
  33. TTY-style environment, with all keyboard and screen input
  34. and output directed through stdin and stdout. All commands,
  35. functions and operators should be available in the TTY
  36. implementation, even when they do nothing. For example,
  37. CLS, COLOR and LOCATE do nothing when OPTION TERMINAL NONE
  38. is specified. This allows exising classic BASIC applications
  39. to execute.
  40. 5. Adding Commands and Functions
  41. Follow the rules in "Implementation rules for functions and commands";
  42. the majority of BASIC commands are actually intrinsic functions.
  43. Adding a new command is more work than adding a new function.
  44. In order to add a new command to bwBASIC:
  45. Search for C_WRITE and bwb_WRITE,
  46. and add your command's eqivalent information in the same places.
  47. The last command's unique number should equal NUM_COMMANDS.
  48. Adding a new function is easier:
  49. Search for F_ABS_X_N,
  50. and add your function's equivalent information in the same places.
  51. The last function's unique number should equal NUM_FUNCTIONS.