Using Just Basic or Liberty Basic to test a zx spectrum program

The place for codemasters or beginners to talk about programming any language for the Spectrum.
MrPixel
Microbot
Posts: 111
Joined: Sat Mar 24, 2018 7:42 pm

Using Just Basic or Liberty Basic to test a zx spectrum program

Post by MrPixel » Thu May 17, 2018 5:33 pm

would it work?

or what about Bloodshed dev C++ :?:
0 x

User avatar
Nomad
Manic Miner
Posts: 600
Joined: Thu Dec 28, 2017 12:38 pm

Re: Using Just Basic or Liberty Basic to test a zx spectrum program

Post by Nomad » Thu May 17, 2018 6:16 pm

Image

How do you mean? Like a unit test? Or prototype?
1 x

AndyC
Microbot
Posts: 118
Joined: Mon Nov 13, 2017 5:12 am

Re: Using Just Basic or Liberty Basic to test a zx spectrum program

Post by AndyC » Thu May 17, 2018 6:22 pm

You wouldn't be able to take a program written in Just Basic or Liberty Basic and have the source code work as-is on a Speccy, with the exception of very trivial programs. BASIC isn't a standardised language and there are far too many subtle differences between the various versions. You might be able to prototype something in a Windows based version and then port it across by translating the lines.

As for C++, I don't think there is a compiler for the Spectrum. You'd be better of with a pure C variant, which is more likely to be portable (or at least as portable as C can be).
0 x

hikoki
Manic Miner
Posts: 203
Joined: Thu Nov 16, 2017 10:54 am

Re: Using Just Basic or Liberty Basic to test a zx spectrum program

Post by hikoki » Thu May 17, 2018 6:52 pm

ZXBasic is a modern Basic language.
http://boriel.com/wiki/en/index.php/ZXBasic
Besides I think the latest version is compatible with most of Sinclair Basic dialect.
0 x

User avatar
PeterJ
Site Admin
Posts: 595
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Using Just Basic or Liberty Basic to test a zx spectrum program

Post by PeterJ » Thu May 17, 2018 7:08 pm

I'm unsure of what you are now trying to achieve, but if you want to program in a version of BASIC similar to Spectrum BASIC on a OC then go for Specbas from Paul Dunn:

https://sites.google.com/site/pauldunn/

Do you have experience of using C? If so try Z88DK.
1 x

User avatar
ZXDunny
Berk
Posts: 39
Joined: Tue Nov 14, 2017 3:45 pm

Re: Using Just Basic or Liberty Basic to test a zx spectrum program

Post by ZXDunny » Thu May 17, 2018 7:28 pm

Indeed, SpecBAS will run pretty much 90% of BASIC code from a speccy without issues. Aside from having a bigger screen, more colours etc.
0 x

User avatar
ZXDunny
Berk
Posts: 39
Joined: Tue Nov 14, 2017 3:45 pm

Re: Using Just Basic or Liberty Basic to test a zx spectrum program

Post by ZXDunny » Thu May 17, 2018 7:32 pm

ZXDunny wrote:
Thu May 17, 2018 7:28 pm
Indeed, SpecBAS will run pretty much 90% of BASIC code from a speccy without issues. Aside from having a bigger screen, more colours etc.
Edit: Hmm, that URL above won't work. I must get a version up.

Ah yes, here you go:



Should you decide to have a play with it. If you want to see the demos, extract them to C:\Users\<username>\specbas\ and you're good to go. The doc file is pretty much complete, with some new commands and features yet to be added.
2 x

MrPixel
Microbot
Posts: 111
Joined: Sat Mar 24, 2018 7:42 pm

Re: Using Just Basic or Liberty Basic to test a zx spectrum program

Post by MrPixel » Fri May 18, 2018 9:56 pm

No luck. the site gives me a 404 error for the windows version.
0 x

User avatar
ZXDunny
Berk
Posts: 39
Joined: Tue Nov 14, 2017 3:45 pm

Re: Using Just Basic or Liberty Basic to test a zx spectrum program

Post by ZXDunny » Sat May 19, 2018 8:59 am

MrPixel wrote:
Fri May 18, 2018 9:56 pm
No luck. the site gives me a 404 error for the windows version.
Is that for Boriel's ZXBASIC or my SpecBAS?
0 x

User avatar
PeterJ
Site Admin
Posts: 595
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Using Just Basic or Liberty Basic to test a zx spectrum program

Post by PeterJ » Sat May 19, 2018 10:36 am

Use the Goggle drive link that was provided for SpecBAS. That works fine.
0 x

Post Reply