SBASIC & C++

Anything QL Software or Programming Related.
EmmBee
Trump Card
Posts: 240
Joined: Fri Jan 13, 2012 5:29 pm
Location: Kent

Re: SBASIC & C++

Post by EmmBee »

Hi Steve

You could perhaps try replacing the dot with an underscore. Sometimes unzipping zipfiles can change these characters around.

Michael


stevepoole
Super Gold Card
Posts: 716
Joined: Mon Nov 24, 2014 2:03 pm

Re: SBASIC & C++

Post by stevepoole »

Hi embee,
The problem came from me using two computers. The old one configures QPC to win1_, the new one to dos5_ ...
The BOOT program forces data_use and prog_use to flp1_
The BOOT has no line numbers, so I could not tweak it.
I tried dos_use flp but that did not override the settings.

Back on the old computer, I got futher on, but stuck at :
EXEC dos5_424frun2__C68Menu
I can VIEW this, but EXEC gives 'not found'.
This suggests the runtimes are missing?
Steve.


Derek_Stewart
Font of All Knowledge
Posts: 3973
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: SBASIC & C++

Post by Derek_Stewart »

Hi,

Have you downloaded and installed the complete C68 system, you have to set environment variables to let the C68 system know where the library files are.

There is concise documentation, with all the C8 compiler and its libraries including Cport.

I will have a look on my system when I get some time.


Regards,

Derek
EmmBee
Trump Card
Posts: 240
Joined: Fri Jan 13, 2012 5:29 pm
Location: Kent

Re: SBASIC & C++

Post by EmmBee »

stevepoole wrote:Hi embee,
The problem came from me using two computers. The old one configures QPC to win1_, the new one to dos5_ ...
The BOOT program forces data_use and prog_use to flp1_
The BOOT has no line numbers, so I could not tweak it.
I tried dos_use flp but that did not override the settings.

Back on the old computer, I got futher on, but stuck at :
EXEC dos5_424frun2__C68Menu
I can VIEW this, but EXEC gives 'not found'.
This suggests the runtimes are missing?
Steve.
Hi Steve,

I've only just downloaded the c68 package myself. The 424frun2_C68Menu appears to be a QLIBERATOR job, so yes, the QLib runtimes must be missing from your system.

About the numberless Boot file, there is an easy way to add in the line numbers: Copy the Bootfile to the clipboard, then use ED; Get this started by entering "90:" and press ENTER, then, after "100" appears on the next line, Hold down ALT and tap the SPACEBAR, and the whole Bootfile will then be loaded in. You may first of all have to increase the stuffer buffer size from 128 characters up to the maximum of 32767 characters. This can be done using MenuConfig on the SMSQ/E file. I use the stuffer buffer in this way quite a lot, I find this very useful.

Michael


stevepoole
Super Gold Card
Posts: 716
Joined: Mon Nov 24, 2014 2:03 pm

Re: SBASIC & C++

Post by stevepoole »

Thanls Michael,
Looks like I am getting into deep water...I'll have to get hold of QLib now.

As for the boot file, Is it not possible to load the file into Quill to tweak and save it? I seem to remember that someone used Text 87 to do just that sort of thing.

Steve.


Derek_Stewart
Font of All Knowledge
Posts: 3973
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: SBASIC & C++

Post by Derek_Stewart »

Hi Steve,

I would not use Quill or Text87, but if you do, save the file as a ASCII Text file.

It would be better too use QED in C68 RUN2 disk

The Qlib Extensions are in the Cport Zip file.

I am not sure what they are for, as CPORT is a C68 library and does not use Qliberator.

I would just re-write the QDOS into C by hand. As I think there could be problems with the way QDOS programmes work in relation to C programmes.

You may want to read all the documentation supplied with C68 and the Cport Library file. If this is too difficult, then maybe the DP version maybe suitable.

If you want to send me the programme, I will have a look to see what can be done


Regards,

Derek
stevepoole
Super Gold Card
Posts: 716
Joined: Mon Nov 24, 2014 2:03 pm

Re: SBASIC & C++

Post by stevepoole »

Thanks Derek,
I originally downloaded all the files from Dilwyn's site onto dos5_ ( USB key). Now I am copying files to floppies, so I wont need a text editor after all.
I will unzip the Qlib files shortly.
The Sbasic program is 6K long and works, but needs a better implementation before I submit it to Quanta for the mag. The need for C is to compare the progam to the KLT algorythm (see earlier posts for details), on performance.
At the moment it needs around a sixfold speedup I think. (KLT is in C++ on a Mac).
How do I contact you with an attatchment?
Steve.


Derek_Stewart
Font of All Knowledge
Posts: 3973
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: SBASIC & C++

Post by Derek_Stewart »

Hi, you could send a PrIvate Message


Regards,

Derek
stevepoole
Super Gold Card
Posts: 716
Joined: Mon Nov 24, 2014 2:03 pm

Re: SBASIC & C++

Post by stevepoole »

Hi Derek,

The only address I could find on the web :
DNDsystems1@supanet.com ?

Regards,
Steve.


stevepoole
Super Gold Card
Posts: 716
Joined: Mon Nov 24, 2014 2:03 pm

Re: SBASIC & C++

Post by stevepoole »

Derek,
I found out how to send you a 'private message'. It should be in your inbox.
steve.


Post Reply