BasinC oddnesses

The place for codemasters or beginners to talk about programming any language for the Spectrum.
User avatar
Fahnn
Microbot
Posts: 135
Joined: Sun Jan 27, 2019 7:56 pm
Location: Redcar, UK
Contact:

Re: BasinC oddnesses

Post by Fahnn » Mon May 13, 2019 6:49 pm

Joefish wrote:
Mon May 13, 2019 6:34 pm
It's a tool for programming BASIC to run on a real Spectrum or under emulation. I'd expect it to do exactly what a Spectrum does.
If you want correct answers - not to mention a faster response - I'd suggest using another BASIC. I hear BBC BASIC is pretty fast... :lol:

I suppose you could try out your BASIC on an emulator with an enhanced version of the spectrum ROM, but that's not the point of BasinC. There are other better BASICs out there.
Yeah. I guess I didn't really think about this properly. I'm not normally this dense but sometimes I get a bit frustrated.

I'd still be interested to know why some of my lines go missing though. I still can't figure out what's causing that. Possibly it's just me.
0 x

User avatar
Turtle_Quality
Berk
Posts: 48
Joined: Fri Dec 07, 2018 10:19 pm

Re: BasinC oddnesses

Post by Turtle_Quality » Mon May 13, 2019 7:00 pm

BasinC is an emulator with a brilliant front end, that apparently has line number issues some times.

It's not made to improve Spectrum basic, but to make it easier create Spectrum Basic. If you made your porn simulator with a tweaked rom, you'd likely be the only one playing it, and the world would not be quite so culturally enriched.

There are altered ROMs out there, I found a list here http://zxspectrum.it.omegahg.com/_48.htm

In the docs for the most well known, Gosh Wonderful Rom the division issue was discussed and the author decided it was not a bug and should not be fixed. It looks like the Plus4 Rom does fix it but also makes a host of other improvements that you might not want or would likely interfere with BasinC.

For what it's worth, I remember banging my head on the desk as a 16 year old because the simplest basic line wasn't working correctly... until I realised it was the Spectrum that was getting the answer wrong.
2 x
Definition of loop : see loop

User avatar
Turtle_Quality
Berk
Posts: 48
Joined: Fri Dec 07, 2018 10:19 pm

Re: BasinC oddnesses

Post by Turtle_Quality » Mon May 13, 2019 7:02 pm

Ok seems while researching my answer the conversation had left me behind :)
0 x
Definition of loop : see loop

User avatar
ZXDunny
Manic Miner
Posts: 237
Joined: Tue Nov 14, 2017 3:45 pm

Re: BasinC oddnesses

Post by ZXDunny » Mon May 13, 2019 7:15 pm

Fahnn wrote:
Mon May 13, 2019 6:49 pm
Joefish wrote:
Mon May 13, 2019 6:34 pm
It's a tool for programming BASIC to run on a real Spectrum or under emulation. I'd expect it to do exactly what a Spectrum does.
If you want correct answers - not to mention a faster response - I'd suggest using another BASIC. I hear BBC BASIC is pretty fast... :lol:

I suppose you could try out your BASIC on an emulator with an enhanced version of the spectrum ROM, but that's not the point of BasinC. There are other better BASICs out there.
Yeah. I guess I didn't really think about this properly. I'm not normally this dense but sometimes I get a bit frustrated.

I'd still be interested to know why some of my lines go missing though. I still can't figure out what's causing that. Possibly it's just me.
I doubt it. There are some pretty nasty bugs in BASin, and it's not been left in a very good state, at least originally.

I have no problem with BASin supporting modified ROMs, but it will require a rebuild of BASin as it hooks x86 code directly into the ROM to do what it does. If anyone wants to do that, I have no issue with it - as long as it still supports the original ROM.
1 x

User avatar
Fahnn
Microbot
Posts: 135
Joined: Sun Jan 27, 2019 7:56 pm
Location: Redcar, UK
Contact:

Re: BasinC oddnesses

Post by Fahnn » Mon May 13, 2019 7:31 pm

ZXDunny wrote:
Mon May 13, 2019 7:15 pm
Fahnn wrote:
Mon May 13, 2019 6:49 pm
Joefish wrote:
Mon May 13, 2019 6:34 pm
It's a tool for programming BASIC to run on a real Spectrum or under emulation. I'd expect it to do exactly what a Spectrum does.
If you want correct answers - not to mention a faster response - I'd suggest using another BASIC. I hear BBC BASIC is pretty fast... :lol:

I suppose you could try out your BASIC on an emulator with an enhanced version of the spectrum ROM, but that's not the point of BasinC. There are other better BASICs out there.
Yeah. I guess I didn't really think about this properly. I'm not normally this dense but sometimes I get a bit frustrated.

I'd still be interested to know why some of my lines go missing though. I still can't figure out what's causing that. Possibly it's just me.
I doubt it. There are some pretty nasty bugs in BASin, and it's not been left in a very good state, at least originally.

I have no problem with BASin supporting modified ROMs, but it will require a rebuild of BASin as it hooks x86 code directly into the ROM to do what it does. If anyone wants to do that, I have no issue with it - as long as it still supports the original ROM.
I really appreciate your answers here and please don't make any changes on my account. My frustrations were borne of ignorance and I know that anything I'm finding problematic can easily be worked around. I'm still kind of new to this, and it's amazing to find that there are easier alternatives to programming on an emulator, to be honest. Basically (pun intended), ignore me.
0 x

User avatar
ZXDunny
Manic Miner
Posts: 237
Joined: Tue Nov 14, 2017 3:45 pm

Re: BasinC oddnesses

Post by ZXDunny » Mon May 13, 2019 7:53 pm

Oh, I don't ignore people - I do listen, but I have strict criteria as to what BASin is, and what it can do. I will be going back to it at some point and fixing the bugs - once I've gotten bored of SpecBAS, that is. I've a ZXSpin re-write on the cards too, and that will likely be getting all of BASin's functionality embedded in there too.

So much to do, so little time. But SpecBAS comes first.
1 x

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

Re: BasinC oddnesses

Post by hikoki » Tue May 14, 2019 8:18 am

Fahnn wrote:
Mon May 13, 2019 4:14 pm
1. Lines or parts of lines seem to be deleted on saving and reloading. I think it's something to do with where the cursor is on saving; if it's outside of a line, all is fine, but if it's within a line, parts sometimes go missing.
A couple of things that seem to alleviate this issue: Press control+z and your lines will reappear. Press Enter often, above all before navigatigating through lines with cursors when you are still editing the current line.
1 x

User avatar
ZXDunny
Manic Miner
Posts: 237
Joined: Tue Nov 14, 2017 3:45 pm

Re: BasinC oddnesses

Post by ZXDunny » Tue May 14, 2019 8:31 am

Ah, I know what's going on there. BASin works on the code held in Spectrum RAM - it doesn't store it as text anywhere while editing. If you don't press ENTER to submit the line, then it doesn't exist. There may be other bugs. As I said previously, I'll look into it when I get time.
0 x

Joefish
Manic Miner
Posts: 621
Joined: Tue Nov 14, 2017 10:26 am

Re: BasinC oddnesses

Post by Joefish » Tue May 14, 2019 11:58 am

That explains why the saving is done as a snapshot (although it's not always a reliable one!)
I always take care to save a text copy of the listing in case I can't recover the snapshot.
It's a great tool, and it's handy for writing editors for Speccy graphics and data in BASIC for games (particularly if you transfer them to ZXSpin and whack the speed up). Then you can load the machine code in to display and test your graphics alongside the BASIC editor you've written.
1 x

User avatar
Fahnn
Microbot
Posts: 135
Joined: Sun Jan 27, 2019 7:56 pm
Location: Redcar, UK
Contact:

Re: BasinC oddnesses

Post by Fahnn » Tue May 14, 2019 5:17 pm

Thanks to everyone for the replies, there's a lot here that I'd not considered and will bear it all in mind. Obviously I'm going to persevere with it, I do genuinely think it's great. It might seem trivial, but not having to remember where all the keywords and symbols are is such a time-saver in itself!
0 x

Post Reply