|
@@ -1,16 +1,18 @@ |
|
|
4-16-2020 Updated 8-8-2020 3.20d |
|
|
|
|
|
|
|
|
4-16-2020 Upd 8-8-2020 3.20d Upd 12-21-2021 3.20f Ken |
|
|
|
|
|
|
|
|
Bwbasic has been around since the early 1990's |
|
|
Bwbasic has been around since the early 1990's |
|
|
in one form or another and actually quite powerfull. |
|
|
in one form or another and actually quite powerfull. |
|
|
|
|
|
|
|
|
This should work under most any Linux and Linux under |
|
|
This should work under most any Linux and Linux under |
|
|
WSL (Ubuntu, Debian) for windows at the command prompt. |
|
|
|
|
|
|
|
|
WSL (Ubuntu, Debian) for Windows at the command prompt. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If running this under Linux you will need 'gcc' compiler. |
|
|
If running this under Linux you will need 'gcc' compiler. |
|
|
To see if it's installed type in gcc --version if OK |
|
|
To see if it's installed type in gcc --version if OK |
|
|
then simply do the following: |
|
|
then simply do the following: |
|
|
|
|
|
|
|
|
tar -xf bwbasic-3.20d.tar |
|
|
|
|
|
|
|
|
tar -xf bwbasic-3.20d.tar <here> |
|
|
|
|
|
|
|
|
cd <here> |
|
|
cd <here> |
|
|
|
|
|
|
|
@@ -25,34 +27,40 @@ Tip: Now linking to clear within a bwbasic program you |
|
|
|
|
|
|
|
|
Now lets build bwbasic and renum |
|
|
Now lets build bwbasic and renum |
|
|
|
|
|
|
|
|
(1) make |
|
|
|
|
|
To test before installing (2) make runlocal |
|
|
|
|
|
Then to install (3) sudo make install |
|
|
|
|
|
To remove installed programs (4) sudo make remove |
|
|
|
|
|
To remove compiled programs and recompile (5) make clean |
|
|
|
|
|
|
|
|
(1) make To make binaries |
|
|
|
|
|
(2) make runlocal To test build |
|
|
|
|
|
(3) sudo make install To install programs |
|
|
|
|
|
(4) sudo make remove To remove compiled programs |
|
|
|
|
|
(5) make clean To remove binaries from build |
|
|
|
|
|
|
|
|
That's it. |
|
|
That's it. |
|
|
|
|
|
|
|
|
bwbasic and renum will be in /usr/bin |
|
|
|
|
|
|
|
|
bwbasic and renum will be in /usr/local/bin |
|
|
|
|
|
|
|
|
|
|
|
If you want bwbasic to work from a GUI do: |
|
|
|
|
|
|
|
|
If you want bwbasic to work from a GUI cd GUI |
|
|
|
|
|
(1) copy bwbasic.sh to a suitable location |
|
|
|
|
|
and make sure to chmod 755 bwbasic.sh |
|
|
|
|
|
so it's executable. |
|
|
|
|
|
(2) copy bwbasic.png to a suitable location |
|
|
|
|
|
(3) edit bwbasic.desktop and change references |
|
|
|
|
|
for File Location and png location then |
|
|
|
|
|
cp bwbasic.desktop to ~/Desktop/. |
|
|
|
|
|
and it should work from the desktop. |
|
|
|
|
|
|
|
|
make addgui |
|
|
|
|
|
|
|
|
Doing the above should allow you to click on the icon |
|
|
Doing the above should allow you to click on the icon |
|
|
on your desktop and start bwbasic. |
|
|
on your desktop and start bwbasic. |
|
|
|
|
|
|
|
|
If running under Windows 10 you will need 'gcc' compiler. |
|
|
|
|
|
|
|
|
If you want to delete the GUI additions do: |
|
|
|
|
|
|
|
|
|
|
|
make delgui |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If running Windows 7 32bit or later up to Windows 11 64bit |
|
|
|
|
|
install the following: |
|
|
|
|
|
|
|
|
|
|
|
https://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer |
|
|
|
|
|
/tdm64-gcc-5.1.0-2.exe/download |
|
|
|
|
|
|
|
|
|
|
|
OR running under Windows 7 or better you will need 'gcc' compiler. |
|
|
To see if it's installed type in gcc --version if you |
|
|
To see if it's installed type in gcc --version if you |
|
|
think you have gcc installed verify your 'PATH' by entering |
|
|
think you have gcc installed verify your 'PATH' by entering |
|
|
at the command prompt echo %PATH% to see if it's there. |
|
|
at the command prompt echo %PATH% to see if it's there. |
|
|
If OK then at the command prompt |
|
|
|
|
|
|
|
|
If OK then at the command prompt: |
|
|
|
|
|
|
|
|
cd <here> |
|
|
cd <here> |
|
|
|
|
|
|
|
@@ -64,11 +72,27 @@ That's it. |
|
|
|
|
|
|
|
|
Move bwbasic.exe and renum.exe to locations in your PATH. |
|
|
Move bwbasic.exe and renum.exe to locations in your PATH. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There are many, many examples in BAS-EXAMPLES and |
|
|
There are many, many examples in BAS-EXAMPLES and |
|
|
available information in INFO. |
|
|
|
|
|
|
|
|
available information in INFO and DOCS. |
|
|
|
|
|
|
|
|
All should work fine. But as usual no guarentee is implied. |
|
|
All should work fine. But as usual no guarentee is implied. |
|
|
|
|
|
|
|
|
|
|
|
As a simple example try the guessing game and TicTacToe |
|
|
|
|
|
|
|
|
|
|
|
bwbasic BAS-EXAMPLES/guess.bas |
|
|
|
|
|
|
|
|
|
|
|
or |
|
|
|
|
|
|
|
|
|
|
|
bwbasic BAS-EXAMPLES/tictac.bas |
|
|
|
|
|
|
|
|
|
|
|
or |
|
|
|
|
|
|
|
|
|
|
|
bwbasic BAS-EXAMPLES/ohmslaw.bas |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Any references below to relays pertain to the BeagleBone Black. |
|
|
Any references below to relays pertain to the BeagleBone Black. |
|
|
|
|
|
|
|
|
I have included some runtime files and sample input files. |
|
|
I have included some runtime files and sample input files. |
|
@@ -107,9 +131,7 @@ bet set to vi. The editor comes into play when creating |
|
|
or changing a .bas file. To use while running bwbasic you |
|
|
or changing a .bas file. To use while running bwbasic you |
|
|
would issue the command edit. |
|
|
would issue the command edit. |
|
|
|
|
|
|
|
|
As a simple example try the guessing game with |
|
|
|
|
|
|
|
|
|
|
|
bwbasic guess.bas |
|
|
|
|
|
|
|
|
|
|
|
If you come up with some ideas or enhancements or have a |
|
|
If you come up with some ideas or enhancements or have a |
|
|
problem drop me a message keeping in mind my main goal |
|
|
problem drop me a message keeping in mind my main goal |
|
|