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.

READMEFIRST 3.6 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. 4-16-2020 Upd 8-8-2020 3.20d Upd 12-21-2021 3.20f Ken
  2. Bwbasic has been around since the early 1990's
  3. in one form or another and actually quite powerfull.
  4. This should work under most any Linux and Linux under
  5. WSL (Ubuntu, Debian) for Windows at the command prompt.
  6. If running this under Linux you will need 'gcc' compiler.
  7. To see if it's installed type in gcc --version if OK
  8. then simply do the following:
  9. tar -xf bwbasic-3.20d.tar <here>
  10. cd <here>
  11. To make 'cls' work as it does in DOS perform once
  12. sudo ln /usr/bin/clear /usr/bin/cls
  13. Tip: Now linking to clear within a bwbasic program you
  14. can clear the screen using command SHELL "cls"
  15. This can be embedded in you program. You can also
  16. use OPTION TERMINAL ANSI then use command CLS
  17. Now lets build bwbasic and renum
  18. (1) make To make binaries
  19. (2) make runlocal To test build
  20. (3) sudo make install To install programs
  21. (4) sudo make remove To remove compiled programs
  22. (5) make clean To remove binaries from build
  23. That's it.
  24. bwbasic and renum will be in /usr/local/bin
  25. If you want bwbasic to work from a GUI do:
  26. make addgui
  27. Doing the above should allow you to click on the icon
  28. on your desktop and start bwbasic.
  29. If you want to delete the GUI additions do:
  30. make delgui
  31. If running Windows 7 32bit or later up to Windows 11 64bit
  32. install the following:
  33. https://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer
  34. /tdm64-gcc-5.1.0-2.exe/download
  35. OR running under Windows 7 or better you will need 'gcc' compiler.
  36. To see if it's installed type in gcc --version if you
  37. think you have gcc installed verify your 'PATH' by entering
  38. at the command prompt echo %PATH% to see if it's there.
  39. If OK then at the command prompt:
  40. cd <here>
  41. compile.bat
  42. Read prompts
  43. That's it.
  44. Move bwbasic.exe and renum.exe to locations in your PATH.
  45. There are many, many examples in BAS-EXAMPLES and
  46. available information in INFO and DOCS.
  47. All should work fine. But as usual no guarentee is implied.
  48. As a simple example try the guessing game and TicTacToe
  49. bwbasic BAS-EXAMPLES/guess.bas
  50. or
  51. bwbasic BAS-EXAMPLES/tictac.bas
  52. or
  53. bwbasic BAS-EXAMPLES/ohmslaw.bas
  54. Any references below to relays pertain to the BeagleBone Black.
  55. I have included some runtime files and sample input files.
  56. Place profile.bas in your current working directory and
  57. relays.pro and allon.inp and alloff.inp. The file examples
  58. will let you to by example turn off all relays alloff.inp.
  59. To do this you would enter at the command line:
  60. bwbasic --profile relays.pro --tape alloff.inp relays.bas
  61. To turn all relays on:
  62. bwbasic --profile relays.pro --tape allon.inp relays.bas
  63. To work interactive you would:
  64. bwbasic relays.bas
  65. Once you get a handle on relays.bas commands you can
  66. create you own .inp files and reference them by
  67. bwbasic --profile relays.pro --tape <your file.inp> relays.bas
  68. All the above can placed into a simple script file.
  69. The purpose of relays.pro is to redirect standard and error
  70. outputs to files relays-stdout.txt and relays-error.txt and
  71. to turn off ANSI so the output is easily readable without
  72. escape codes. Using relays.pro then gives you a quiet display
  73. suitable when scripts via .inp is executed.
  74. The purpose of profile.bas which is used by default is to
  75. enable ANSI control sequences so the command 'cls' works
  76. and to set the normal editor to nano which if desired can
  77. bet set to vi. The editor comes into play when creating
  78. or changing a .bas file. To use while running bwbasic you
  79. would issue the command edit.
  80. If you come up with some ideas or enhancements or have a
  81. problem drop me a message keeping in mind my main goal
  82. is to do maintenance updates where necessary.
  83. ken.at.github@gmail.com