QL USER type-in programs

Anything QL Software or Programming Related.
User avatar
Andrew
Aurora
Posts: 786
Joined: Tue Jul 17, 2018 9:10 pm

QL USER type-in programs

Post by Andrew »

INSTANT SPRITES - published in QL USER April 1985
PENTATHLETE - published in QL USER November 1985

The archive contains a mdv image with the programs.
Pentathlete was a effing pain in the back to scan, OCR and correct as it was printed with very small characters.
There is a bug in Event 3 - the javelin in flight is not erased from the screen - but that is how the code was printed in the magazine.
Attachments
QL_USER.zip
(20.31 KiB) Downloaded 135 times


User avatar
RalfR
Aurora
Posts: 870
Joined: Fri Jun 15, 2018 8:58 pm

Re: QL USER type-in programs

Post by RalfR »

Would you please also supply a standard ZIP with the files. Thanks.


4E75 7000
User avatar
Chr$
QL Wafer Drive
Posts: 1304
Joined: Mon May 27, 2019 10:03 am
Location: Sachsen, Germany
Contact:

Re: QL USER type-in programs

Post by Chr$ »

Allow me... here's a standard qzip.
Attachments
QL_USER.zip
(15.93 KiB) Downloaded 142 times


https://QXL.WIN
Collector of QL related computers, accessories and QL games/software.
Ask me about felt pads - I can cut them to size and they have proved excellent for mdv data recovery.
User avatar
RalfR
Aurora
Posts: 870
Joined: Fri Jun 15, 2018 8:58 pm

Re: QL USER type-in programs

Post by RalfR »

Thank you :)


4E75 7000
User avatar
Andrew
Aurora
Posts: 786
Joined: Tue Jul 17, 2018 9:10 pm

Re: QL USER type-in programs

Post by Andrew »

Fixed a bug in Pentathlete_bas
line 32060 should be GO TO 10
(I hate GO TOs in Superbasic programs!)
Attachments
qluser.zip
(15.93 KiB) Downloaded 123 times
QL_USER_MDV.zip
(37.74 KiB) Downloaded 117 times


User avatar
Dave
SandySuperQDave
Posts: 2765
Joined: Sat Jan 22, 2011 6:52 am
Location: Austin, TX
Contact:

Re: QL USER type-in programs

Post by Dave »

GOTO?

Really? Is there anything more genuinely vintage?

We advance on vintage but in our own way.


User avatar
RalfR
Aurora
Posts: 870
Joined: Fri Jun 15, 2018 8:58 pm

Re: QL USER type-in programs

Post by RalfR »

Dave wrote:GOTO?

Really? Is there anything more genuinely vintage?

We advance on vintage but in our own way.
If you really do not know this keyword, simply look at the SuperBASIC source of the Tryptich collection and/or QL.Gardener... They were genuine experts in using it.

:D


4E75 7000
stevepoole
Super Gold Card
Posts: 712
Joined: Mon Nov 24, 2014 2:03 pm

Re: QL USER type-in programs

Post by stevepoole »

Hi,
In the early days of computing, people relised that programs could be almost excluseively written using just IF and GOTO Label !

They soon realised the need for more intuitive structures....

Even now, when I translate SuperBasic into ProPascal, some instances of GOTO cannot be avoided. (SB 'Loop epilogues' etc ).

Sometimes, an occasional GOTO can avoid a lot of acrobatic structuring, and is clear enough to follow.

So don't throw the baby out with the bathwater.

Steve.


User avatar
Andrew
Aurora
Posts: 786
Joined: Tue Jul 17, 2018 9:10 pm

Re: QL USER type-in programs

Post by Andrew »

I believe that there is no need for GO TO - you can use structure your program and use procedures and functions.
And I am not sure that you can compile a program that uses GO TOs (probably not)


RWAP
RWAP Master
Posts: 2834
Joined: Sun Nov 28, 2010 4:51 pm
Location: Stone, United Kingdom
Contact:

Re: QL USER type-in programs

Post by RWAP »

Andrew wrote:I believe that there is no need for GO TO - you can use structure your program and use procedures and functions.
And I am not sure that you can compile a program that uses GO TOs (probably not)
Programs with GO TOs will happily compile - so long as they are not computed GO TOs - the bane of all programmers!

The original D-Day and War In The East showed classic examples of both GO TO and GO SUB (many of which were computed values) - mixed in with code which was never actually called - it was obvious that the programmers had ideas in D-Day in particular, but never got them working. For D-Day MKII and War In The East MKII, I re-wrote the vast majority of the programs converting it all to procedures and functions before I could determine the best bits to convert to machine code.


Post Reply