Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try many sample programs #42

Open
kollokollo opened this issue Mar 27, 2021 · 5 comments
Open

Try many sample programs #42

kollokollo opened this issue Mar 27, 2021 · 5 comments

Comments

@kollokollo
Copy link

kollokollo commented Mar 27, 2021

Since fastbasic is similar to TURBO BASIC XL, and TURBO BASIC XL is similar to GFA-BASIC, and GFA-BASIC is similar to X11-Basic, you might want to try out some of the sample programs from the collection: https://codeberg.org/kollo/X11-Basic_examples

I think at least some of them can be also ised with FASTBASIC to check its performance. Also there is a small tool which can remove the line numbers from ANSI BASIC programs and thus help adapt alien dialects.

e.g. this one can probably run without modifications:

https://codeberg.org/kollo/X11-Basic_examples/src/branch/master/All/console/maze.bas

Just to let you know. Have fun!

@eahumada
Copy link

eahumada commented Mar 28, 2021

Could be possible to add support for line numbers to use turbo basic xl listings out-the-box ?

@kollokollo
Copy link
Author

As far as I remember, TURBO BASIC XL did not require line numbers. (maybe they where optional). In GFA-Basic line numbers finally where not used anymore.

@eahumada
Copy link

eahumada commented Mar 29, 2021

Of course, but many basic examples that you want to try online have line numbers, then requires some re-work to take them and try with fastbasic ex. http://atariprojects.org/wp-content/uploads/2021/03/Page-Flipping.txt

@eahumada
Copy link

I created a web page where you can try the included samples online:
https://eahumada.github.io/AtariOnline/fastbasic.html?disk_filename=fastbasic.atr
When the emulator loads complete, you can try:
PMTEST.COM

@kollokollo
Copy link
Author

I have read the article "Converting to Fastbasic" in the wiki. The process described is OK, however the process can be automated. I did this once, therefor I have written a little tool (in BASIC) which can convert ANSI BASIC (with line numbers and multiple commands in one line) to X11-Basic (or GFA-Basic) similar to fastbasic syntax. Maybe you want to have a look at it to write something similar. Bas2x11basic really has helped me converting some of the BASIC code of the ancient days... Here is it:
https://codeberg.org/kollo/X11Basic/src/branch/master/examples/compiler/bas2x11basic.bas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants