Bwbasic 3.2a for the BeagleBone
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.

102 lines
2.9 KiB

  1. 4-16-2020 Updated 4-24-2020
  2. This should work under most any Linux and Linux under
  3. WSL (Ubuntu, Debian) for windows at the command prompt.
  4. If running this under Linux you will need 'gcc' compiler.
  5. To see if it's installed type in gcc --version if OK
  6. then simply do the following:
  7. tar -xf bwbasic-3.2a.tar
  8. cd <here>
  9. To make 'cls' work as it does in DOS perform once
  10. sudo ln /usr/bin/clear /usr/bin/cls
  11. Now lets build bwbasic and renum
  12. (1) make
  13. To test before installing (2) make runlocal
  14. Then to install (3) sudo make install
  15. To remove installed programs (4) sudo make remove
  16. To remove compiled programs (5) make clean
  17. That's it.
  18. bwbasic and renum are in /usr/local/bin
  19. If you want bwbasic to work from a GUI cd GUI
  20. (1) copy bwbasic.sh to a suitable location
  21. and make sure to chmod 755 bwbasic.sh
  22. so it's executable.
  23. (2) copy bwbasic.png to a suitable location
  24. (3) edit bwbasic.desktop and change references
  25. for File Location then cp bwbasic.desktop to ~/Desktop/.
  26. and it should work from the desktop.
  27. Doing the above should allow you to click on the icon
  28. on your desktop and start bwbasic.
  29. If running under Windows 10 you will need 'gcc' compiler.
  30. To see if it's installed type in gcc --version if you
  31. think you have gcc installed verify your 'PATH' by entering
  32. at the command prompt echo %PATH% to see if it's there.
  33. If OK then at the command prompt
  34. cd <here>
  35. compile.bat
  36. Read prompts
  37. That's it.
  38. Move bwbasic.exe and renum.exe to locations in your PATH.
  39. There are many, many examples in BAS-EXAMPLES and information
  40. in INFO.
  41. All should work fine. But as usual no guarentee is implied.
  42. Any references below to relays pertain to the BeagleBone Black.
  43. I have included some runtime files and sample input files.
  44. Place profile.bas in your current working directory and
  45. relays.pro and allon.inp and alloff.inp. The file examples
  46. will let you to by example turn off all relays alloff.inp.
  47. To do this you would enter at the command line:
  48. bwbasic --profile relays.pro --tape alloff.inp relays.bas
  49. To turn all relays on:
  50. bwbasic --profile relays.pro --tape allon.inp relays.bas
  51. To work interactive you would:
  52. bwbasic relays.bas
  53. Once you get a handle on relays.bas commands you can
  54. create you own .inp files and reference them by
  55. bwbasic --profile relays.pro --tape <your file.inp > relays.bas
  56. All the above can placed into a simple script file.
  57. The purpose of relays.pro is to redirect standard and error
  58. outputs to files relays-stdout.txt and relays-error.txt and
  59. to turn off ANSI so the output is easily readable without
  60. escape codes. Using relays.pro then gives you a quiet display
  61. suitable when scripts via .inp is executed.
  62. The purpose of profile.bas which is used by default is to
  63. enable ANSI control sequences so the command 'cls' works
  64. and to set the normal editor to nano which if desired can
  65. bet set to vi. The editor comes into play when creating
  66. or changing a .bas file. To use while running bwbasic you
  67. would issue the command edit.