BAM and the CIRCLE statement
#1
I'm going through this old BASIC book to sanity-check BAM's implementation of BASIC statements and functions.

From the Handbook of BASIC: for the IBM PC, XT, AT, PS/2, and compatibles (chapter starting on page 42), 1988
( https://archive.org/details/handbookofbasicf00schn ), I'm happy to find that the code samples work A-1 in BAM:


Code: (Select All)
again:

SCREEN 1 : CIRCLE (160, 100), 23
PRINT "SCREEN 1 : CIRCLE (160, 100), 23"

_delay 1.5

SCREEN 2 : CIRCLE (160, 100), 23
PRINT "SCREEN 2 : CIRCLE (160, 100), 23"

_delay 1.5

' NOTE: BAM requires a space where a parameter is omitted
SCREEN 1 : CIRCLE (160, 110),150,1, , ,.45
PRINT "SCREEN 1" : PRINT "CIRCLE (160, 110),150,1, , ,.45"

_delay 1.5

SCREEN 1 : CIRCLE (160, 120),70,2, , ,1.4
PRINT "SCREEN 1" : PRINT "CIRCLE (160, 120),70,2, , ,1.4"

_delay 1.5

SCREEN 1
CIRCLE (50, 160), 25, ,-.8,-5.5
CIRCLE (200, 160), 25
CIRCLE (200, 160),20, ,4, 5.5, .4
CIRCLE (192,152),1
CIRCLE (210,152),1

_delay 1.5

SCREEN 1
FOR I = 10 TO 70 STEP 5
    CIRCLE (200,120), I
NEXT I

_delay 1.5

SCREEN 1
CIRCLE (70, 125), 45,2,-1,6,2
CIRCLE (180,125), 35, ,0,3.14
CIRCLE (250,126), 30, ,-.0000001,-1.57

_delay 1.5

SCREEN 1
FOR I = .1 TO 2 STEP .3
CIRCLE (160,120),50, , , ,I
NEXT I


_delay 1.5

GOTO again
Reply
#2
Congrats! Really vindicating for you BAM devs I bet!
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply
#3
(06-12-2023, 12:38 AM)grymmjack Wrote: Congrats! Really vindicating for you BAM devs I bet!

Well, definitely this BAM dev.

Every time I can pick up some really old code and have it work in BAM with at worst tiny/quick/easy touch-ups, I'm a happy camper.

The wealth of old BASIC books at the internet archive suddenly become pretty useful: https://archive.org/search?query=subject...uage%29%22
Reply
#4
(06-12-2023, 01:02 AM)CharlieJV Wrote:
(06-12-2023, 12:38 AM)grymmjack Wrote: Congrats! Really vindicating for you BAM devs I bet!

Well, definitely this BAM dev.

Every time I can pick up some really old code and have it work in BAM with at worst tiny/quick/easy touch-ups, I'm a happy camper.

The wealth of old BASIC books at the internet archive suddenly become pretty useful: https://archive.org/search?query=subject...uage%29%22

Thanks for sharing the link. archive.org is awesome! I went through and snagged a ton of great books too (before they made them all rental because that law suit). Are you finding any books that are worth recommending (besides possibly the first one you mentioned in your OP)?

Cheers
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply
#5
(06-12-2023, 06:41 AM)grymmjack Wrote:
(06-12-2023, 01:02 AM)CharlieJV Wrote:
(06-12-2023, 12:38 AM)grymmjack Wrote: Congrats! Really vindicating for you BAM devs I bet!

Well, definitely this BAM dev.
Every time I can pick up some really old code and have it work in BAM with at worst tiny/quick/easy touch-ups, I'm a happy camper.
The wealth of old BASIC books at the internet archive suddenly become pretty useful: https://archive.org/search?query=subject...uage%29%22

Thanks for sharing the link. archive.org is awesome! I went through and snagged a ton of great books too (before they made them all rental because that law suit). Are you finding any books that are worth recommending (besides possibly the first one you mentioned in your OP)?
Cheers


Not having read any of them cover to cover, I've bookmarked a whole bunch of books that look useful based on their table of contents.

Go to the BAM User Guide and Programming Reference, select the "Bibliography" subject at the bottom of the list, and then in Topics, I've got 6 groups of books.  Pick a topic and you'll get a list of books that caught my eye.

I rather like:
The BASIC handbook : encyclopedia of the BASIC computer language (3rd Edition)
Reply




Users browsing this thread: 3 Guest(s)