Search found 724 matches
- Tue Dec 02, 2014 6:04 am
- Forum: Software & Programming
- Topic: SBASIC & C++
- Replies: 108
- Views: 52897
Re: SBASIC & C++
Hi Tim, I used the expression 'App', as I hope to write an application on QPC2 for my Nokia windows smartphone. This should be OK in 'C', if not it will have to be recoded in Java. I use two PC's and a SGC_QL. Both PCs run QPC2 and both run OK using all Dos_ devices including various USBkeys and SDc...
- Tue Dec 02, 2014 5:51 am
- Forum: Software & Programming
- Topic: SBASIC & C++
- Replies: 108
- Views: 52897
Re: SBASIC & C++
Hi emmbee, One version of the Travelling Salasman Program uses a 407x400 element array to calculate 100 cities. It rins 6 times faster than one without. It will Turbo compile, but halts if you execute it indicating that the DIM array statement is invalid. The solution will to be to PEEK and POKE int...
- Sun Nov 30, 2014 7:46 pm
- Forum: Software & Programming
- Topic: SBASIC & C++
- Replies: 108
- Views: 52897
Re: SBASIC & C++
It's a pity that with so many good programs available for us, that they do not come ready for use on QPC. Most people these days have PCs, especially laptops, and if we are to attract new blood to the QL community, these are the people to target. The only remaining advantage we have is the develomen...
- Sun Nov 30, 2014 5:19 pm
- Forum: Software & Programming
- Topic: Not ROM but speed
- Replies: 22
- Views: 11589
Re: Not ROM but speed
If you time your programs with INKEY$(#1,1), you are not measuring the speed of your code, but moreover the overhead of time used up by INKEY$. Avoid this as follows : 100 delay=1 : REMark 1/50th second 110 Wait$ = INKEY$(#1,delay) This way you can set delay=0 so their is no delay and therefore time...
- Sun Nov 30, 2014 5:01 pm
- Forum: Software & Programming
- Topic: Not ROM but speed
- Replies: 22
- Views: 11589
Re: Not ROM but speed
Yes, INKEY$(#1,1) is the one to go for. You could use PAUSE 1 for the same effect, but PAUSE won't accept a channel number, and so you need to compile with #0. Much simpler is to compile with no windows on the menu screen, but have OPEN#1, con_128 in your code. Then you can have INKEY$ from channel ...
- Sun Nov 30, 2014 8:57 am
- Forum: Software & Programming
- Topic: SBASIC & C++
- Replies: 108
- Views: 52897
Re: SBASIC & C++
Derek,
I found out how to send you a 'private message'. It should be in your inbox.
steve.
I found out how to send you a 'private message'. It should be in your inbox.
steve.
- Sun Nov 30, 2014 12:15 am
- Forum: Software & Programming
- Topic: Not ROM but speed
- Replies: 22
- Views: 11589
Re: Not ROM but speed
It is important in timing routines not to ignore the overhead of the timing routine itself.
QL Today printed a basic code timer and article of mine in 2007.
It should run on any QL system.
Steve.
QL Today printed a basic code timer and article of mine in 2007.
It should run on any QL system.
Steve.
- Sat Nov 29, 2014 10:43 pm
- Forum: Software & Programming
- Topic: SBASIC & C++
- Replies: 108
- Views: 52897
- Sat Nov 29, 2014 6:29 pm
- Forum: Software & Programming
- Topic: SBASIC & C++
- Replies: 108
- Views: 52897
Re: SBASIC & C++
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...
- Sat Nov 29, 2014 4:30 pm
- Forum: Software & Programming
- Topic: SBASIC & C++
- Replies: 108
- Views: 52897
Re: SBASIC & C++
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.
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.