Program Credits

See all articles from Sinc-Link v2 n6
Author(s): George Chambers
Publication: Sinc-Link
Pub Details: Sinc-Link v2 n6 (Volume 2, Issue 6)
Date: November 1984
Pages: 7-8

In looking through our library of programs, I am struck by the number of contributions which contain no hint of their source or origin. They are something like a ship without a name or a letter without an address. This is unfortunate because, at the very least, someone who went to the trouble of creating the program or entering it does not get appropriate credit. It also makes it difficult for the next user to refer back to its origins should the need arise.

The introduction could be as simple as a two-line entry as follows:

10 REM GRAPHICS DEMONSTRATION
20 REM FROM ZX81 PROGRAMMING MANUAL CHAPTER 18, PAGE 121

An original program probably deserves that more credit be given the maker. Take a look at the partial listing shown in the example. Here, the program is an “Auto-Run”; that is, if it is SAVEd by a direct command – GOTO 9900, it will SAVE itself. Then, when you LOAD it into your computer, it will automatically RUN or continue at 9910. (If you wish to use RUN or GOTO to start a program, the initial line in the program should be: GOSUB 9910 to enter into this routine and line 9930 should read RETURN).

To get back to the original subject, note line: 9910 LIST 9970. This will cause the program to be listed automatically on the screen from line 9970 onwards. This will display any notice about the program you care to present.

Several points should be noted. The listing to be displayed needs to be at the end of the program and not to be so lengthy that it exceeds the screen size (21 lines). If the listing called up in line 9910 exceeds the screen size, it will cause a CODE 5 report and the program will stop.

Notice that lines 9997 & 9998 contain an instruction to the user to press a key. This is because although the listing appears on the screen, the computer is still in the program operation mode and in fact is at line 9920 PAUSE 4E4; i.e. waiting for a key to be pressed (waiting “forever” – 4E4 sounds like the word ‘forever’). After a key is pressed, the program will proceed to the next line: 9930 GOTO 2000 which happens to be start of the main program in the particular program this example was taken from. (PAUSE 4E4 = PAUSE 4000 = PAUSE FOREVER. See Sinclair/Timex manual, Chapter 19).

PROGRAM EXAMPLE OF CREDITS

9900 SAVE "METRIC"
9910 LIST 9970
9920 PAUSE 4E4
9930 GOTO 2000
9970 REM
9971 REM
9972 REM METRIC CONVERSION
9978 REM -----------------
9979 REM
9980 REM
9982 REM AN ORIGINAL PROGRAM
9983 REM
9984 REM WRITTEN BY
9985 REM G.F. CHAMBERS
9988 REM (C) 1984
9989 REM
9991 REM
9992 REM DATA TAKEN FROM
9993 REM THE BOOK ENTITLED
9994 REM "COMPLETE HANDYMAN'S
9995 REM ENCYCLOPEDIA"

9997 REM TO START PROGRAM
9998 REM PRESS ANY KEY
9999 REM

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.