Page 1 of 4

QL USER type-in programs

Posted: Thu Sep 17, 2020 8:06 pm
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.

Re: QL USER type-in programs

Posted: Fri Sep 18, 2020 12:48 pm
by RalfR
Would you please also supply a standard ZIP with the files. Thanks.

Re: QL USER type-in programs

Posted: Fri Sep 18, 2020 12:56 pm
by Chr$
Allow me... here's a standard qzip.

Re: QL USER type-in programs

Posted: Fri Sep 18, 2020 1:31 pm
by RalfR
Thank you :)

Re: QL USER type-in programs

Posted: Fri Sep 18, 2020 3:31 pm
by Andrew
Fixed a bug in Pentathlete_bas
line 32060 should be GO TO 10
(I hate GO TOs in Superbasic programs!)

Re: QL USER type-in programs

Posted: Sat Sep 19, 2020 10:03 am
by Dave
GOTO?

Really? Is there anything more genuinely vintage?

We advance on vintage but in our own way.

Re: QL USER type-in programs

Posted: Sat Sep 19, 2020 12:04 pm
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

Re: QL USER type-in programs

Posted: Sat Sep 19, 2020 10:29 pm
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.

Re: QL USER type-in programs

Posted: Sun Sep 20, 2020 4:19 pm
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)

Re: QL USER type-in programs

Posted: Sun Sep 20, 2020 6:42 pm
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.