APPLICATIONSPROGRAMMATION ★ Basic Checksum ★

Basic Checksum|Computing With the Amstrad)Applications Programmation
★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se presenta en su versión original ★ 
 ★ Dieser Text wird in seiner Originalfassung präsentiert ★ 

ROLAND WADDILOVE introduces a simple method of finding out where you could have gone wrong when typing in a listing

We are always striving to improve the standard of our listings here at Computing with the Amstrad CPC. Our aim is to bring you the very best programs written by our readers.

Each is given a thorough testing by our panel of technical experts and only the best finally make it to print.

If an error does manage to creep in an amendment will appear in our Postbag section the following month. Fortunately this is quite rare, and you can rest assured that our listings are correct and bug free.

In the early days of the magazine all listings were produced on an Epson printer. Now programs are passed straight from a CPC to a professional laser typesetting machine, and the output is crystal clear. This makes them easier to read and easier to type in.

One of the first lessons to learn when entering listings from Computing with the Amstrad CPC is that the programs will rarely work first time. This isn't because they are incorrect, it is simply impossible for anyone to enter a long complex listing without making a single typing error or slip of the fingers. I know I can't!

So, assuming you've made a few typing errors how do you find them? This can be quite difficult at the best of times. However, with the aid of the checksum utility presented here the task will be much easier.

This program will store a machine code routine high up in memory. When called it will analyse a Basic program and produce a unique number - a cyclic redundancy check -for each line of the listing.

Every month we will be publishing a list of these numbers alongside each major Basic listing. After entering the program all you need to do is call the machine code and you will be presented with your own list of numbers, hopefully identical.

You can tick off each line you have entered correctly - the checksums will be the same, and any lines containing errors will produce different checksums and stand out like a sore thumb. So it should then be an easy task to list that line and correct it.

Finally, when all the checksums match, you should have a perfect working copy of the program to save.

To see how it works try it on itself -enter and save the checksum listing. Now run it and the machine code will be stored in memory.

At this point you would type in or load a Basic program, but as there's already one in memory - the checksum Basic loader - we'll use that.

Call the machine code with: CALL &9000

and tap the spacebar to see the checksums. If you come across a line that is wrong press Escape to abort the checksum utility, list the line and correct it. Now call the machine code again and check that it is OK.

You may occasionally be told that there are extra spaces at the start or end of the line and the checksum routine will come to a halt. These must be removed before you can continue.

And that's all there is to it. With the aid of this powerful utility you should be able to produce perfect working copies of all our listings. Let us know how you get on...

Following are the checksums for the programs indicated, which can be found in the pages of this issue.

CWTA

★ PUBLISHER: Computing With The Amstrad
★ YEAR: 1987
★ CONFIG: 64K + AMSDOS
★ LANGUAGE:
★ LICENCE: LISTING
★ AUTHOR: ROLAND WADDILOVE

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listing:
» Basic  Checksum    (Computing  with  the  Amstrad)    LISTINGDATE: 2018-03-20
DL: 9 fois
TYPE: text
SIZE: 2Ko

Je participe au site:
» Newfile(s) upload/Envoye de fichier(s)
★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
» Applications » Microsoft - Fortran - 80
» Applications » Coding - Small - c (CPC Amstrad International)
» Applications » Codez vos messages
» Applications » Ruptures d'écrans avec R9=7 et R5=0
» Applications » Memedit (Popular Computing Weekly)
» Applications » IDE/IDF Viewer

QUE DIT LA LOI FRANÇAISE:

L'alinéa 8 de l'article L122-5 du Code de la propriété intellectuelle explique que « Lorsque l'œuvre a été divulguée, l'auteur ne peut interdire la reproduction d'une œuvre et sa représentation effectuées à des fins de conservation ou destinées à préserver les conditions de sa consultation à des fins de recherche ou détudes privées par des particuliers, dans les locaux de l'établissement et sur des terminaux dédiés par des bibliothèques accessibles au public, par des musées ou par des services d'archives, sous réserve que ceux-ci ne recherchent aucun avantage économique ou commercial ». Pas de problème donc pour nous!

CPCrulez[Content Management System] v8.7-desktop/cache
Page créée en 095 millisecondes et consultée 757 fois

L'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent  du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko.