BASIC Syntax Query

159 views
Skip to first unread message

Steve Crompton

unread,
Nov 2, 2022, 11:41:33 AM11/2/22
to retro-comp
Hi Folks,

Having a bit of a play with some BASIC at the minute and I have a program with statements similar to the following:

FNB$(X,Y)=HOME$



HOME$ is previously defined as a string of characters, but X and Y appear not to be defined anywhere

My question is: what is FNB$(X,Y)=HOME$ doing? - FNB is a string variable right? .... but what is the purpose of the bracketed (X,Y)

Steve

Steve Mastrianni

unread,
Nov 2, 2022, 11:54:18 AM11/2/22
to Steve Crompton, retro-comp
I’m not an expert, but believe that statement defines a function B$ (subroutine of sorts) that you call with two variables, x and y. Each implementation of BASIC differs…

--Steve

Dr. Steve Mastrianni
Sent from my iPhone

On Nov 2, 2022, at 11:41 AM, Steve Crompton <ideal...@gmail.com> wrote:

Hi Folks,
--
You received this message because you are subscribed to the Google Groups "retro-comp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to retro-comp+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/retro-comp/f8859d42-2795-446e-aa95-29669efb7169n%40googlegroups.com.

Dave White

unread,
Nov 2, 2022, 1:58:52 PM11/2/22
to retro-comp
It looks like FNB$ is a multi dimensional array of strings, and that assignment assigns the string value of HOME$ to array location x,y

Dave White

unread,
Nov 2, 2022, 2:01:06 PM11/2/22
to retro-comp
This is form BBC Basic, but will give you a push in the right direction.

Steve Mastrianni

unread,
Nov 2, 2022, 5:21:08 PM11/2/22
to Dave White, retro-comp
Ah that makes more sense!


--Steve

Dr. Steve Mastrianni
Sent from my iPhone

On Nov 2, 2022, at 2:01 PM, Dave White <mrgcm...@gmail.com> wrote:

This is form BBC Basic, but will give you a push in the right direction.

Steve Mastrianni

unread,
Nov 2, 2022, 5:24:43 PM11/2/22
to Steve Mastrianni, Dave White, retro-comp
Guess I missed the DEF directive which I believe does define a function. Duh.


--Steve

Dr. Steve Mastrianni
Sent from my iPhone

On Nov 2, 2022, at 5:21 PM, Steve Mastrianni <steve.ma...@gmail.com> wrote:

Ah that makes more sense!

Nils-Arne Dahlberg

unread,
Nov 3, 2022, 4:04:07 AM11/3/22
to retro-comp
When asking about BASIC, please state what dialect of BASIC and on what system you are using it. BASIC is not the same as BASIC, unfortunately.
/Nils-Arne

Steve Crompton

unread,
Nov 8, 2022, 10:12:49 AM11/8/22
to retro-comp
Hi there,

Thanks to all who helped me decipher the unfamiliar program lines in a simple BASIC program I recently discovered. As a result I was able to modify the program to work in ehBASIC.

Here is the result:

The Archimedes Spiral Hat Program - ehBASIC version running on my 68030 SBC with ACRTC Video Card driving a VGA Monitor

archimedes spiral.jpg

If anyone has any more of these interesting graphical plots - please share

Steve

Rob Gowin

unread,
Nov 8, 2022, 1:24:46 PM11/8/22
to retro-comp
Steve, 

WOW! You've designed a machine I've been thinking about for a while, an '030 with an ACTRC. Impressive! 

Any more details on your SBC you'd like to share? Specs like memory size, CPU speed, I/O & storage options?

-- Rob

Steve Crompton

unread,
Nov 11, 2022, 5:41:54 PM11/11/22
to retro-comp
System Spec.

68030 25MHz
4MB ROM
8MB Static RAM
68681 DUART
ACRTC 640x480 VGA Graphics

Tutor Monitor
ehBASIC
CP/M 68K

I also have a plug in Compact Flash board that works with most but not all CF cards for the above

Currently the system is running a MC68030RC 33MHz CPU clocked at 30MHz and XR68C681 DUART (overclocked) and operating at 230K Baud  - works fine
Reply all
Reply to author
Forward
0 new messages