Pegasus FBASIC Compiler

Post Reply
MK14HAK
Posts: 254
Joined: Wed Mar 16, 2011 1:49 am
Location: New Zealand

Pegasus FBASIC Compiler

Post by MK14HAK » Thu May 07, 2015 11:54 pm

In anticipation of the arrival of the manual, what is currently known about this compiler? ROM BASIC compatible ?
600RevB:16K,2MHz,64x32,470,CEGMON
SuperKit:502,540B,542B,CEGMON, 8" and 5" FDDs
Cards:PE IO,6522 D-A-D, AY3-8910,ProgramGraphics,Color,UK101
WIP:Archive/Restore Util,HexDOS,FDD Emulator

bxdanny
Posts: 64
Joined: Thu Apr 16, 2015 2:27 pm
Location: Bronx, NY USA

Re: Pegasus FBASIC Compiler

Post by bxdanny » Fri May 08, 2015 4:20 pm

I used to have a copy of FBASIC on an 8" disk. It was definitely for 65D, not for ROM Basic systems. I think code that it generates could be relocated without too much trouble. The compiler itself took input from a disk file, I'm pretty sure, so converting that might be more of a problem. I'm waiting to see it too.
No current OSI hardware
Former programmer for Dwo Quong Fok Lok Sow and Orion Software Associates
Former owner of C1P-MF (original version) and C8P-DF (502-based)

dave
Site Admin
Posts: 365
Joined: Tue Sep 09, 2008 5:24 am

Re: Pegasus FBASIC Compiler

Post by dave » Fri May 08, 2015 4:50 pm

All I know is from the ads in (I think) 6502 Micro. I seem to recall it's a subset of Microsoft BASIC, missing the floating point, but implementing most other features. I believe the basic numeric data type is a 16-bit int. I do remember the ads saying that FBASIC was written using OSI disk BASIC, then was used to compile itself, and the compiled version compiled its source 100 times faster than the interpreted one, producing the same output.

MK14HAK
Posts: 254
Joined: Wed Mar 16, 2011 1:49 am
Location: New Zealand

Re: Pegasus FBASIC Compiler

Post by MK14HAK » Sat May 09, 2015 3:36 am

"Since FBASIC is a subset of Microsoft Basic, it did require some modification.
The major modification involved changing the initial two dimensional array to a one dimensional array that FBASIC can accept.
The integer and lack of string function that FBASIC requires did not
seriously hinder the programming of this problem. After compiling this program the
answer appeared in outstanding time of 31 seconds. This is better than 25 times faster
than Microsoft. Therefore,for speed with some restrictions in the use of string
functions, I highly recommend FBASIC."

We also have Tiny Compiler too I think... somewhere. I vaguely remember using it.
Maybe CC65 is a better option ?
600RevB:16K,2MHz,64x32,470,CEGMON
SuperKit:502,540B,542B,CEGMON, 8" and 5" FDDs
Cards:PE IO,6522 D-A-D, AY3-8910,ProgramGraphics,Color,UK101
WIP:Archive/Restore Util,HexDOS,FDD Emulator

dave
Site Admin
Posts: 365
Joined: Tue Sep 09, 2008 5:24 am

Re: Pegasus FBASIC Compiler

Post by dave » Sat May 09, 2015 5:24 pm

I want it mostly because I always thought it was cool. I always just wanted to see it in action. It would be cool if the source were available as well.

By now, CC65 would probably be a better option. I don't know that either is particularly efficient, but it would also be nice to set up some benchmarks.

I think the tiny BASIC compiler is listed in the giant issue of Aardvark Journal, which is in the Journals section, but it's really more of a toy.

MK14HAK
Posts: 254
Joined: Wed Mar 16, 2011 1:49 am
Location: New Zealand

Re: Pegasus FBASIC Compiler

Post by MK14HAK » Sun May 10, 2015 6:36 am

dave wrote:I want it mostly because I always thought it was cool. I always just wanted to see it in action. It would be cool if the source were available as well.
Yes it will be cool to have. Useful for some programs and also instructional for some budding programmers. Looking forward to John's software list.
600RevB:16K,2MHz,64x32,470,CEGMON
SuperKit:502,540B,542B,CEGMON, 8" and 5" FDDs
Cards:PE IO,6522 D-A-D, AY3-8910,ProgramGraphics,Color,UK101
WIP:Archive/Restore Util,HexDOS,FDD Emulator

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests