Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BAM Sample Programs
#1
This is a directory of BAM programs that I've published to the web:
Reply
#2
Latest batch of programs: Added 2024-02
Reply
#3
Nice collection Smile
b = b + ...
Reply
#4
(02-17-2024, 09:03 PM)bplus Wrote: Nice collection Smile

Hey, thanks!

To look at me and the disaster that is my house, one would instantly know that I'm a totally disorganized mess.

Digital stuff, for whatever reason, I like to organize.  Eh.
Reply
#5
(09-12-2023, 05:01 AM)CharlieJV Wrote: This is a directory of BAM programs that I've published to the web:

Looks interesting! Can you share a bit about how/if BAM compares with other BASICs, like QB?
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply
#6
(02-18-2024, 02:15 AM)PhilOfPerth Wrote:
(09-12-2023, 05:01 AM)CharlieJV Wrote: This is a directory of BAM programs that I've published to the web:

Looks interesting! Can you share a bit about how/if BAM compares with other BASICs, like QB?

BAM is a (single HTML file) TiddlyWiki instance that has been setup as a host for BASIC programming.  Behind the scenes, programs are saved as wiki content, and when we run a program, BAM (via TiddlyWiki goodness) mashes together the BASIC program, HTML, and wwwBASIC.js (I've modified wwwBASIC so much that we might as well call it a port) into an HTML document that gets fed to an iframe as a stand-alone web page.

From what I can tell studying the code and behaviour of wwwBASIC, it seems to have been heavily (if not completely, whether by design or by fluke) influenced by both GW-BASIC and QBASIC.  I've also added some QB64 statements/functions to make it pretty easy to port QB64 programs to BAM.

wwwBASIC did not have any audio statements.  Although I've added BEEP and SOUND, I've not yet added PLAY.

wwwBASIC also did not support anything involving files.  I've added a few things so a BAM program can output to a file (via browser "download" kind of mechanism), I don't know if I'll ever want BAM to create/open files or have any sort of interaction with operating system services or web services.

As-is, BAM is about programming in a kind of "bottle garden" environment, i.e. a fully self-contained virtual-machine-like critter.

There are some things, though, that are unique to BAM (not found in any of wwwBASIC, GW-BASIC, QBASIC, QB64/QB64PE), like the screen modes 14 to 27: BAM Screen Modes, and functions like IFF, MAX, MIN, and BETWEEN.  And "EVAL" clauses for GOTO / GOSUB / RESTORE.
Reply
#7
Thank you.The compatibilty files especially were very helpful. Great job! 
This bears investigating further.
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply
#8
(02-18-2024, 11:49 PM)PhilOfPerth Wrote: Thank you.The compatibilty files especially were very helpful. Great job! 
This bears investigating further.

Oh yeah, you might find it useful to peruse the topics (various lists/indices) in the BAM Language Reference.

Always a work in progress, however documentation has been a bit off the radar for the last couple of months.
Reply
#9
Using _GETCHR$ to get 8x8 numeric characters and use them as templates for drawing the digits of the clock.  Customize the outer border and inner color of digits via URL parameters.

Details:  https://basicanywheremachine-news.blogsp...clock.html

   
Reply
#10
Great, now I have to email Terry every time I want to know what time it is after mid-night.

Kidding aside, nice job with _GETCHAR$ statement!

Pete Big Grin
Reply




Users browsing this thread: 1 Guest(s)